Simple question - how to edit config file in Suse 9.1?
Linux - DistributionsThis forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on...
Note: An (*) indicates there is no official participation from that distribution here at LQ.
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.
Simple question - how to edit config file in Suse 9.1?
Just trying to do a simple thing, as usual falling at the first hurdle...
I want to edit a root-privileged config file.
- Logging in as 'root' just brings up YAST, and not the desktop. What is going on? I can't use the Kate text editor to edit the files unless I am logged in as root...
- Using the 'edit' command in Konsole doesn't bring up the file specified, for some reason. What is the correct command for editing files at the command line? (I am correctly logged on as root using the 'su' command, so it's not this.)
Thanks for any advice. One day soon I will achieve my single but strangely challenging goal of getting Suse to see the internet. This is just the first, small step!
emacs <path to the file> or pico <path to the file>
when you're done:
* in emacs, press control + x + s to save, then control + x + c to exit emacs.
* in pico, press control + o, then it will ask you what file to write, you can just press enter, then press control + x to exit pico.
while pico might not be installed, emacs should be by default. you can use other editors of course.
If you want to edit a file as root, you could preface the command with the 'kdesu' command.
For example, entering 'kdesu kedit' and then entering the root password when prompted will start up the kedit program as root.
The edit command in konsole will enable you to copy highlighted text for example. But since konsole isn't an editor, you need to run an editor program to edit a file.
There is another way to start a program as root. Let's say that you dragged an icon from the menu to the taskbar. Right click on the task bar icon and select properties. Click on the Application tab. Click the Advanced Options... button. Select Run as a different user, and enter the username of root. Click OK to exit.
Then when you want to edit a system configuration file, just click on the taskbar icon and enter the root password.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.