Solved

Linux Fedora paths

Posted on 2010-09-22
8
440 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
 

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
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 
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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
add some character at the end of line in vi 7 62
File and print server with Ubuntu? 7 25
installing LSI MegaRAID Storage Manager on CentOS 7 22 81
Linux VM 6 44
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see …
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…
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.

910 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

20 Experts available now in Live!

Get 1:1 Help Now