Solved

Linux Fedora paths

Posted on 2010-09-22
8
453 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
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
The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

 

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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
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…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

777 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