Ask Your Question
0

how to see system files fedora 20 gnome

asked 2014-09-03 06:03:16 -0500

squirebug gravatar image

updated 2014-09-03 18:57:02 -0500

How is it possible to see the system directory (/etc, /bin, etc.) in fedora 20 gnome? I can't even get a list in the terminal as root,

Thank you for your help.

Below is a copy of my termnal when I try to list the directories. The normal system directories don't even seem to exist.

I need access to them because many important programs like torbrowser or skype cannot be installed via the software program - they require edits to the repositories which reside in /etc. How can I make the needed changes if I can't access the directories?

Problem solved. Thank you very much.

[squirebug@localhost ~]$ su Password: 
[root@localhost squirebug]# ls -a 
. .bashrc Downloads .gstreamer-0.10 .mozilla .rkward .. .cache .esd_auth .ICEauthority Music .ssh .adobe .color .gdmap .kde .mypaint Templates .bash_history .config .gnome2 .local Pictures Videos .bash_logout Desktop .gnome2_private .m17n.d .pki .bash_profile Documents .gnupg .macromedia Public

[root@localhost squirebug]#

Thank you for your help.

edit retag flag offensive close merge delete

Comments

Your question needs more details to be answered. What exactly did you do, what happened, and what did you expect would happen?

pnadk gravatar imagepnadk ( 2014-09-03 07:45:14 -0500 )edit

I've edited your question to add the additional information you provided. Please do that in the future and reserve the "answers" area for people providing answers.

As a side note, the contents of your root user's home directory suggest to me that you are logging into desktop environments and executing graphical user applications as root. That's not a good idea: you should only use the root account for things that actually require root privileges.

randomuser gravatar imagerandomuser ( 2014-09-03 10:06:12 -0500 )edit

No. Look again. He logs in as himself, then uses su.

sideburns gravatar imagesideburns ( 2014-09-03 14:10:29 -0500 )edit

d'oh! Thanks, sideburns.

randomuser gravatar imagerandomuser ( 2014-09-03 14:42:04 -0500 )edit

2 Answers

Sort by » oldest newest most voted
1

answered 2014-09-03 14:23:43 -0500

skytux gravatar image

You are logged in as root in your home directory. I think that what you want to do is the following:

$ su
# cd /
# ls -a
.   bin   dev  home  lib    lost+found  mnt  proc        root  sbin  sys  usr
..  boot  etc  iraf  lib64  media       opt  .readahead  run   srv   tmp  var

HTH,

Germán.

edit flag offensive delete link more
0

answered 2014-09-03 14:23:53 -0500

sideburns gravatar image

When you use su to become root, you're still in the same directory as you were before. (If you use su - you find yourself in /root instead.) If you want to see what's in (let's say) /etc, you either need to go to that directory with cd /etc or at least specify what directory you want to look at, such as ls -a /etc Simply changing to root while in your home directory and running ls -a isn't going to show you what's in /etc.

And, unless you need to do several commands as root, you're probably better off as randomuser points out to use su -c to run one command as root, then go back to being yourself.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2014-09-03 06:03:16 -0500

Seen: 1,157 times

Last updated: Sep 03 '14