参考の資料を 保管しておこう初期の log とか 起動状態を 残しておく あく まで参考ではある。
aruuser@lx:~$ su -
Password:
lx:~# ls
0001_root
lx:~# ls -l
total 4
-rw-r--r-- 1 root root 1986 Oct 18 23:23 0001_root
lx:~# mv 0001_root /home/aruuser/
lx:~# chown aruuser.users /home/aruuser/0001_root
lx:~# cd /var/spool/mail/
lx:/var/spool/mail# ls -l
mtotal 80
-rw------- 1 aruuser users 60582 Oct 18 23:23 aruuser
-rw-rw---- 1 root mail 7111 Oct 23 1998 root
-rw-rw---- 1 root root 7111 Oct 23 1998 root.new
lx:/var/spool/mail# cat aruuser >y_first_letter
lx:/var/spool/mail# :>aruuser
lx:/var/spool/mail# which mail
/bin/mail
lx:/var/spool/mail# ls -l /bin/mail
mlrwxrwxrwx 1 root root 13 Oct 19 2007 /bin/mail -> /usr/bin/Mail*
lx:/var/spool/mail# ls -l /usr/bin/Mail
m-rwx--s--x 1 root mail 67140 Apr 11 1999 /usr/bin/Mailm*
lx:/var/spool/mail# cd /var/log
lx:/var/log# ls -l
mtotal 172
-rw-r--r-- 1 root users 36983 Oct 18 23:26 XFree86.0.log
-rw-r--r-- 1 root users 36933 Oct 18 23:25 XFree86.0.log.old
-rw-r--r-- 1 root root 20124 Oct 18 23:21 bootlog
drwxr-xr-x 2 bin bin 4096 Oct 18 23:21 canna/
-rw-r----- 1 root root 0 Apr 7 2002 cron
-rw-r----- 1 root root 0 May 9 1994 debug
drwxr-xr-x 2 root root 4096 Apr 1 1997 ftpd/
drwxr-xr-x 2 root root 4096 Oct 19 2007 initpkg/
-rw-r--r-- 1 root root 292292 Oct 18 23:22 lastlog
-rw-r----- 1 root root 0 Apr 7 2002 maillog
-rw-r----- 1 root root 1083 Oct 18 23:26 messages
drwxr-xr-x 2 root root 8192 Oct 19 2007 packages/
drwxr-xr-x 2 root root 4096 Oct 28 1998 removed_packages/
drwxr-xr-x 2 root root 4096 Oct 28 1998 removed_scripts/
drwxr-xr-x 2 root root 4096 Oct 19 2007 scripts/
-rw-r--r-- 1 root root 473 Oct 19 2007 scrollkeeper.log
-rw-r----- 1 root root 294 Oct 18 23:27 secure
drwxr-xr-x 3 root root 4096 Oct 19 2007 setup/
-rw-r----- 1 root root 0 Mar 9 2002 spooler
-rw-r----- 1 root root 228 Oct 18 23:26 syslogm
lrwxrwxrwx 1 root root 13 Oct 19 2007 utmp -> m/var/run/utmp
-rw-r--r-- 1 root root 8448 Oct 18 23:23 wtmp
-rw-r--r-- 1 root root 0 Oct 18 23:21 xfs.log
lx:/var/log# mkdir z_20071018_start
lx:/var/log# ps ax
PID TTY STAT TIME COMMAND
1 ? S 0:04 init [3]
2 ? SW 0:00 [keventd]
0 ? SWN 0:00 [ksoftirqd_CPU0]
0 ? SW 0:00 [kswapd]
0 ? SW 0:00 [bdflush]
0 ? SW 0:00 [kupdated]
7 ? SW 0:00 [scsi_eh_0]
8 ? SW 0:00 [kjournald]
101 ? SW 0:00 [khubd]
160 ? S 0:00 /usr/sbin/syslogd -m 0
163 ? S 0:00 /usr/sbin/klogd -c 4
165 ? S 0:00 /usr/sbin/rpc.portmap
167 ? S 0:00 /usr/sbin/inetd
170 ? S 0:00 /usr/sbin/sshd
173 ? S 0:00 /usr/sbin/rpc.mountd
176 ? SW 0:00 [nfsd]
178 ? SW 0:00 [lockd]
179 ? SW 0:00 [rpciod]
194 ? S 0:00 /usr/sbin/lpd
196 ? S 0:00 /usr/sbin/crond -l10
198 ? S 0:00 /usr/sbin/atd
200 ? S 0:00 /usr/bin/sj3serv
203 ? S 0:00 /usr/X11R6/bin/xfs -daemon -port 7100
206 ? S 0:00 gpm -m /dev/mouse -t ps2
238 ? S 0:00 /usr/sbin/cannaserver -inet
247 ? S 0:00 rpc.dracd -i /etc/postfix/dracd.db
250 ? S 0:00 /usr/bin/Wnn4/jserver
255 tty2 S 0:00 /sbin/agetty 38400 tty2 linux
256 tty3 S 0:00 /sbin/agetty 38400 tty3 linux
257 tty4 S 0:00 /sbin/agetty 38400 tty4 linux
258 tty5 S 0:00 /sbin/agetty 38400 tty5 linux
259 tty6 S 0:00 /sbin/agetty 38400 tty6 linux
450 tty1 S 0:00 -bash
872 tty1 S 0:00 /bin/sh /usr/X11R6/bin/startx
885 tty1 S 0:00 xinit /home/aruuser/.xinitrc --
886 ? R 0:02 X :0
889 tty1 S 0:00 afterstep
898 tty1 S 0:00 kinput2-canna -cannaserver localhost
899 tty1 S 0:00 /usr/X11R6/bin/skkinput
902 ? S 0:00 dbskkd-cdb
907 tty1 S 0:00 unclutter
908 tty1 S 0:00 xmascot -degree 15 -geometry +10+4
910 tty1 S 0:00 /usr/X11R6/lib/X11/afterstep//Animate 8 5 /home/aruuser/.s
911 tty1 S 0:00 /usr/X11R6/lib/X11/afterstep//Wharf 10 5 /home/aruuser/.st
912 tty1 S 0:00 /usr/X11R6/lib/X11/afterstep//WinList 12 5 /home/aruuser/.
913 tty1 S 0:00 /usr/X11R6/lib/X11/afterstep//Audio 14 5 /home/aruuser/.st
915 tty1 S 0:00 astime -geometry -4+69 -min magenta -exe emiclock
920 tty1 S 0:00 ascpu -position -1+133 -exe xosview
921 tty1 S 0:00 /usr/X11R6/lib/X11/afterstep//Pager 15 4 /home/aruuser/.st
922 tty1 S 0:00 asmem -position -1+197
924 tty1 S 0:00 kterm -geometry 80x25
926 pts/0 S 0:00 bash
937 tty1 S 0:00 kterm -geometry 80x25
939 pts/1 S 0:00 bash
950 pts/1 S 0:00 script aruuser_002
951 pts/1 S 0:00 script aruuser_002
952 pts/2 S 0:00 bash -i
972 pts/2 S 0:00 -su
997 pts/2 R 0:00 ps ax
lx:/var/log# ps aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.5 0.1 1372 476 ? S 23:21 0:04 init [3]
root 2 0.0 0.0 0 0 ? SW 23:21 0:00 [keventd]
root 0 0.0 0.0 0 0 ? SWN 23:21 0:00 [ksoftirqd_CPU0]
root 0 0.0 0.0 0 0 ? SW 23:21 0:00 [kswapd]
root 0 0.0 0.0 0 0 ? SW 23:21 0:00 [bdflush]
root 0 0.0 0.0 0 0 ? SW 23:21 0:00 [kupdated]
root 7 0.0 0.0 0 0 ? SW 23:21 0:00 [scsi_eh_0]
root 8 0.0 0.0 0 0 ? SW 23:21 0:00 [kjournald]
root 101 0.0 0.0 0 0 ? SW 23:21 0:00 [khubd]
root 160 0.0 0.2 1416 568 ? S 23:21 0:00 /usr/sbin/syslogd
root 163 0.0 0.5 2100 1304 ? S 23:21 0:00 /usr/sbin/klogd -
bin 165 0.0 0.1 1384 388 ? S 23:21 0:00 /usr/sbin/rpc.por
root 167 0.0 0.2 1408 540 ? S 23:21 0:00 /usr/sbin/inetd
root 170 0.0 0.5 3112 1408 ? S 23:21 0:00 /usr/sbin/sshd
root 173 0.0 0.2 1588 676 ? S 23:21 0:00 /usr/sbin/rpc.mou
root 176 0.0 0.0 0 0 ? SW 23:21 0:00 [nfsd]
root 178 0.0 0.0 0 0 ? SW 23:21 0:00 [lockd]
root 179 0.0 0.0 0 0 ? SW 23:21 0:00 [rpciod]
root 194 0.0 0.2 1468 556 ? S 23:21 0:00 /usr/sbin/lpd
root 196 0.0 0.1 1396 512 ? S 23:21 0:00 /usr/sbin/crond -
daemon 198 0.0 0.2 1404 532 ? S 23:21 0:00 /usr/sbin/atd
root 200 0.0 0.3 1892 876 ? S 23:21 0:00 /usr/bin/sj3serv
root 203 0.1 2.6 8544 6884 ? S 23:21 0:00 /usr/X11R6/bin/xf
root 206 0.0 0.1 1416 464 ? S 23:21 0:00 gpm -m /dev/mouse
root 238 0.0 0.5 2220 1336 ? S 23:21 0:00 /usr/sbin/cannase
root 247 0.0 0.3 2364 848 ? S 23:21 0:00 rpc.dracd -i /etc
wnn 250 0.0 1.5 5096 3972 ? S 23:21 0:00 /usr/bin/Wnn4/jse
root 255 0.0 0.1 1372 436 tty2 S 23:21 0:00 /sbin/agetty 3840
root 256 0.0 0.1 1372 436 tty3 S 23:21 0:00 /sbin/agetty 3840
root 257 0.0 0.1 1372 436 tty4 S 23:21 0:00 /sbin/agetty 3840
root 258 0.0 0.1 1372 436 tty5 S 23:21 0:00 /sbin/agetty 3840
root 259 0.0 0.1 1372 436 tty6 S 23:21 0:00 /sbin/agetty 3840
aruuser 450 0.0 0.7 3916 1840 tty1 S 23:23 0:00 -bash
aruuser 872 0.0 0.4 2548 1204 tty1 S 23:26 0:00 /bin/sh /usr/X11R
aruuser 885 0.0 0.2 2176 612 tty1 S 23:26 0:00 xinit /home/aruuser/.x
root 886 0.5 5.8 24848 14980 ? R 23:26 0:02 X :0
aruuser 889 0.0 0.6 3492 1692 tty1 S 23:26 0:00 afterstep
aruuser 898 0.0 0.8 3940 2244 tty1 S 23:26 0:00 kinput2-canna -ca
aruuser 899 0.0 0.6 3300 1616 tty1 S 23:26 0:00 /usr/X11R6/bin/sk
nobody 902 0.0 0.1 1412 496 ? S 23:27 0:00 dbskkd-cdb
aruuser 907 0.0 0.3 2468 956 tty1 S 23:27 0:00 unclutter
aruuser 908 0.0 1.0 5688 2576 tty1 S 23:27 0:00 xmascot -degree 1
aruuser 910 0.0 0.3 2432 780 tty1 S 23:27 0:00 /usr/X11R6/lib/X1
aruuser 911 0.0 0.7 4060 1828 tty1 S 23:27 0:00 /usr/X11R6/lib/X1
aruuser 912 0.0 0.4 3292 1260 tty1 S 23:27 0:00 /usr/X11R6/lib/X1
aruuser 913 0.0 0.1 1356 344 tty1 S 23:27 0:00 /usr/X11R6/lib/X1
aruuser 915 0.0 0.3 2720 968 tty1 S 23:27 0:00 astime -geometry
aruuser 920 0.0 0.3 2708 904 tty1 S 23:27 0:00 ascpu -position -
aruuser 921 0.0 0.3 2292 896 tty1 S 23:27 0:00 /usr/X11R6/lib/X1
aruuser 922 0.0 0.3 2572 872 tty1 S 23:27 0:00 asmem -position -
aruuser 924 0.0 0.9 5296 2496 tty1 S 23:27 0:00 kterm -geometry 8
aruuser 926 0.0 0.7 3920 1852 pts/0 S 23:27 0:00 bash
aruuser 937 0.0 0.9 5296 2556 tty1 S 23:27 0:00 kterm -geometry 8
aruuser 939 0.0 0.7 3920 1852 pts/1 S 23:27 0:00 bash
aruuser 950 0.0 0.2 2584 764 pts/1 S 23:27 0:00 script aruuser_002
aruuser 951 0.0 0.3 2592 788 pts/1 S 23:27 0:00 script aruuser_002
aruuser 952 0.0 0.7 3920 1852 pts/2 S 23:27 0:00 bash -i
root 972 0.0 0.5 3204 1496 pts/2 S 23:27 0:00 -su
root 998 0.0 0.2 2200 736 pts/2 R 23:33 0:00 ps aux
lx:/var/log# df
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/hda7 9469148 2617988 6362384 30% /
lx:/var/log# date
Thu Oct 18 23:33:43 JST 2007
lx:/var/log# exit
logout
lx:~$ exit
他にも いろいろ有るでしょうが このくらいとしておきます。
にゃんたろう 拝!
2007年11月19日 (月) 21:14:48 JST 作成