/l3/users/eb/2009/linux7/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 :17 :18 :19 :20 :21 :22 :23 :24 :25 :26 :27 :28 :29 :30 :31 :32 :33 :34 :35 :36 :37 :38 :39 :40 :41 :42 :43 :44 :45 :46 :47 :48 :49 :50 |
|
#ping klekhivka.myftp.org -c 1
PING klekhivka.myftp.org (94.179.231.153) 56(84) bytes of data. --- klekhivka.myftp.org ping statistics --- 1 packets transmitted, 0 received, 100% packet loss, time 0ms |
#ping klekhivka.myftp.org -c 1
PING klekhivka.myftp.org (94.179.231.153) 56(84) bytes of data. --- klekhivka.myftp.org ping statistics --- 1 packets transmitted, 0 received, 100% packet loss, time 0ms |
#cat /dev/urandom | tr -dc a-zA-Z0-9'\n'|cut -c 1-8|grep -i chub
uTChub9X HdEchuBa chUBhmIx 7oEChUBL chUBSaro ^C |
#cat /dev/urandom | tr -dc a-zA-Z0-9'\n'|cut -c 1-8|grep -i chub
uTChub9X HdEchuBa chUBhmIx 7oEChUBL chUBSaro ^C |
#grep -r 10.0.35 /etc
/etc/resolv.conf:nameserver 10.0.35.1 /etc/apt/sources.list:deb http://10.0.35.1:9999/debian sid main |
#grep -r 10.0.35 /etc
/etc/resolv.conf:nameserver 10.0.35.1 /etc/apt/sources.list:deb http://10.0.35.1:9999/debian sid main |
#strings /proc/kcore | grep pass
Attempt to load the primary boot image from FILE. The rest of the line is passed verbatim as the "kernel command line". Any modules must be reloaded after using this command. The option --type is used to suggest what type of kernel to be loaded. TYPE must be either of "netbsd", "freebsd", "openbsd", "linux", "biglinux" and "multiboot". The option --no-mem-option tells GRUB not to pass a Linux's m Generate a password in MD5 format. Load a boot module FILE for a Multiboot format boot image (no interpretation of the file contents is made, so users of this command must know what the kernel in question expects). The rest of the line is passed as the "module command line", like the `kernel' command. password password [--md5] PASSWD [FILE] If used in the first section of a menu file, disable all interactive editing control (menu entry editor and command line). If the password PASSWD is entered, it loads the FILE as a new config file and restarts the GRUB Stage 2. If you omit the argument FILE, then GRUB just unlocks privileged instructions. You can also use it in the script section, in which case it will ask for the password, befor Set the current "root device" to the device DEVICE, then attempt to mount it to get the partition size (for passing the partition descriptor in `ES:ESI', used by some chain-loaded bootloaders), the BSD drive-type (for booting BSD kernels using their native boot format), and correctly determine the PC partition where a BSD sub-partition is located. The optional HDBIAS parameter is a number to tell password to unlock the next set of features. No init found. Try passing init= option to kernel. passed. ... passwd- gdmaskpass chpasswdgRIF common-password passwd pam_unix_passwd.so opasswd gpasswd.1.gz passwd.1.gz ^C |
#strings /proc/kcore | grep pass
Attempt to load the primary boot image from FILE. The rest of the line is passed verbatim as the "kernel command line". Any modules must be reloaded after using this command. The option --type is used to suggest what type of kernel to be loaded. TYPE must be either of "netbsd", "freebsd", "openbsd", "linux", "biglinux" and "multiboot". The option --no-mem-option tells GRUB not to pass a Linux's m Generate a password in MD5 format. Load a boot module FILE for a Multiboot format boot image (no interpretation of the file contents is made, so users of this command must know what the kernel in question expects). The rest of the line is passed as the "module command line", like the `kernel' command. password password [--md5] PASSWD [FILE] If used in the first section of a menu file, disable all interactive editing control (menu entry editor and command line). If the password PASSWD is entered, it loads the FILE as a new config file and restarts the GRUB Stage 2. If you omit the argument FILE, then GRUB just unlocks privileged instructions. You can also use it in the script section, in which case it will ask for the password, befor Set the current "root device" to the device DEVICE, then attempt to mount it to get the partition size (for passing the partition descriptor in `ES:ESI', used by some chain-loaded bootloaders), the BSD drive-type (for booting BSD kernels using their native boot format), and correctly determine the PC partition where a BSD sub-partition is located. The optional HDBIAS parameter is a number to tell password to unlock the next set of features. No init found. Try passing init= option to kernel. passed. ... passwd- gdmaskpass chpasswdgRIF common-password passwd pam_unix_passwd.so opasswd gpasswd.1.gz passwd.1.gz ^C |
#strings /proc/kcore | grep pass
Attempt to load the primary boot image from FILE. The rest of the line is passed verbatim as the "kernel command line". Any modules must be reloaded after using this command. The option --type is used to suggest what type of kernel to be loaded. TYPE must be either of "netbsd", "freebsd", "openbsd", "linux", "biglinux" and "multiboot". The option --no-mem-option tells GRUB not to pass a Linux's m Generate a password in MD5 format. Load a boot module FILE for a Multiboot format boot image (no interpretation of the file contents is made, so users of this command must know what the kernel in question expects). The rest of the line is passed as the "module command line", like the `kernel' command. password password [--md5] PASSWD [FILE] If used in the first section of a menu file, disable all interactive editing control (menu entry editor and command line). If the password PASSWD is entered, it loads the FILE as a new config file and restarts the GRUB Stage 2. If you omit the argument FILE, then GRUB just unlocks privileged instructions. You can also use it in the script section, in which case it will ask for the password, befor Set the current "root device" to the device DEVICE, then attempt to mount it to get the partition size (for passing the partition descriptor in `ES:ESI', used by some chain-loaded bootloaders), the BSD drive-type (for booting BSD kernels using their native boot format), and correctly determine the PC partition where a BSD sub-partition is located. The optional HDBIAS parameter is a number to tell password to unlock the next set of features. No init found. Try passing init= option to kernel. passed. ... passwd- gdmaskpass chpasswdgRIF common-password passwd pam_unix_passwd.so opasswd gpasswd.1.gz passwd.1.gz ^C |
#strings /proc/kcore | grep pass
Attempt to load the primary boot image from FILE. The rest of the line is passed verbatim as the "kernel command line". Any modules must be reloaded after using this command. The option --type is used to suggest what type of kernel to be loaded. TYPE must be either of "netbsd", "freebsd", "openbsd", "linux", "biglinux" and "multiboot". The option --no-mem-option tells GRUB not to pass a Linux's m Generate a password in MD5 format. Load a boot module FILE for a Multiboot format boot image (no interpretation of the file contents is made, so users of this command must know what the kernel in question expects). The rest of the line is passed as the "module command line", like the `kernel' command. password password [--md5] PASSWD [FILE] If used in the first section of a menu file, disable all interactive editing control (menu entry editor and command line). If the password PASSWD is entered, it loads the FILE as a new config file and restarts the GRUB Stage 2. If you omit the argument FILE, then GRUB just unlocks privileged instructions. You can also use it in the script section, in which case it will ask for the password, befor Set the current "root device" to the device DEVICE, then attempt to mount it to get the partition size (for passing the partition descriptor in `ES:ESI', used by some chain-loaded bootloaders), the BSD drive-type (for booting BSD kernels using their native boot format), and correctly determine the PC partition where a BSD sub-partition is located. The optional HDBIAS parameter is a number to tell password to unlock the next set of features. No init found. Try passing init= option to kernel. passed. ... passwd- gdmaskpass chpasswdgRIF common-password passwd pam_unix_passwd.so opasswd gpasswd.1.gz passwd.1.gz ^C |
#strings /proc/kcore | grep passwd
passwd passwd- chpasswdgRIF passwd pam_unix_passwd.so opasswd gpasswd.1.gz passwd.1.gz ^C |
#strings /proc/kcore | grep passwd
passwd passwd- chpasswdgRIF passwd pam_unix_passwd.so opasswd gpasswd.1.gz passwd.1.gz ^C |
#grep -rl hostname /etc
/etc/rcS.d/S10checkroot.sh /etc/rcS.d/S02hostname.sh /etc/rcS.d/S55bootmisc.sh /etc/init.d/checkroot.sh /etc/init.d/bootmisc.sh /etc/init.d/hostname.sh /etc/X11/X /etc/services /etc/apt/apt-file.conf /etc/hosts.deny ... /etc/alternatives/rlogin /etc/alternatives/rsh /etc/alternatives/netcat /etc/alternatives/rvim /etc/alternatives/x-window-manager /etc/alternatives/vim /etc/alternatives/view /etc/alternatives/write /etc/alternatives/rview /etc/bash_completion |
#grep -rl hostname /etc
/etc/rcS.d/S10checkroot.sh /etc/rcS.d/S02hostname.sh /etc/rcS.d/S55bootmisc.sh /etc/init.d/checkroot.sh /etc/init.d/bootmisc.sh /etc/init.d/hostname.sh /etc/X11/X /etc/services /etc/apt/apt-file.conf /etc/hosts.deny ... /etc/alternatives/rlogin /etc/alternatives/rsh /etc/alternatives/netcat /etc/alternatives/rvim /etc/alternatives/x-window-manager /etc/alternatives/vim /etc/alternatives/view /etc/alternatives/write /etc/alternatives/rview /etc/bash_completion |
#cat -n /etc/passwd | sed '1,/:100:/d'
20 sshd:x:101:65534::/var/run/sshd:/usr/sbin/nologin 21 messagebus:x:102:104::/var/run/dbus:/bin/false 22 polkituser:x:103:105:PolicyKit,,,:/var/run/PolicyKit:/bin/false 23 haldaemon:x:104:106:Hardware abstraction layer,,,:/var/run/hald:/bin/false 24 gdm:x:105:107:Gnome Display Manager:/var/lib/gdm:/bin/false 25 user:x:1000:1000::/home/user:/bin/bash |
#cat -n /etc/passwd | sed '1,/:100:/d'
20 sshd:x:101:65534::/var/run/sshd:/usr/sbin/nologin 21 messagebus:x:102:104::/var/run/dbus:/bin/false 22 polkituser:x:103:105:PolicyKit,,,:/var/run/PolicyKit:/bin/false 23 haldaemon:x:104:106:Hardware abstraction layer,,,:/var/run/hald:/bin/false 24 gdm:x:105:107:Gnome Display Manager:/var/lib/gdm:/bin/false 25 user:x:1000:1000::/home/user:/bin/bash |
#cat -n /etc/passwd | sed '1,/:10:/d'
12 proxy:x:13:13:proxy:/bin:/bin/sh 13 www-data:x:33:33:www-data:/var/www:/bin/sh 14 backup:x:34:34:backup:/var/backups:/bin/sh 15 list:x:38:38:Mailing List Manager:/var/list:/bin/sh 16 irc:x:39:39:ircd:/var/run/ircd:/bin/sh 17 gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh 18 nobody:x:65534:65534:nobody:/nonexistent:/bin/sh 19 libuuid:x:100:101::/var/lib/libuuid:/bin/sh 20 sshd:x:101:65534::/var/run/sshd:/usr/sbin/nologin 21 messagebus:x:102:104::/var/run/dbus:/bin/false 22 polkituser:x:103:105:PolicyKit,,,:/var/run/PolicyKit:/bin/false 23 haldaemon:x:104:106:Hardware abstraction layer,,,:/var/run/hald:/bin/false 24 gdm:x:105:107:Gnome Display Manager:/var/lib/gdm:/bin/false 25 user:x:1000:1000::/home/user:/bin/bash |
#cat -n /etc/passwd | sed '1,/:10:/d'
12 proxy:x:13:13:proxy:/bin:/bin/sh 13 www-data:x:33:33:www-data:/var/www:/bin/sh 14 backup:x:34:34:backup:/var/backups:/bin/sh 15 list:x:38:38:Mailing List Manager:/var/list:/bin/sh 16 irc:x:39:39:ircd:/var/run/ircd:/bin/sh 17 gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh 18 nobody:x:65534:65534:nobody:/nonexistent:/bin/sh 19 libuuid:x:100:101::/var/lib/libuuid:/bin/sh 20 sshd:x:101:65534::/var/run/sshd:/usr/sbin/nologin 21 messagebus:x:102:104::/var/run/dbus:/bin/false 22 polkituser:x:103:105:PolicyKit,,,:/var/run/PolicyKit:/bin/false 23 haldaemon:x:104:106:Hardware abstraction layer,,,:/var/run/hald:/bin/false 24 gdm:x:105:107:Gnome Display Manager:/var/lib/gdm:/bin/false 25 user:x:1000:1000::/home/user:/bin/bash |
#netstat -A unix
Active UNIX domain sockets (w/o servers) Proto RefCnt Flags Type State I-Node Path unix 2 [ ] DGRAM 2954 @/org/kernel/udev/udevd unix 2 [ ] DGRAM 6238 @/org/freedesktop/hal/udev_event unix 4 [ ] DGRAM 6086 /dev/log unix 3 [ ] STREAM CONNECTED 32163 @/tmp/.ICE-unix/2515 unix 3 [ ] STREAM CONNECTED 32162 unix 3 [ ] STREAM CONNECTED 32161 @/tmp/.X11-unix/X0 unix 3 [ ] STREAM CONNECTED 32160 unix 3 [ ] STREAM CONNECTED 10774 @/tmp/.ICE-unix/2515 ... unix 3 [ ] STREAM CONNECTED 6410 unix 3 [ ] STREAM CONNECTED 6233 @/var/run/hald/dbus-hJSq2MBuMK unix 3 [ ] STREAM CONNECTED 6232 unix 3 [ ] STREAM CONNECTED 6211 /var/run/dbus/system_bus_socket unix 3 [ ] STREAM CONNECTED 6210 unix 3 [ ] STREAM CONNECTED 6196 /var/run/dbus/system_bus_socket unix 3 [ ] STREAM CONNECTED 6195 unix 2 [ ] DGRAM 6166 unix 3 [ ] STREAM CONNECTED 6111 unix 3 [ ] STREAM CONNECTED 6110 |
#netstat -A unix
Active UNIX domain sockets (w/o servers) Proto RefCnt Flags Type State I-Node Path unix 2 [ ] DGRAM 2954 @/org/kernel/udev/udevd unix 2 [ ] DGRAM 6238 @/org/freedesktop/hal/udev_event unix 4 [ ] DGRAM 6086 /dev/log unix 3 [ ] STREAM CONNECTED 32163 @/tmp/.ICE-unix/2515 unix 3 [ ] STREAM CONNECTED 32162 unix 3 [ ] STREAM CONNECTED 32161 @/tmp/.X11-unix/X0 unix 3 [ ] STREAM CONNECTED 32160 unix 3 [ ] STREAM CONNECTED 10774 @/tmp/.ICE-unix/2515 ... unix 3 [ ] STREAM CONNECTED 6410 unix 3 [ ] STREAM CONNECTED 6233 @/var/run/hald/dbus-hJSq2MBuMK unix 3 [ ] STREAM CONNECTED 6232 unix 3 [ ] STREAM CONNECTED 6211 /var/run/dbus/system_bus_socket unix 3 [ ] STREAM CONNECTED 6210 unix 3 [ ] STREAM CONNECTED 6196 /var/run/dbus/system_bus_socket unix 3 [ ] STREAM CONNECTED 6195 unix 2 [ ] DGRAM 6166 unix 3 [ ] STREAM CONNECTED 6111 unix 3 [ ] STREAM CONNECTED 6110 |
#ls -lF --color=always /etc
-rw-r--r-- 1 root root 1450 Май 25 14:22 bash.bashrc -rw-r--r-- 1 root root 219155 Апр 2 23:01 bash_completion drwxr-xr-x 2 root root 4096 Май 26 11:10 bash_completion.d/ -rw-r--r-- 1 root root 332 Май 8 15:21 bindresvport.blacklist drwxr-xr-x 3 root root 4096 Май 25 03:28 ca-certificates/ -rw-r--r-- 1 root root 6282 Май 25 03:28 ca-certificates.conf drwxr-xr-x 2 root root 4096 Май 24 13:16 calendar/ drwxr-xr-x 2 root root 4096 Май 25 03:07 console/ -rw-r--r-- 1 root root 510 Май 25 12:02 console-cyrillic drwxr-xr-x 4 root root 4096 Май 25 03:07 ConsoleKit/ ... drwxr-xr-x 2 root root 4096 Май 24 13:16 terminfo/ -rw-r--r-- 1 root root 8 Май 24 13:16 timezone -rw-r--r-- 1 root root 645 Мар 25 13:05 ts.conf -rw-r--r-- 1 root root 1260 Май 30 2008 ucf.conf drwxr-xr-x 4 root root 4096 Май 24 13:16 udev/ drwxr-xr-x 2 root root 4096 Май 24 13:16 vim/ -rw-r--r-- 1 root root 4221 Сен 8 2008 wgetrc drwxr-xr-x 8 root root 4096 Май 25 03:52 X11/ drwxr-xr-x 6 root root 4096 Май 25 03:08 xdg/ drwxr-xr-x 2 root root 4096 Май 25 03:52 xml/ |
#ls -lF --color=always /etc
-rw-r--r-- 1 root root 1450 Май 25 14:22 bash.bashrc -rw-r--r-- 1 root root 219155 Апр 2 23:01 bash_completion drwxr-xr-x 2 root root 4096 Май 26 11:10 bash_completion.d/ -rw-r--r-- 1 root root 332 Май 8 15:21 bindresvport.blacklist drwxr-xr-x 3 root root 4096 Май 25 03:28 ca-certificates/ -rw-r--r-- 1 root root 6282 Май 25 03:28 ca-certificates.conf drwxr-xr-x 2 root root 4096 Май 24 13:16 calendar/ drwxr-xr-x 2 root root 4096 Май 25 03:07 console/ -rw-r--r-- 1 root root 510 Май 25 12:02 console-cyrillic drwxr-xr-x 4 root root 4096 Май 25 03:07 ConsoleKit/ ... drwxr-xr-x 2 root root 4096 Май 24 13:16 terminfo/ -rw-r--r-- 1 root root 8 Май 24 13:16 timezone -rw-r--r-- 1 root root 645 Мар 25 13:05 ts.conf -rw-r--r-- 1 root root 1260 Май 30 2008 ucf.conf drwxr-xr-x 4 root root 4096 Май 24 13:16 udev/ drwxr-xr-x 2 root root 4096 Май 24 13:16 vim/ -rw-r--r-- 1 root root 4221 Сен 8 2008 wgetrc drwxr-xr-x 8 root root 4096 Май 25 03:52 X11/ drwxr-xr-x 6 root root 4096 Май 25 03:08 xdg/ drwxr-xr-x 2 root root 4096 Май 25 03:52 xml/ |
#ls -lF --color=always /dev
crw-rw---- 1 root root 1, 11 Май 26 09:26 kmsg srw-rw-rw- 1 root root 0 Май 26 09:27 log= brw------- 1 root root 7, 0 Май 26 09:27 loop0 lrwxrwxrwx 1 root root 13 Май 26 09:27 MAKEDEV -> /sbin/MAKEDEV* crw-r----- 1 root kmem 1, 1 Май 26 09:26 mem crw-rw----+ 1 root audio 14, 0 Май 26 09:27 mixer drwxr-xr-x 2 root root 60 Май 26 09:27 net/ crw-rw---- 1 root root 10, 62 Май 26 09:26 network_latency crw-rw---- 1 root root 10, 61 Май 26 09:26 network_throughput crw-rw-rw- 1 root root 1, 3 Май 26 09:26 null ... crw-rw---- 1 root root 7, 128 Май 26 09:26 vcsa crw-rw---- 1 root root 7, 129 Май 26 09:26 vcsa1 crw-rw---- 1 root root 7, 130 Май 26 09:27 vcsa2 crw-rw---- 1 root root 7, 131 Май 26 09:27 vcsa3 crw-rw---- 1 root root 7, 132 Май 26 09:27 vcsa4 crw-rw---- 1 root root 7, 133 Май 26 09:27 vcsa5 crw-rw---- 1 root root 7, 134 Май 26 09:27 vcsa6 crw-rw---- 1 root root 7, 135 Май 26 09:27 vcsa7 prw-r----- 1 root adm 0 Май 26 16:17 xconsole| crw-rw-rw- 1 root root 1, 5 Май 26 09:26 zero |
#ls -lF --color=always /dev
crw-rw---- 1 root root 1, 11 Май 26 09:26 kmsg srw-rw-rw- 1 root root 0 Май 26 09:27 log= brw------- 1 root root 7, 0 Май 26 09:27 loop0 lrwxrwxrwx 1 root root 13 Май 26 09:27 MAKEDEV -> /sbin/MAKEDEV* crw-r----- 1 root kmem 1, 1 Май 26 09:26 mem crw-rw----+ 1 root audio 14, 0 Май 26 09:27 mixer drwxr-xr-x 2 root root 60 Май 26 09:27 net/ crw-rw---- 1 root root 10, 62 Май 26 09:26 network_latency crw-rw---- 1 root root 10, 61 Май 26 09:26 network_throughput crw-rw-rw- 1 root root 1, 3 Май 26 09:26 null ... crw-rw---- 1 root root 7, 128 Май 26 09:26 vcsa crw-rw---- 1 root root 7, 129 Май 26 09:26 vcsa1 crw-rw---- 1 root root 7, 130 Май 26 09:27 vcsa2 crw-rw---- 1 root root 7, 131 Май 26 09:27 vcsa3 crw-rw---- 1 root root 7, 132 Май 26 09:27 vcsa4 crw-rw---- 1 root root 7, 133 Май 26 09:27 vcsa5 crw-rw---- 1 root root 7, 134 Май 26 09:27 vcsa6 crw-rw---- 1 root root 7, 135 Май 26 09:27 vcsa7 prw-r----- 1 root adm 0 Май 26 16:17 xconsole| crw-rw-rw- 1 root root 1, 5 Май 26 09:26 zero |
#ls -lF --color=always /etc
-rw-r--r-- 1 root root 1450 Май 25 14:22 bash.bashrc -rw-r--r-- 1 root root 219155 Апр 2 23:01 bash_completion drwxr-xr-x 2 root root 4096 Май 26 11:10 bash_completion.d/ -rw-r--r-- 1 root root 332 Май 8 15:21 bindresvport.blacklist drwxr-xr-x 3 root root 4096 Май 25 03:28 ca-certificates/ -rw-r--r-- 1 root root 6282 Май 25 03:28 ca-certificates.conf drwxr-xr-x 2 root root 4096 Май 24 13:16 calendar/ drwxr-xr-x 2 root root 4096 Май 25 03:07 console/ -rw-r--r-- 1 root root 510 Май 25 12:02 console-cyrillic drwxr-xr-x 4 root root 4096 Май 25 03:07 ConsoleKit/ ... drwxr-xr-x 2 root root 4096 Май 24 13:16 terminfo/ -rw-r--r-- 1 root root 8 Май 24 13:16 timezone -rw-r--r-- 1 root root 645 Мар 25 13:05 ts.conf -rw-r--r-- 1 root root 1260 Май 30 2008 ucf.conf drwxr-xr-x 4 root root 4096 Май 24 13:16 udev/ drwxr-xr-x 2 root root 4096 Май 24 13:16 vim/ -rw-r--r-- 1 root root 4221 Сен 8 2008 wgetrc drwxr-xr-x 8 root root 4096 Май 25 03:52 X11/ drwxr-xr-x 6 root root 4096 Май 25 03:08 xdg/ drwxr-xr-x 2 root root 4096 Май 25 03:52 xml/ |
#ls -lF --color=always /etc
-rw-r--r-- 1 root root 1450 Май 25 14:22 bash.bashrc -rw-r--r-- 1 root root 219155 Апр 2 23:01 bash_completion drwxr-xr-x 2 root root 4096 Май 26 11:10 bash_completion.d/ -rw-r--r-- 1 root root 332 Май 8 15:21 bindresvport.blacklist drwxr-xr-x 3 root root 4096 Май 25 03:28 ca-certificates/ -rw-r--r-- 1 root root 6282 Май 25 03:28 ca-certificates.conf drwxr-xr-x 2 root root 4096 Май 24 13:16 calendar/ drwxr-xr-x 2 root root 4096 Май 25 03:07 console/ -rw-r--r-- 1 root root 510 Май 25 12:02 console-cyrillic drwxr-xr-x 4 root root 4096 Май 25 03:07 ConsoleKit/ ... drwxr-xr-x 2 root root 4096 Май 24 13:16 terminfo/ -rw-r--r-- 1 root root 8 Май 24 13:16 timezone -rw-r--r-- 1 root root 645 Мар 25 13:05 ts.conf -rw-r--r-- 1 root root 1260 Май 30 2008 ucf.conf drwxr-xr-x 4 root root 4096 Май 24 13:16 udev/ drwxr-xr-x 2 root root 4096 Май 24 13:16 vim/ -rw-r--r-- 1 root root 4221 Сен 8 2008 wgetrc drwxr-xr-x 8 root root 4096 Май 25 03:52 X11/ drwxr-xr-x 6 root root 4096 Май 25 03:08 xdg/ drwxr-xr-x 2 root root 4096 Май 25 03:52 xml/ |
#du /etc
8 /etc/gdm/PostLogin 8 /etc/gdm/Init 20 /etc/gdm/modules 88 /etc/gdm 12 /etc/emacs/site-start.d 16 /etc/emacs 12 /etc/udev/rules.d 4 /etc/udev/.dev 28 /etc/udev 8 /etc/gtk-2.0 ... 12 /etc/gconf/2 4 /etc/gconf/gconf.xml.mandatory 24 /etc/gconf 4 /etc/libpaper.d 8 /etc/gre.d 8 /etc/python 156 /etc/ssh 8 /etc/PolicyKit 8 /etc/cron.d 4336 /etc |
#du /etc
8 /etc/gdm/PostLogin 8 /etc/gdm/Init 20 /etc/gdm/modules 88 /etc/gdm 12 /etc/emacs/site-start.d 16 /etc/emacs 12 /etc/udev/rules.d 4 /etc/udev/.dev 28 /etc/udev 8 /etc/gtk-2.0 ... 12 /etc/gconf/2 4 /etc/gconf/gconf.xml.mandatory 24 /etc/gconf 4 /etc/libpaper.d 8 /etc/gre.d 8 /etc/python 156 /etc/ssh 8 /etc/PolicyKit 8 /etc/cron.d 4336 /etc |
#ls -lF --color=always /etc
-rw-r--r-- 1 root root 1450 Май 25 14:22 bash.bashrc -rw-r--r-- 1 root root 219155 Апр 2 23:01 bash_completion drwxr-xr-x 2 root root 4096 Май 26 11:10 bash_completion.d/ -rw-r--r-- 1 root root 332 Май 8 15:21 bindresvport.blacklist drwxr-xr-x 3 root root 4096 Май 25 03:28 ca-certificates/ -rw-r--r-- 1 root root 6282 Май 25 03:28 ca-certificates.conf drwxr-xr-x 2 root root 4096 Май 24 13:16 calendar/ drwxr-xr-x 2 root root 4096 Май 25 03:07 console/ -rw-r--r-- 1 root root 510 Май 25 12:02 console-cyrillic drwxr-xr-x 4 root root 4096 Май 25 03:07 ConsoleKit/ ... drwxr-xr-x 2 root root 4096 Май 24 13:16 terminfo/ -rw-r--r-- 1 root root 8 Май 24 13:16 timezone -rw-r--r-- 1 root root 645 Мар 25 13:05 ts.conf -rw-r--r-- 1 root root 1260 Май 30 2008 ucf.conf drwxr-xr-x 4 root root 4096 Май 24 13:16 udev/ drwxr-xr-x 2 root root 4096 Май 24 13:16 vim/ -rw-r--r-- 1 root root 4221 Сен 8 2008 wgetrc drwxr-xr-x 8 root root 4096 Май 25 03:52 X11/ drwxr-xr-x 6 root root 4096 Май 25 03:08 xdg/ drwxr-xr-x 2 root root 4096 Май 25 03:52 xml/ |
#ls -lF --color=always /etc
-rw-r--r-- 1 root root 1450 Май 25 14:22 bash.bashrc -rw-r--r-- 1 root root 219155 Апр 2 23:01 bash_completion drwxr-xr-x 2 root root 4096 Май 26 11:10 bash_completion.d/ -rw-r--r-- 1 root root 332 Май 8 15:21 bindresvport.blacklist drwxr-xr-x 3 root root 4096 Май 25 03:28 ca-certificates/ -rw-r--r-- 1 root root 6282 Май 25 03:28 ca-certificates.conf drwxr-xr-x 2 root root 4096 Май 24 13:16 calendar/ drwxr-xr-x 2 root root 4096 Май 25 03:07 console/ -rw-r--r-- 1 root root 510 Май 25 12:02 console-cyrillic drwxr-xr-x 4 root root 4096 Май 25 03:07 ConsoleKit/ ... drwxr-xr-x 2 root root 4096 Май 24 13:16 terminfo/ -rw-r--r-- 1 root root 8 Май 24 13:16 timezone -rw-r--r-- 1 root root 645 Мар 25 13:05 ts.conf -rw-r--r-- 1 root root 1260 Май 30 2008 ucf.conf drwxr-xr-x 4 root root 4096 Май 24 13:16 udev/ drwxr-xr-x 2 root root 4096 Май 24 13:16 vim/ -rw-r--r-- 1 root root 4221 Сен 8 2008 wgetrc drwxr-xr-x 8 root root 4096 Май 25 03:52 X11/ drwxr-xr-x 6 root root 4096 Май 25 03:08 xdg/ drwxr-xr-x 2 root root 4096 Май 25 03:52 xml/ |
#df -h
Файловая система Разм Исп Дост Исп% смонтирована на tmpfs 1,5G 0 1,5G 0% /lib/init/rw udev 10M 108K 9,9M 2% /dev tmpfs 1,5G 4,0K 1,5G 1% /dev/shm rootfs 19G 1,4G 17G 8% / |
#df -h
Файловая система Разм Исп Дост Исп% смонтирована на tmpfs 1,5G 0 1,5G 0% /lib/init/rw udev 10M 108K 9,9M 2% /dev tmpfs 1,5G 4,0K 1,5G 1% /dev/shm rootfs 19G 1,4G 17G 8% / |
#apt-get install file
Чтение списков пакетов... Готово Построение дерева зависимостей Чтение информации о состоянии... Готово Уже установлена самая новая версия file. file установлен вручную. Следующие пакеты устанавливались автоматически и больше не требуются: update-inetd portmap Для их удаления используйте 'apt-get autoremove'. обновлено 0, установлено 0 новых пакетов, для удаления отмечено 0 пакетов, и 0 пакетов не обновлено. |
#apt-get install file
Чтение списков пакетов... Готово Построение дерева зависимостей Чтение информации о состоянии... Готово Уже установлена самая новая версия file. file установлен вручную. Следующие пакеты устанавливались автоматически и больше не требуются: update-inetd portmap Для их удаления используйте 'apt-get autoremove'. обновлено 0, установлено 0 новых пакетов, для удаления отмечено 0 пакетов, и 0 пакетов не обновлено. |
#file `which ls`
/bin/ls: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, stripped |
#file `which ls`
/bin/ls: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, stripped |
#find /usr/share/|xargs file -i|grep doc
/usr/share/xfce4/doc/C/images/xfsm-advanced.png: image/png; charset=binary /usr/share/xfce4/doc/C/images/xfdesktop-behavior-tab.png: image/png; charset=binary /usr/share/xfce4/doc/C/images/taskbar_settings.png: image/png; charset=binary /usr/share/xfce4/doc/C/images/compose_shortcut.png: image/png; charset=binary /usr/share/xfce4/doc/C/images/xfdesktop-list.png: image/png; charset=binary /usr/share/xfce4/doc/C/images/workspace_margins.png: image/png; charset=binary /usr/share/xfce4/doc/C/images/misc_wm_prefs.png: image/png; charset=binary /usr/share/xfce4/doc/C/images/xfprint-manager.png: image/png; charset=binary /usr/share/xfce4/doc/C/images/exo-preferred-applications-webbrowser-menu.png: image/png; charset=binary /usr/share/xfce4/doc/C/images/exo-preferred-applications-utilities.png: image/png; charset=binary ... /usr/share/xfce4/doc/id/images: application/x-directory; charset=binary /usr/share/xfce4/doc/id/images/exo-preferred-applications-webbrowser-custom.png: image/png; charset=binary /usr/share/xfce4/doc/id/images/exo-preferred-applications-webbrowser-menu.png: image/png; charset=binary /usr/share/xfce4/doc/id/images/exo-preferred-applications-utilities.png: image/png; charset=binary /usr/share/xfce4/doc/id/images/exo-preferred-applications-internet.png: image/png; charset=binary /usr/share/xfce4/doc/id/exo-preferred-applications.html: text/html; charset=iso-8859-1 /usr/share/xfce4/doc/da: application/x-directory; charset=binary /usr/share/xfce4/doc/da/xfdesktop.html: text/html; charset=iso-8859-1 /usr/share/xfce4/doc/da/exo-preferred-applications.html: text/html; charset=iso-8859-1 ^C |
#find /usr/share/|xargs file -i|grep doc
/usr/share/xfce4/doc/C/images/xfsm-advanced.png: image/png; charset=binary /usr/share/xfce4/doc/C/images/xfdesktop-behavior-tab.png: image/png; charset=binary /usr/share/xfce4/doc/C/images/taskbar_settings.png: image/png; charset=binary /usr/share/xfce4/doc/C/images/compose_shortcut.png: image/png; charset=binary /usr/share/xfce4/doc/C/images/xfdesktop-list.png: image/png; charset=binary /usr/share/xfce4/doc/C/images/workspace_margins.png: image/png; charset=binary /usr/share/xfce4/doc/C/images/misc_wm_prefs.png: image/png; charset=binary /usr/share/xfce4/doc/C/images/xfprint-manager.png: image/png; charset=binary /usr/share/xfce4/doc/C/images/exo-preferred-applications-webbrowser-menu.png: image/png; charset=binary /usr/share/xfce4/doc/C/images/exo-preferred-applications-utilities.png: image/png; charset=binary ... /usr/share/xfce4/doc/id/images: application/x-directory; charset=binary /usr/share/xfce4/doc/id/images/exo-preferred-applications-webbrowser-custom.png: image/png; charset=binary /usr/share/xfce4/doc/id/images/exo-preferred-applications-webbrowser-menu.png: image/png; charset=binary /usr/share/xfce4/doc/id/images/exo-preferred-applications-utilities.png: image/png; charset=binary /usr/share/xfce4/doc/id/images/exo-preferred-applications-internet.png: image/png; charset=binary /usr/share/xfce4/doc/id/exo-preferred-applications.html: text/html; charset=iso-8859-1 /usr/share/xfce4/doc/da: application/x-directory; charset=binary /usr/share/xfce4/doc/da/xfdesktop.html: text/html; charset=iso-8859-1 /usr/share/xfce4/doc/da/exo-preferred-applications.html: text/html; charset=iso-8859-1 ^C |
#find /usr/share/ |xargs file -i |grep avi
/usr/share/pixmaps/pidgin/emotes/default/waving.png: image/png; charset=binary /usr/share/zoneinfo/Atlantic/Reykjavik: application/octet-stream; charset=binary /usr/share/zoneinfo/Africa/Brazzaville: application/octet-stream; charset=binary /usr/share/zoneinfo/Antarctica/Davis: application/octet-stream; charset=binary /usr/share/zoneinfo/right/Atlantic/Reykjavik: application/octet-stream; charset=binary /usr/share/zoneinfo/right/Africa/Brazzaville: application/octet-stream; charset=binary /usr/share/zoneinfo/right/Antarctica/Davis: application/octet-stream; charset=binary /usr/share/zoneinfo/right/America/Argentina/ComodRivadavia: application/octet-stream; charset=binary /usr/share/zoneinfo/posix/Atlantic/Reykjavik: application/octet-stream; charset=binary /usr/share/zoneinfo/posix/Africa/Brazzaville: application/octet-stream; charset=binary /usr/share/zoneinfo/posix/Antarctica/Davis: application/octet-stream; charset=binary /usr/share/zoneinfo/posix/America/Argentina/ComodRivadavia: application/octet-stream; charset=binary /usr/share/zoneinfo/America/Argentina/ComodRivadavia: application/octet-stream; charset=binary /usr/share/xfce4/helpers/netscape-navigator.desktop: text/plain; charset=utf-8 /usr/share/xfce4/doc/C/images/xfdesktop-behavior-tab.png: image/png; charset=binary /usr/share/xfce4/doc/it/images/xfdesktop-behavior-tab.png: image/png; charset=binary /usr/share/xfce4/doc/fr/images/xfdesktop-behavior-tab.png: image/png; charset=binary /usr/share/perl/5.10.0/unicore/lib/gc_sc/InShavia.pl: text/plain; charset=us-ascii ^C |
#find /usr/share/ |xargs file -i |grep avi
/usr/share/pixmaps/pidgin/emotes/default/waving.png: image/png; charset=binary /usr/share/zoneinfo/Atlantic/Reykjavik: application/octet-stream; charset=binary /usr/share/zoneinfo/Africa/Brazzaville: application/octet-stream; charset=binary /usr/share/zoneinfo/Antarctica/Davis: application/octet-stream; charset=binary /usr/share/zoneinfo/right/Atlantic/Reykjavik: application/octet-stream; charset=binary /usr/share/zoneinfo/right/Africa/Brazzaville: application/octet-stream; charset=binary /usr/share/zoneinfo/right/Antarctica/Davis: application/octet-stream; charset=binary /usr/share/zoneinfo/right/America/Argentina/ComodRivadavia: application/octet-stream; charset=binary /usr/share/zoneinfo/posix/Atlantic/Reykjavik: application/octet-stream; charset=binary /usr/share/zoneinfo/posix/Africa/Brazzaville: application/octet-stream; charset=binary /usr/share/zoneinfo/posix/Antarctica/Davis: application/octet-stream; charset=binary /usr/share/zoneinfo/posix/America/Argentina/ComodRivadavia: application/octet-stream; charset=binary /usr/share/zoneinfo/America/Argentina/ComodRivadavia: application/octet-stream; charset=binary /usr/share/xfce4/helpers/netscape-navigator.desktop: text/plain; charset=utf-8 /usr/share/xfce4/doc/C/images/xfdesktop-behavior-tab.png: image/png; charset=binary /usr/share/xfce4/doc/it/images/xfdesktop-behavior-tab.png: image/png; charset=binary /usr/share/xfce4/doc/fr/images/xfdesktop-behavior-tab.png: image/png; charset=binary /usr/share/perl/5.10.0/unicore/lib/gc_sc/InShavia.pl: text/plain; charset=us-ascii ^C |
#dmesg | grep sda
[ 3.929107] sd 2:0:0:0: [sda] 156301488 512-byte hardware sectors: (80.0 GB/74.5 GiB) [ 3.929188] sd 2:0:0:0: [sda] Write Protect is off [ 3.929235] sd 2:0:0:0: [sda] Mode Sense: 00 3a 00 00 [ 3.929256] sd 2:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA [ 3.929381] sd 2:0:0:0: [sda] 156301488 512-byte hardware sectors: (80.0 GB/74.5 GiB) [ 3.929461] sd 2:0:0:0: [sda] Write Protect is off [ 3.929507] sd 2:0:0:0: [sda] Mode Sense: 00 3a 00 00 [ 3.929529] sd 2:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA [ 3.929602] sda: sda1 [ 3.943494] sd 2:0:0:0: [sda] Attached SCSI disk [ 6.473542] EXT3 FS on sda1, internal journal |
#dmesg | grep sda
[ 3.929107] sd 2:0:0:0: [sda] 156301488 512-byte hardware sectors: (80.0 GB/74.5 GiB) [ 3.929188] sd 2:0:0:0: [sda] Write Protect is off [ 3.929235] sd 2:0:0:0: [sda] Mode Sense: 00 3a 00 00 [ 3.929256] sd 2:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA [ 3.929381] sd 2:0:0:0: [sda] 156301488 512-byte hardware sectors: (80.0 GB/74.5 GiB) [ 3.929461] sd 2:0:0:0: [sda] Write Protect is off [ 3.929507] sd 2:0:0:0: [sda] Mode Sense: 00 3a 00 00 [ 3.929529] sd 2:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA [ 3.929602] sda: sda1 [ 3.943494] sd 2:0:0:0: [sda] Attached SCSI disk [ 6.473542] EXT3 FS on sda1, internal journal |
#ps
ps ps2pdf ps2pdf14 ps2ps2 psed psfstriptable psmerge psselect pstree ps2ascii ps2pdf12 ps2pdfwr ps2txt psfaddtable psfxtable psnup psset pstree.x11 ps2epsi ps2pdf13 ps2ps psbook psfgettable psmandup psresize pstops pstruct |
#ps
ps ps2pdf ps2pdf14 ps2ps2 psed psfstriptable psmerge psselect pstree ps2ascii ps2pdf12 ps2pdfwr ps2txt psfaddtable psfxtable psnup psset pstree.x11 ps2epsi ps2pdf13 ps2ps psbook psfgettable psmandup psresize pstops pstruct |
#pstree
init─┬─Thunar ├─console-kit-dae───63*[{console-kit-dae}] ├─cron ├─2*[dbus-daemon] ├─dbus-launch ├─gam_server ├─gconfd-2 ├─gdm───gdm─┬─Xorg │ └─x-session-manag───ssh-agent ├─6*[getty] ... │ ├─gajim───exo-open │ └─{xfce4-menu-plug} ├─xfce4-settings- ├─xfconfd ├─xfdesktop ├─xfsettingsd ├─xfwm4 ├─xterm───bash───su───script───script───su───script───script───bash───pstree ├─xterm───ssh └─xterm───script───script───bash |
#pstree
init─┬─Thunar ├─console-kit-dae───63*[{console-kit-dae}] ├─cron ├─2*[dbus-daemon] ├─dbus-launch ├─gam_server ├─gconfd-2 ├─gdm───gdm─┬─Xorg │ └─x-session-manag───ssh-agent ├─6*[getty] ... │ ├─gajim───exo-open │ └─{xfce4-menu-plug} ├─xfce4-settings- ├─xfconfd ├─xfdesktop ├─xfsettingsd ├─xfwm4 ├─xterm───bash───su───script───script───su───script───script───bash───pstree ├─xterm───ssh └─xterm───script───script───bash |
#ps ax
PID TTY STAT TIME COMMAND 1 ? Ss 0:01 init [2] 2 ? S< 0:00 [kthreadd] 3 ? S< 0:00 [migration/0] 4 ? S< 0:00 [ksoftirqd/0] 5 ? S< 0:00 [watchdog/0] 6 ? S< 0:00 [migration/1] 7 ? S< 0:00 [ksoftirqd/1] 8 ? S< 0:00 [watchdog/1] 9 ? S< 0:00 [cpuset] ... 2931 pts/2 Ss 0:01 bash 2982 ? Ssl 1:10 /usr/lib/iceweasel/firefox-bin -a iceweasel 6427 ? Ss 0:00 xterm -class UXTerm -title uxterm -u8 6431 pts/4 Ss+ 0:00 script -f -c bash -q /home/user/.lilalo//380131311761420870-1243327007.script 6484 pts/4 S+ 0:00 script -f -c bash -q /home/user/.lilalo//380131311761420870-1243327007.script 6485 pts/5 Ss+ 0:00 bash 8666 ? Z 0:00 [exo-open] <defunct> 9430 ? Ss 0:00 xterm -class UXTerm -title uxterm -u8 -e ssh root@10.0.35.100 9434 pts/3 Ss+ 0:00 ssh root@10.0.35.100 9443 pts/2 R+ 0:00 ps ax |
#ps ax
PID TTY STAT TIME COMMAND 1 ? Ss 0:01 init [2] 2 ? S< 0:00 [kthreadd] 3 ? S< 0:00 [migration/0] 4 ? S< 0:00 [ksoftirqd/0] 5 ? S< 0:00 [watchdog/0] 6 ? S< 0:00 [migration/1] 7 ? S< 0:00 [ksoftirqd/1] 8 ? S< 0:00 [watchdog/1] 9 ? S< 0:00 [cpuset] ... 2931 pts/2 Ss 0:01 bash 2982 ? Ssl 1:10 /usr/lib/iceweasel/firefox-bin -a iceweasel 6427 ? Ss 0:00 xterm -class UXTerm -title uxterm -u8 6431 pts/4 Ss+ 0:00 script -f -c bash -q /home/user/.lilalo//380131311761420870-1243327007.script 6484 pts/4 S+ 0:00 script -f -c bash -q /home/user/.lilalo//380131311761420870-1243327007.script 6485 pts/5 Ss+ 0:00 bash 8666 ? Z 0:00 [exo-open] <defunct> 9430 ? Ss 0:00 xterm -class UXTerm -title uxterm -u8 -e ssh root@10.0.35.100 9434 pts/3 Ss+ 0:00 ssh root@10.0.35.100 9443 pts/2 R+ 0:00 ps ax |
#ps waux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 1 0.0 0.0 2128 716 ? Ss 09:26 0:01 init [2] root 2 0.0 0.0 0 0 ? S< 09:26 0:00 [kthreadd] root 3 0.0 0.0 0 0 ? S< 09:26 0:00 [migration/0] root 4 0.0 0.0 0 0 ? S< 09:26 0:00 [ksoftirqd/0] root 5 0.0 0.0 0 0 ? S< 09:26 0:00 [watchdog/0] root 6 0.0 0.0 0 0 ? S< 09:26 0:00 [migration/1] root 7 0.0 0.0 0 0 ? S< 09:26 0:00 [ksoftirqd/1] root 8 0.0 0.0 0 0 ? S< 09:26 0:00 [watchdog/1] root 9 0.0 0.0 0 0 ? S< 09:26 0:00 [cpuset] ... root 2931 0.0 0.0 7188 3056 pts/2 Ss 09:30 0:01 bash user 2982 0.2 2.3 172232 72236 ? Ssl 09:31 1:10 /usr/lib/iceweasel/firefox-bin -a iceweasel user 6427 0.0 0.1 12696 5840 ? Ss 11:36 0:00 xterm -class UXTerm -title uxterm -u8 user 6431 0.0 0.0 4772 556 pts/4 Ss+ 11:36 0:00 script -f -c bash -q /home/user/.lilalo//380131311761420870-1243327007.script user 6484 0.0 0.0 4776 376 pts/4 S+ 11:36 0:00 script -f -c bash -q /home/user/.lilalo//380131311761420870-1243327007.script user 6485 0.0 0.1 9256 4784 pts/5 Ss+ 11:36 0:00 bash user 8666 0.0 0.0 0 0 ? Z 15:53 0:00 [exo-open] <defunct> user 9430 0.1 0.2 13580 7560 ? Ss 17:26 0:00 xterm -class UXTerm -title uxterm -u8 -e ssh root@10.0.35.100 user 9434 0.0 0.0 5260 2276 pts/3 Ss+ 17:26 0:00 ssh root@10.0.35.100 root 9451 0.0 0.0 5472 1052 pts/2 R+ 17:31 0:00 ps waux |
#ps waux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 1 0.0 0.0 2128 716 ? Ss 09:26 0:01 init [2] root 2 0.0 0.0 0 0 ? S< 09:26 0:00 [kthreadd] root 3 0.0 0.0 0 0 ? S< 09:26 0:00 [migration/0] root 4 0.0 0.0 0 0 ? S< 09:26 0:00 [ksoftirqd/0] root 5 0.0 0.0 0 0 ? S< 09:26 0:00 [watchdog/0] root 6 0.0 0.0 0 0 ? S< 09:26 0:00 [migration/1] root 7 0.0 0.0 0 0 ? S< 09:26 0:00 [ksoftirqd/1] root 8 0.0 0.0 0 0 ? S< 09:26 0:00 [watchdog/1] root 9 0.0 0.0 0 0 ? S< 09:26 0:00 [cpuset] ... root 2931 0.0 0.0 7188 3056 pts/2 Ss 09:30 0:01 bash user 2982 0.2 2.3 172232 72236 ? Ssl 09:31 1:10 /usr/lib/iceweasel/firefox-bin -a iceweasel user 6427 0.0 0.1 12696 5840 ? Ss 11:36 0:00 xterm -class UXTerm -title uxterm -u8 user 6431 0.0 0.0 4772 556 pts/4 Ss+ 11:36 0:00 script -f -c bash -q /home/user/.lilalo//380131311761420870-1243327007.script user 6484 0.0 0.0 4776 376 pts/4 S+ 11:36 0:00 script -f -c bash -q /home/user/.lilalo//380131311761420870-1243327007.script user 6485 0.0 0.1 9256 4784 pts/5 Ss+ 11:36 0:00 bash user 8666 0.0 0.0 0 0 ? Z 15:53 0:00 [exo-open] <defunct> user 9430 0.1 0.2 13580 7560 ? Ss 17:26 0:00 xterm -class UXTerm -title uxterm -u8 -e ssh root@10.0.35.100 user 9434 0.0 0.0 5260 2276 pts/3 Ss+ 17:26 0:00 ssh root@10.0.35.100 root 9451 0.0 0.0 5472 1052 pts/2 R+ 17:31 0:00 ps waux |
#ps waux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 1 0.0 0.0 2128 716 ? Ss 09:26 0:01 init [2] root 2 0.0 0.0 0 0 ? S< 09:26 0:00 [kthreadd] root 3 0.0 0.0 0 0 ? S< 09:26 0:00 [migration/0] root 4 0.0 0.0 0 0 ? S< 09:26 0:00 [ksoftirqd/0] root 5 0.0 0.0 0 0 ? S< 09:26 0:00 [watchdog/0] root 6 0.0 0.0 0 0 ? S< 09:26 0:00 [migration/1] root 7 0.0 0.0 0 0 ? S< 09:26 0:00 [ksoftirqd/1] root 8 0.0 0.0 0 0 ? S< 09:26 0:00 [watchdog/1] root 9 0.0 0.0 0 0 ? S< 09:26 0:00 [cpuset] ... root 2931 0.0 0.0 7188 3056 pts/2 Ss 09:30 0:01 bash user 2982 0.2 2.3 172232 72236 ? Ssl 09:31 1:10 /usr/lib/iceweasel/firefox-bin -a iceweasel user 6427 0.0 0.1 12696 5840 ? Ss 11:36 0:00 xterm -class UXTerm -title uxterm -u8 user 6431 0.0 0.0 4772 556 pts/4 Ss+ 11:36 0:00 script -f -c bash -q /home/user/.lilalo//380131311761420870-1243327007.script user 6484 0.0 0.0 4776 376 pts/4 S+ 11:36 0:00 script -f -c bash -q /home/user/.lilalo//380131311761420870-1243327007.script user 6485 0.0 0.1 9256 4784 pts/5 Ss+ 11:36 0:00 bash user 8666 0.0 0.0 0 0 ? Z 15:53 0:00 [exo-open] <defunct> user 9430 0.1 0.2 13580 7560 ? Ss 17:26 0:00 xterm -class UXTerm -title uxterm -u8 -e ssh root@10.0.35.100 user 9434 0.0 0.0 5260 2276 pts/3 Ss+ 17:26 0:00 ssh root@10.0.35.100 root 9459 0.0 0.0 5472 1052 pts/2 R+ 17:31 0:00 ps waux |
#ps waux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 1 0.0 0.0 2128 716 ? Ss 09:26 0:01 init [2] root 2 0.0 0.0 0 0 ? S< 09:26 0:00 [kthreadd] root 3 0.0 0.0 0 0 ? S< 09:26 0:00 [migration/0] root 4 0.0 0.0 0 0 ? S< 09:26 0:00 [ksoftirqd/0] root 5 0.0 0.0 0 0 ? S< 09:26 0:00 [watchdog/0] root 6 0.0 0.0 0 0 ? S< 09:26 0:00 [migration/1] root 7 0.0 0.0 0 0 ? S< 09:26 0:00 [ksoftirqd/1] root 8 0.0 0.0 0 0 ? S< 09:26 0:00 [watchdog/1] root 9 0.0 0.0 0 0 ? S< 09:26 0:00 [cpuset] ... root 2931 0.0 0.0 7188 3056 pts/2 Ss 09:30 0:01 bash user 2982 0.2 2.3 172232 72236 ? Ssl 09:31 1:10 /usr/lib/iceweasel/firefox-bin -a iceweasel user 6427 0.0 0.1 12696 5840 ? Ss 11:36 0:00 xterm -class UXTerm -title uxterm -u8 user 6431 0.0 0.0 4772 556 pts/4 Ss+ 11:36 0:00 script -f -c bash -q /home/user/.lilalo//380131311761420870-1243327007.script user 6484 0.0 0.0 4776 376 pts/4 S+ 11:36 0:00 script -f -c bash -q /home/user/.lilalo//380131311761420870-1243327007.script user 6485 0.0 0.1 9256 4784 pts/5 Ss+ 11:36 0:00 bash user 8666 0.0 0.0 0 0 ? Z 15:53 0:00 [exo-open] <defunct> user 9430 0.1 0.2 13580 7560 ? Ss 17:26 0:00 xterm -class UXTerm -title uxterm -u8 -e ssh root@10.0.35.100 user 9434 0.0 0.0 5260 2276 pts/3 Ss+ 17:26 0:00 ssh root@10.0.35.100 root 9459 0.0 0.0 5472 1052 pts/2 R+ 17:31 0:00 ps waux |
#ping klekhivka.myftp.org -c 1
PING klekhivka.myftp.org (94.179.231.153) 56(84) bytes of data. 64 bytes from 94.179.231.153: icmp_seq=1 ttl=120 time=3905 ms --- klekhivka.myftp.org ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 3905.600/3905.600/3905.600/0.000 ms |
#ping klekhivka.myftp.org -c 1
PING klekhivka.myftp.org (94.179.231.153) 56(84) bytes of data. 64 bytes from 94.179.231.153: icmp_seq=1 ttl=120 time=3905 ms --- klekhivka.myftp.org ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 3905.600/3905.600/3905.600/0.000 ms |
#ping klekhivka.myftp.org -c 1
PING klekhivka.myftp.org (94.179.231.153) 56(84) bytes of data. 64 bytes from 94.179.231.153: icmp_seq=1 ttl=120 time=2088 ms --- klekhivka.myftp.org ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 2088.460/2088.460/2088.460/0.000 ms |
#ping klekhivka.myftp.org -c 1
PING klekhivka.myftp.org (94.179.231.153) 56(84) bytes of data. 64 bytes from 94.179.231.153: icmp_seq=1 ttl=120 time=2088 ms --- klekhivka.myftp.org ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 2088.460/2088.460/2088.460/0.000 ms |
#vim /etc/crontab
--- /tmp/l3-saved-3069.2893.12001 2009-05-27 09:59:40.000000000 +0300 +++ /etc/crontab 2009-05-27 10:04:07.000000000 +0300 @@ -12,6 +12,8 @@ 25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily ) 47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly ) 52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly ) +* * * * * root /bin/date >> /tmp/date.log +*/2 * * * * root /bin/date >> /tmp/date2.log # |
#ls /var/log/
apt/ ConsoleKit/ dmesg.1.gz faillog lastlog mail.info pycentral.log Xorg.0.log.old auth.log daemon.log dmesg.2.gz fontconfig.log lp-acct mail.log syslog boot debug dmesg.3.gz fsck/ lp-errs mail.warn user.log bootstrap.log dmesg dmesg.4.gz gdm/ lpr.log messages wtmp btmp dmesg.0 dpkg.log kern.log mail.err news/ Xorg.0.log |
#ls /var/log/
apt/ ConsoleKit/ dmesg.1.gz faillog lastlog mail.info pycentral.log Xorg.0.log.old auth.log daemon.log dmesg.2.gz fontconfig.log lp-acct mail.log syslog boot debug dmesg.3.gz fsck/ lp-errs mail.warn user.log bootstrap.log dmesg dmesg.4.gz gdm/ lpr.log messages wtmp btmp dmesg.0 dpkg.log kern.log mail.err news/ Xorg.0.log |
#ls /var/log/
apt/ ConsoleKit/ dmesg.1.gz faillog lastlog mail.info pycentral.log Xorg.0.log.old auth.log daemon.log dmesg.2.gz fontconfig.log lp-acct mail.log syslog boot debug dmesg.3.gz fsck/ lp-errs mail.warn user.log bootstrap.log dmesg dmesg.4.gz gdm/ lpr.log messages wtmp btmp dmesg.0 dpkg.log kern.log mail.err news/ Xorg.0.log |
#ls /var/log/
apt/ ConsoleKit/ dmesg.1.gz faillog lastlog mail.info pycentral.log Xorg.0.log.old auth.log daemon.log dmesg.2.gz fontconfig.log lp-acct mail.log syslog boot debug dmesg.3.gz fsck/ lp-errs mail.warn user.log bootstrap.log dmesg dmesg.4.gz gdm/ lpr.log messages wtmp btmp dmesg.0 dpkg.log kern.log mail.err news/ Xorg.0.log |
Время первой команды журнала | 15:36:49 2009- 5-26 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 10:05:03 2009- 5-27 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 4.95 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 3.96 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 2.49 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.68 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду w. В поле WHAT, соответствующем текущему терминалу, должна быть указана программа script.
Команды, при наборе которых были допущены синтаксические ошибки, выводятся перечёркнутым текстом:
$ l s-l bash: l: command not found |
Если код завершения команды равен нулю, команда была выполнена без ошибок. Команды, код завершения которых отличен от нуля, выделяются цветом.
$ test 5 -lt 4 |
Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
$ find / -name abc find: /home/devi-orig/.gnome2: Keine Berechtigung find: /home/devi-orig/.gnome2_private: Keine Berechtigung find: /home/devi-orig/.nautilus/metafiles: Keine Berechtigung find: /home/devi-orig/.metacity: Keine Berechtigung find: /home/devi-orig/.inkscape: Keine Berechtigung ^C |
Команды, выполненные с привилегиями суперпользователя, выделяются слева красной чертой.
# id uid=0(root) gid=0(root) Gruppen=0(root) |
Изменения, внесённые в текстовый файл с помощью редактора, запоминаются и показываются в журнале в формате ed. Строки, начинающиеся символом "<", удалены, а строки, начинающиеся символом ">" -- добавлены.
$ vi ~/.bashrc
|
Для того чтобы изменить файл в соответствии с показанными в диффшоте изменениями, можно воспользоваться командой patch. Нужно скопировать изменения, запустить программу patch, указав в качестве её аргумента файл, к которому применяются изменения, и всавить скопированный текст:
$ patch ~/.bashrc |
Для того чтобы получить краткую справочную информацию о команде, нужно подвести к ней мышь. Во всплывающей подсказке появится краткое описание команды.
Если справочная информация о команде есть, команда выделяется голубым фоном, например: vi. Если справочная информация отсутствует, команда выделяется розовым фоном, например: notepad.exe. Справочная информация может отсутствовать в том случае, если (1) команда введена неверно; (2) если распознавание команды LiLaLo выполнено неверно; (3) если информация о команде неизвестна LiLaLo. Последнее возможно для редких команд.
Большие, в особенности многострочные, всплывающие подсказки лучше всего показываются браузерами KDE Konqueror, Apple Safari и Microsoft Internet Explorer. В браузерах Mozilla и Firefox они отображаются не полностью, а вместо перевода строки выводится специальный символ.
Время ввода команды, показанное в журнале, соответствует времени начала ввода командной строки, которое равно тому моменту, когда на терминале появилось приглашение интерпретатора
Имя терминала, на котором была введена команда, показано в специальном блоке. Этот блок показывается только в том случае, если терминал текущей команды отличается от терминала предыдущей.
Вывод не интересующих вас в настоящий момент элементов журнала, таких как время, имя терминала и других, можно отключить. Для этого нужно воспользоваться формой управления журналом вверху страницы.
Небольшие комментарии к командам можно вставлять прямо из командной строки. Комментарий вводится прямо в командную строку, после символов #^ или #v. Символы ^ и v показывают направление выбора команды, к которой относится комментарий: ^ - к предыдущей, v - к следующей. Например, если в командной строке было введено:
$ whoami
user
$ #^ Интересно, кто я?в журнале это будет выглядеть так:
$ whoami
user
Интересно, кто я? |
Если комментарий содержит несколько строк, его можно вставить в журнал следующим образом:
$ whoami
user
$ cat > /dev/null #^ Интересно, кто я?
Программа whoami выводит имя пользователя, под которым мы зарегистрировались в системе. - Она не может ответить на вопрос о нашем назначении в этом мире.В журнале это будет выглядеть так:
$ whoami user
|
Комментарии, не относящиеся непосредственно ни к какой из команд, добавляются точно таким же способом, только вместо симолов #^ или #v нужно использовать символы #=
1 2 3 4Группы команд, выполненных на разных терминалах, разделяются специальной линией. Под этой линией в правом углу показано имя терминала, на котором выполнялись команды. Для того чтобы посмотреть команды только одного сенса, нужно щёкнуть по этому названию.
LiLaLo (L3) расшифровывается как Live Lab Log.
Программа разработана для повышения эффективности обучения Unix/Linux-системам.
(c) Игорь Чубин, 2004-2008