by CronoCloud » 12 Jan 2007, 10:31
okay, see this prompt
[root@localhost JJCOOLX]#
that tells me you're root, which is good if you're wanting to edit a configuration file. but it also tells me it's in your "user" home directory.
Now your graphical file manager is abrstracting the file system for you, which is why it's saying:
Computer/Filesystem/ect/yum.repos.d/yellowdog-base.repo
Computer/Filesystem/ect/yum.repos.d/yellowdog-extras.repo
Computer/Filesystem/ect/yum.repos.d/yellowdog-updates.repo
When those files are really in the directory /etc/yum.repos.d
you see Linux commands only do what you tell them to do, tell them to edit a file that's not in the directory you're in without using the full path and you'll get
No such file or directory
So you either need to use fhe full path, or be in the directory with the files.
for example if I wanted to edit those files I would login as root
and then:
cd /etc/yum.repos.d
then an
ls
would list the flies
which should look like this:
yellowdog-base.repo
yellowdog-extras.repo
yellowdog-updates.repo
then you can edit them as needed:
nano yellowdog-base.repo
Now there's probably a way to put your graphical filemanager in root mode and then use it to open the files in a graphical editor but don't ask me how to do that. Ah wait, I'll google it, this should work:
open up a term and type in:
su -l
enter root password
type:
nautilus -f
that should get you a nautilus window with root permissions There might even be a menu option for a "super user mode" file manager window
And usually it's faster just to open up a term and edit with nano or vim or something.
And always remember to exit out of root terms and file manager windows when you're done with them. I'd tell you to use sudo instead of direclty using su but I find sudo annoying myself.