Gentoo Archives: gentoo-user

From: Dale <rdalek1967@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: runlevels and service list
Date: Mon, 21 Sep 2009 00:40:33
Message-Id: 4AB6CB7C.6010409@gmail.com
In Reply to: [gentoo-user] Re: runlevels and service list by walt
1 walt wrote:
2 > On 09/20/2009 02:51 PM, Dale wrote:
3 >> Alan McKinnon wrote:
4 >
5 >>> The reason you don't see bash in ps is because you are not running
6 >>> bash. I do,
7 >>> but you obviously don't. What shell does root use per /etc/passwd?
8 >>>
9 >> This one:
10 >>
11 >> root:x:0:0:root:/root:/bin/bash
12 >>
13 >> Looks like bash. ;-) I assume this is the default because I have never
14 >> changed this file. Is there something screwy with my system?
15 >
16 > In linux bash is the default shell (even sh is a symlink to bash) but in
17 > other OS's other default shells prevail.
18 >
19 > How did you type your 'ps aux' command? In an xterm window, or what?
20 >
21 > Here's a snippet from my ps axf: (I love that 'f' flag)
22 >
23 > 4682 tty1 S 0:00 xterm -bg rgb:db/e9/f9 -sb -fn 9x15
24 > 4685 pts/0 Ss 0:00 \_ bash
25 > 4724 pts/0 S 0:00 \_ su
26 > 4729 pts/0 S 0:00 \_ bash
27 > 22427 pts/0 R+ 0:00 \_ ps axf
28 >
29 >
30 >
31
32 I used the command ps aux. I think that lists ALL processes. I usually
33 use grep to filter them out. This is what I got tho:
34
35 root@smoker / # ps aux | grep bash
36 dale 7254 0.0 0.0 3044 572 ? S Sep19 0:00
37 /bin/bash /usr/libexec/mozilla-launcher
38 root 7704 0.0 0.0 1888 516 pts/0 S+ 15:01 0:00 grep
39 --colour=auto bash
40 root@smoker / #
41
42 Obviously the bottom one is the command I typed in. I did this in a
43 Konsole within KDE. I don't got to a actual Console to much. Note the
44 K and the C on those.
45
46 Dale
47
48 :-) :-)

Replies

Subject Author
[gentoo-user] Re: runlevels and service list walt <w41ter@×××××.com>