Linux - DesktopThis forum is for the discussion of all Linux Software used in a desktop context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'd like to write a shell code that will put back the settings I make in the terminal,
i'm open to learning php except the settings i make will be for certain distributions say Debian or Gentoo, so i was considering bash coding but open to either. Would like any suggestions on which I should choose please.
It is unclear for me. What kind of settings is it? Do you have an example? (or even better) do you have a sample code?
Oh for example, some commands like shutdown isn't in the /root path so I would have to type it like /sbin/shutdown -r . That and a whole lot of other commands are default in another path, so I was weighing on whether or not I would learn php or bash scripting to customize the cmd line the way I want it. If that makes any sense
Oh for example, some commands like shutdown isn't in the /root path so I would have to type it like /sbin/shutdown -r . That and a whole lot of other commands are default in another path, so I was weighing on whether or not I would learn php or bash scripting to customize the cmd line the way I want it. If that makes any sense
It makes very little sense and is still way too broad, but youprobably want to learn bash (and not php) if your shell is using bash.
Yes this too I suspected. I'm looking for a easier way to restore all my personal settings when i re-install a OS. Thanks for the help
That would be a backup solution, so you save all of your personal settings, files before reinstall and try to restore it afterward.
From the other hand you may have a data (user) partition which will not be modified/altered during that OS reinstall, therefore there is no need to restore it (anyway, a backup would be helpful).
I'd like to write a shell code that will put back the settings I make in the terminal,
i'm open to learning php except the settings i make will be for certain distributions say Debian or Gentoo, so i was considering bash coding but open to either. Would like any suggestions on which I should choose please.
Thank you.
create a list of all the files you change for the settings you change. if you installed a new system on 2021-05-31 and changed many settings through the month of June, then scan for all system files changed in the month of June. that's a good starting list. edit it and remove file names that are not your settings. make a backup of the files named by what remains. make a 2nd backup. test your backup to be sure you can read it and get the files back out. test the 2nd backup, too.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.