?
Solved

Linux Fedora paths

Posted on 2010-09-22
8
Medium Priority
?
479 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 3
8 Comments
 
LVL 5

Accepted Solution

by:
mooodiecr earned 2000 total points
ID: 33735328
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
ID: 33735345
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
ID: 33735627
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
Get MongoDB database support online, now!

At Percona’s web store you can order your MongoDB database support needs in minutes. No hassles, no fuss, just pick and click. Pay online with a credit card. Handle your MongoDB database support now!

 

Author Comment

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

But still cannot see it in gui?
0
 
LVL 5

Expert Comment

by:mooodiecr
ID: 33735828
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
ID: 33738014
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
ID: 33738022
Great help
Thanks
John
0
 

Author Comment

by:johnhardy
ID: 33738096
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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you use Debian 6 Squeeze and you are tired of looking at the childish graphical GDM login screen that is used by default, here's an easy way to change it. If you've already tried to change it you've probably discovered that none of the old met…
The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month14 days, 4 hours left to enroll

801 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