Where is the commands installed in Linux?In: Linux |
Answer
In fact, the 'commands' are programs. They can be stored in different directories, usually:
/bin
/usr/bin
/usr/sbin
For example, when you type 'date' into a command line, the program /bin/date is launched. Programs in linux don't usually have .exe in name. This program prints current date on users screen.
Answer
usually
/usr/sbin
/usr/bin
just type:
which command
at the prompt where command is what you are searching for and the linux style computer will tell you.
i.e. :
%which cd
returns:
cd: /usr/bin/cd /usr/share/man/man1/cd.1.gz
so it says that the command cd is at /usr/bin and the manual is at /usr/share/man/man1.....
MadMatt
MadMatt
|
|
|
First answer by Madmatt55. Last edit by Ttsmj. Contributor trust: 0 [recommend contributor]. Question popularity: 22 [recommend question]
|
Research your answer: |
Can you answer other questions about linux?
|
|


