Solved

Linux Fedora paths

Posted on 2010-09-22
8
429 Views
Last Modified: 2012-05-10
I am used to the views of windows paths. I am trying to understand how to find directorys (folders) in linux Fedora.
I am looking for a folder called /opt.
Can anyone please say how I do this?
Thank you
John
0
Comment
Question by:johnhardy
  • 5
  • 3
8 Comments
 
LVL 5

Accepted Solution

by:
mooodiecr earned 500 total points
Comment Utility
In Linux you can think of how the directory path works comparative to windows as this:

C:\  = /

the single /  is the root path.  so everything starts at / ... the largest difference is that there isn't a C:\ D:\ etc.  everything starts at /  and data volumes or  partitions are mounted at a path location.  Type in the command "mount"  to see what volumes are mounted to which paths  (you can also see what volumes are attached to which folders or paths by looking at the file /etc/fstab) ... i.e. /mount/cdrom would be equal to the D:\ , if the D:\ were the CD-Rom in windows.  

So with that very muddy and brief overview the /opt directory is just that /opt.  you can't use the "cd" command to go to "opt" you have to provide the full path as in "/opt"  

The best way to view this is in the GUI press F2 and type xterm in the command window.  This will provide something similar to windows command prompt.  Then type in "cd /"  that will take you to the root of the system.  Then type "ls"  this will show you what folders are available.  at the root.  Then you can simply type in /opt/<programname> or /etc/sysconfig/network or whatever.  

In the folder view of the GUI, just remove the system:/ and replace with just a single / .. that will show you the root location of the entire machine.

Some helpful commands for finding files - "locate <filename>" "find -name <filename> " ... hope this helps.
0
 
LVL 5

Expert Comment

by:mooodiecr
Comment Utility
oh you can also type in the command man ... to retrieve a manual for each of those commands.  such as man locate or man find or man <almost any linux command>  to get a ton of info on how to use them.  
0
 

Author Comment

by:johnhardy
Comment Utility
Thanks mooodiecr
I am still trying to find /opt but cant seem to get it to show anywhere

I am sure its around somewhere as I installed xammp in this and its working.
I cannot find it in the gui directory selections?
0
 

Author Comment

by:johnhardy
Comment Utility
I believe I have now the opt directory in view in the Terminal (commandline)

But still cannot see it in gui?
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 5

Expert Comment

by:mooodiecr
Comment Utility
In the GUI can you see the folder called etc ... located at /etc?  this is the same location as the opt folder.  If you can't then it may be a permissions issue with your user account.
0
 

Author Comment

by:johnhardy
Comment Utility
Thanks
You have answered my original question very well and the permissions problem is still there so I will close this question and raise another on the permissions.
0
 

Author Closing Comment

by:johnhardy
Comment Utility
Great help
Thanks
John
0
 

Author Comment

by:johnhardy
Comment Utility
I think I may have found the answer.
I opened the computer icon on the destop and found
File System
opt is there along with others I could not see previously.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now