LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   What directory? (https://www.linuxquestions.org/questions/linux-newbie-8/what-directory-287095/)

Xios 02-06-2005 08:52 PM

What directory?
 
What directory are programs installed? I am using SUSE 9.2

dmellem 02-06-2005 08:59 PM

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

scott2004 02-06-2005 09:41 PM

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

shengchieh 02-06-2005 09:53 PM

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


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