I recently had the following questions:
- What is the full path name of bash?
- What is the base process of Linux?
I couldn't answer these.
I recently had the following questions:
I couldn't answer these.
The base process in linux is named init
and has the PID
1
If you are on Linux, you can install the command pstree
to have a tree view of the process, or using the command ps -eF
. See also Wikipedia: init
bash
is probably (depending on your distribution) in /bin/bash
or /usr/bin/bash
To identify the path of a command an easy thing to use is the command:
type bash
#you can also usee (but not recommanded)
whereis bash
command -v bash
It will read your path (or try to guess) and gives you several path where you can find the file bash
/usr/bin/bash
but/bin/bash
– grebneke Feb 07 '14 at 11:44/usr/bin/bash
is not that uncommon (Arch Linux for example), but yes, it depends on the distribution. – l0b0 Feb 07 '14 at 12:51which
orwhereis
. If you're using Bash it should betype
. http://unix.stackexchange.com/questions/85249/why-not-use-which-what-to-use-then – slm Feb 07 '14 at 14:11which
user and it's hard to disassociate the name from my memory now. – slm Feb 07 '14 at 14:23which
andwhereis
bad? (doh - then I opened the link - ignore me) – symcbean Feb 07 '14 at 14:58