Linux Fedora paths

Posted on 2010-09-22
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
Question by:johnhardy
  • 5
  • 3

Accepted Solution

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.

Expert Comment

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.  

Author Comment

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?
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.


Author Comment

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

But still cannot see it in gui?

Expert Comment

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.

Author Comment

ID: 33738014
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.

Author Closing Comment

ID: 33738022
Great help

Author Comment

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.

Featured Post

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.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
centos linux 65 155
Delete a folder on a linux computer on a regular basis 10 40
ftp to port 21 4 53
Using Linux to replace Windows Server 2008 R2 for network drives 5 105
This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
Join Greg Farro and Ethan Banks from Packet Pushers ( and Greg Ross from Paessler ( for a discussion about smart network …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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…

809 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