Full path name of bash? and base process of Linux?
up vote
0
down vote
favorite
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.
bash process path init
add a comment |
up vote
0
down vote
favorite
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.
bash process path init
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
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.
bash process path init
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.
bash process path init
bash process path init
edited Nov 24 at 20:19
Rui F Ribeiro
38.3k1475126
38.3k1475126
asked Feb 7 '14 at 11:26
user59840
1
1
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
3
down vote
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
1
Most probably not/usr/bin/bash
but/bin/bash
– grebneke
Feb 7 '14 at 11:44
Yes you're both right... End of the week tired.. coffee... really sorry.
– Kiwy
Feb 7 '14 at 11:48
/usr/bin/bash
is not that uncommon (Arch Linux for example), but yes, it depends on the distribution.
– l0b0
Feb 7 '14 at 12:51
To find out the full path you can also run 'which bash'. That should show the path that will be executed when you run just 'bash'
– brm
Feb 7 '14 at 13:59
We shouldn't be recommending the use ofwhich
orwhereis
. If you're using Bash it should betype
. unix.stackexchange.com/questions/85249/…
– slm♦
Feb 7 '14 at 14:11
|
show 3 more comments
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
3
down vote
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
1
Most probably not/usr/bin/bash
but/bin/bash
– grebneke
Feb 7 '14 at 11:44
Yes you're both right... End of the week tired.. coffee... really sorry.
– Kiwy
Feb 7 '14 at 11:48
/usr/bin/bash
is not that uncommon (Arch Linux for example), but yes, it depends on the distribution.
– l0b0
Feb 7 '14 at 12:51
To find out the full path you can also run 'which bash'. That should show the path that will be executed when you run just 'bash'
– brm
Feb 7 '14 at 13:59
We shouldn't be recommending the use ofwhich
orwhereis
. If you're using Bash it should betype
. unix.stackexchange.com/questions/85249/…
– slm♦
Feb 7 '14 at 14:11
|
show 3 more comments
up vote
3
down vote
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
1
Most probably not/usr/bin/bash
but/bin/bash
– grebneke
Feb 7 '14 at 11:44
Yes you're both right... End of the week tired.. coffee... really sorry.
– Kiwy
Feb 7 '14 at 11:48
/usr/bin/bash
is not that uncommon (Arch Linux for example), but yes, it depends on the distribution.
– l0b0
Feb 7 '14 at 12:51
To find out the full path you can also run 'which bash'. That should show the path that will be executed when you run just 'bash'
– brm
Feb 7 '14 at 13:59
We shouldn't be recommending the use ofwhich
orwhereis
. If you're using Bash it should betype
. unix.stackexchange.com/questions/85249/…
– slm♦
Feb 7 '14 at 14:11
|
show 3 more comments
up vote
3
down vote
up vote
3
down vote
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
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
edited Feb 7 '14 at 14:20
answered Feb 7 '14 at 11:41
Kiwy
5,85653555
5,85653555
1
Most probably not/usr/bin/bash
but/bin/bash
– grebneke
Feb 7 '14 at 11:44
Yes you're both right... End of the week tired.. coffee... really sorry.
– Kiwy
Feb 7 '14 at 11:48
/usr/bin/bash
is not that uncommon (Arch Linux for example), but yes, it depends on the distribution.
– l0b0
Feb 7 '14 at 12:51
To find out the full path you can also run 'which bash'. That should show the path that will be executed when you run just 'bash'
– brm
Feb 7 '14 at 13:59
We shouldn't be recommending the use ofwhich
orwhereis
. If you're using Bash it should betype
. unix.stackexchange.com/questions/85249/…
– slm♦
Feb 7 '14 at 14:11
|
show 3 more comments
1
Most probably not/usr/bin/bash
but/bin/bash
– grebneke
Feb 7 '14 at 11:44
Yes you're both right... End of the week tired.. coffee... really sorry.
– Kiwy
Feb 7 '14 at 11:48
/usr/bin/bash
is not that uncommon (Arch Linux for example), but yes, it depends on the distribution.
– l0b0
Feb 7 '14 at 12:51
To find out the full path you can also run 'which bash'. That should show the path that will be executed when you run just 'bash'
– brm
Feb 7 '14 at 13:59
We shouldn't be recommending the use ofwhich
orwhereis
. If you're using Bash it should betype
. unix.stackexchange.com/questions/85249/…
– slm♦
Feb 7 '14 at 14:11
1
1
Most probably not
/usr/bin/bash
but /bin/bash
– grebneke
Feb 7 '14 at 11:44
Most probably not
/usr/bin/bash
but /bin/bash
– grebneke
Feb 7 '14 at 11:44
Yes you're both right... End of the week tired.. coffee... really sorry.
– Kiwy
Feb 7 '14 at 11:48
Yes you're both right... End of the week tired.. coffee... really sorry.
– Kiwy
Feb 7 '14 at 11:48
/usr/bin/bash
is not that uncommon (Arch Linux for example), but yes, it depends on the distribution.– l0b0
Feb 7 '14 at 12:51
/usr/bin/bash
is not that uncommon (Arch Linux for example), but yes, it depends on the distribution.– l0b0
Feb 7 '14 at 12:51
To find out the full path you can also run 'which bash'. That should show the path that will be executed when you run just 'bash'
– brm
Feb 7 '14 at 13:59
To find out the full path you can also run 'which bash'. That should show the path that will be executed when you run just 'bash'
– brm
Feb 7 '14 at 13:59
We shouldn't be recommending the use of
which
or whereis
. If you're using Bash it should be type
. unix.stackexchange.com/questions/85249/…– slm♦
Feb 7 '14 at 14:11
We shouldn't be recommending the use of
which
or whereis
. If you're using Bash it should be type
. unix.stackexchange.com/questions/85249/…– slm♦
Feb 7 '14 at 14:11
|
show 3 more comments
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f114019%2ffull-path-name-of-bash-and-base-process-of-linux%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown