LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-06-2005, 09:52 PM   #1
Xios
Member
 
Registered: Feb 2005
Posts: 40

Rep: Reputation: 15
What directory?


What directory are programs installed? I am using SUSE 9.2
 
Old 02-06-2005, 09:59 PM   #2
dmellem
Member
 
Registered: Mar 2003
Distribution: Fedora
Posts: 42

Rep: Reputation: 15
I don't know specifically for SUSE, but programs can be installed anywhere. Usually, you'll find them under /usr or /home. Specifically:

/usr
/usr/local
/usr/bin
/usr/sbin
/usr/local/bin
/usr/local/sbin

Try using the "which" or "locate" commands to find where some things are installed.

which ls -> /bin/ls
locate *squid -> one answer is "/usr/local/squid/sbin/squid"

-Dan
 
Old 02-06-2005, 10:41 PM   #3
scott2004
Member
 
Registered: Nov 2004
Location: Toronto, Canada
Distribution: Debian, OpenBSD, SuSE, Ubuntu
Posts: 68

Rep: Reputation: 15
also "whereis"

Another handy command is "whereis"

> whereis ifconfig
/sbin/ifconfig
>

If you need to access a program that isn't in your PATH, add it by editing $HOME/.bash_profile



Finally, you can use "find" a command or file.

>find / -name "file_name" - will search / (root) for file_name - note that unless you run this as the user root you'll get "permission denied" errors.

To get help with commands, try man <command_name> . "man" is short for manual, and will bring up a manual page for the command and any configuration files that accompany it, as well, usually, as it's normal location.

Cheers,
Scott
 
Old 02-06-2005, 10:53 PM   #4
shengchieh
Member
 
Registered: Jul 2004
Location: Palo Alto, CA
Distribution: #! Korora
Posts: 472

Rep: Reputation: 30
These two links may be worth looking at

http://www.comptechdoc.org/os/linux/commands/
http://tldp.org/HOWTO/HighQuality-Apps-HOWTO/fhs.html

Sheng-Chieh
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Fedora Directory Server sync Active Directory paul_mat Linux - Networking 8 03-08-2007 11:51 AM
shell script: delete all directories named directory.# except directory.N brian0918 Programming 3 07-13-2005 07:54 PM
Automatically Copying files from the ftp directory into the html directory swatward Linux - General 3 04-17-2005 11:55 PM
How to rsynce the actual directory path instead of just the directory at the end of Niceman2005 Linux - General 5 04-08-2005 08:58 PM
write permissions for directory - not accidently move/deleted the directory linuxgamer Linux - Newbie 10 12-02-2003 04:04 AM


All times are GMT -5. The time now is 05:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration