/l3/users/viktor-dremkov/redhat/linux4.unix.bas/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 |
|
#rpm -i zsh-*
package zsh-4.2.6-3.el5.i386 is already installed package zsh-html-4.2.6-3.el5.i386 is already installed |
#rpm -i zip-*
package zip-2.31-2.el5.i386 is already installed |
#rpm -i zeni-*
error: File not found by glob: zeni-* |
#rpm -i zenity-*
package zenity-2.16.0-2.el5.i386 is already installed |
#rpm --import zis*
error: zisofs-tools-1.0.6-3.2.2.i386.rpm: import read failed(0). |
#/mnt/CentOS/# ps
bash: /mnt/CentOS/#: No such file or directory |
#ps
PID TTY TIME CMD 9149 pts/17 00:00:00 bash 9501 pts/17 00:00:00 ps |
#rpm -q zsh
zsh-4.2.6-3.el5 |
#rpm -q zsh2
package zsh2 is not installed |
#rpm -qi zsh
Name : zsh Relocations: (not relocatable) Version : 4.2.6 Vendor: CentOS Release : 3.el5 Build Date: Tue 22 Sep 2009 04:40:08 AM ALMT Install Date: Sat 05 Jun 2010 12:24:28 PM ALMT Build Host: builder16.centos.org Group : System Environment/Shells Source RPM: zsh-4.2.6-3.el5.src.rpm Size : 3565444 License: BSD Signature : DSA/SHA1, Mon 28 Sep 2009 08:20:07 AM ALMT, Key ID a8a447dce8562897 URL : http://zsh.sunsite.dk/ Summary : A powerful interactive shell Description : The zsh shell is a command interpreter usable as an interactive login shell and as a shell script command processor. Zsh resembles the ksh shell (the Korn shell), but includes many enhancements. Zsh supports command line editing, built-in spelling correction, programmable command completion, shell functions (with autoloading), a history mechanism, and more. |
#mount
/dev/sda1 on / type ext3 (rw) proc on /proc type proc (rw) sysfs on /sys type sysfs (rw) devpts on /dev/pts type devpts (rw,gid=5,mode=620) /dev/mapper/LVM-usr on /usr type ext3 (rw) /dev/mapper/LVM-home on /home type ext3 (rw) /dev/mapper/LVM-var on /var type ext3 (rw) /dev/mapper/LVM-tmp on /tmp type ext3 (rw) tmpfs on /dev/shm type tmpfs (rw) none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw) sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw) /dev/scd0 on /mnt type iso9660 (ro) nfsd on /proc/fs/nfsd type nfsd (rw) 192.168.15.4:/mnt on /mnt type nfs (rw,addr=192.168.15.4) |
#umount /mnt
umount.nfs: 192.168.15.4:/mnt: not found / mounted or server not reachable umount: /mnt: device is busy umount.nfs: 192.168.15.4:/mnt: not found / mounted or server not reachable |
#/etc/init.d/nfs
nfs nfslock |
#/etc/init.d/nfs restart
Shutting down NFS mountd: [ OK ] Shutting down NFS daemon: [ OK ] Shutting down NFS quotas: [ OK ] |
#ls /mnt
CentOS RELEASE-NOTES-en RELEASE-NOTES-nl EULA RELEASE-NOTES-en.html RELEASE-NOTES-nl.html GPL RELEASE-NOTES-en_US RELEASE-NOTES-pt_BR images RELEASE-NOTES-en_US.html RELEASE-NOTES-pt_BR.html isolinux RELEASE-NOTES-es RELEASE-NOTES-ro NOTES RELEASE-NOTES-es.html RELEASE-NOTES-ro.html RELEASE-NOTES-cs RELEASE-NOTES-fr repodata RELEASE-NOTES-cs.html RELEASE-NOTES-fr.html RPM-GPG-KEY-beta RELEASE-NOTES-de RELEASE-NOTES-ja RPM-GPG-KEY-CentOS-5 RELEASE-NOTES-de.html RELEASE-NOTES-ja.html TRANS.TBL |
#mount
/dev/sda1 on / type ext3 (rw) proc on /proc type proc (rw) sysfs on /sys type sysfs (rw) devpts on /dev/pts type devpts (rw,gid=5,mode=620) /dev/mapper/LVM-usr on /usr type ext3 (rw) /dev/mapper/LVM-home on /home type ext3 (rw) /dev/mapper/LVM-var on /var type ext3 (rw) /dev/mapper/LVM-tmp on /tmp type ext3 (rw) tmpfs on /dev/shm type tmpfs (rw) none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw) sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw) /dev/scd0 on /mnt type iso9660 (ro) nfsd on /proc/fs/nfsd type nfsd (rw) |
#umount /mnt
umount: /mnt: device is busy umount: /mnt: device is busy |
#cd /
|
#umount /mnt
|
#mount
/dev/sda1 on / type ext3 (rw) proc on /proc type proc (rw) sysfs on /sys type sysfs (rw) devpts on /dev/pts type devpts (rw,gid=5,mode=620) /dev/mapper/LVM-usr on /usr type ext3 (rw) /dev/mapper/LVM-home on /home type ext3 (rw) /dev/mapper/LVM-var on /var type ext3 (rw) /dev/mapper/LVM-tmp on /tmp type ext3 (rw) tmpfs on /dev/shm type tmpfs (rw) none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw) sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw) nfsd on /proc/fs/nfsd type nfsd (rw) |
#ping -f 192.168.15.1
PING 192.168.15.1 (192.168.15.1) 56(84) bytes of data. . --- 192.168.15.1 ping statistics --- 2910 packets transmitted, 2909 received, 0% packet loss, time 9527ms rtt min/avg/max/mdev = 0.560/3.264/15.405/1.557 ms, pipe 2, ipg/ewma 3.275/3.191 ms |
#ping -f 192.168.15.254
PING 192.168.15.254 (192.168.15.254) 56(84) bytes of data. . --- 192.168.15.254 ping statistics --- 383 packets transmitted, 382 received, 0% packet loss, time 1449ms rtt min/avg/max/mdev = 1.215/3.802/19.012/1.840 ms, pipe 2, ipg/ewma 3.794/4.145 ms |
#ping -f 192.168.15.16
PING 192.168.15.16 (192.168.15.16) 56(84) bytes of data. ......................................................................................................................... --- 192.168.15.16 ping statistics --- 121 packets transmitted, 0 received, 100% packet loss, time 1670ms |
#ping -f 192.168.15.10
PING 192.168.15.10 (192.168.15.10) 56(84) bytes of data. . --- 192.168.15.10 ping statistics --- 273 packets transmitted, 272 received, 0% packet loss, time 1106ms rtt min/avg/max/mdev = 1.072/4.259/25.411/2.955 ms, pipe 3, ipg/ewma 4.067/3.386 ms |
#ping -f 192.168.15.11
PING 192.168.15.11 (192.168.15.11) 56(84) bytes of data. . --- 192.168.15.11 ping statistics --- 263 packets transmitted, 262 received, 0% packet loss, time 1005ms rtt min/avg/max/mdev = 1.211/3.822/18.606/1.947 ms, ipg/ewma 3.837/3.902 ms |
#ping -f 192.168.15.12
PING 192.168.15.12 (192.168.15.12) 56(84) bytes of data. . --- 192.168.15.12 ping statistics --- 212 packets transmitted, 211 received, 0% packet loss, time 833ms rtt min/avg/max/mdev = 1.202/3.938/16.055/2.134 ms, ipg/ewma 3.952/3.572 ms |
#ping -f 192.168.15.13
PING 192.168.15.13 (192.168.15.13) 56(84) bytes of data. . --- 192.168.15.13 ping statistics --- 203 packets transmitted, 202 received, 0% packet loss, time 754ms rtt min/avg/max/mdev = 1.164/3.725/11.995/1.701 ms, pipe 2, ipg/ewma 3.732/3.569 ms |
#ping -f 192.168.15.10
PING 192.168.15.10 (192.168.15.10) 56(84) bytes of data. . --- 192.168.15.10 ping statistics --- 117 packets transmitted, 116 received, 0% packet loss, time 519ms rtt min/avg/max/mdev = 1.055/4.467/11.882/2.580 ms, ipg/ewma 4.481/3.858 ms |
#ping -f 192.168.15.11
PING 192.168.15.11 (192.168.15.11) 56(84) bytes of data. . --- 192.168.15.11 ping statistics --- 147 packets transmitted, 146 received, 0% packet loss, time 616ms rtt min/avg/max/mdev = 1.348/4.206/15.094/2.278 ms, pipe 2, ipg/ewma 4.219/3.400 ms |
#ping -f 192.168.15.9
PING 192.168.15.9 (192.168.15.9) 56(84) bytes of data. . --- 192.168.15.9 ping statistics --- 191 packets transmitted, 190 received, 0% packet loss, time 723ms rtt min/avg/max/mdev = 1.199/3.793/16.029/2.049 ms, ipg/ewma 3.806/3.647 ms |
#ping -f 192.168.15.8
PING 192.168.15.8 (192.168.15.8) 56(84) bytes of data. . --- 192.168.15.8 ping statistics --- 454 packets transmitted, 453 received, 0% packet loss, time 1651ms rtt min/avg/max/mdev = 0.881/3.631/14.209/1.784 ms, ipg/ewma 3.646/3.142 ms |
#ping -f 192.168.15.7
PING 192.168.15.7 (192.168.15.7) 56(84) bytes of data. . --- 192.168.15.7 ping statistics --- 226 packets transmitted, 225 received, 0% packet loss, time 812ms rtt min/avg/max/mdev = 1.102/3.593/10.893/1.503 ms, ipg/ewma 3.611/3.377 ms |
#screen -x
|
#/etc/init.d/nfs restart
Shutting down NFS mountd: [FAILED] Shutting down NFS daemon: [FAILED] Shutting down NFS quotas: [FAILED] Shutting down NFS services: exportfs: failed to lock /var/lib/nfs/etab [ OK ] Starting NFS services: [ OK ] Starting NFS quotas: [ OK ] Starting NFS daemon: [ OK ] Starting NFS mountd: [ OK ] |
#mount /dev/cdrom /mnt
mount: block device /dev/cdrom is write-protected, mounting read-only |
#ls /mnt/
CentOS RELEASE-NOTES-en RELEASE-NOTES-nl EULA RELEASE-NOTES-en.html RELEASE-NOTES-nl.html GPL RELEASE-NOTES-en_US RELEASE-NOTES-pt_BR images RELEASE-NOTES-en_US.html RELEASE-NOTES-pt_BR.html isolinux RELEASE-NOTES-es RELEASE-NOTES-ro NOTES RELEASE-NOTES-es.html RELEASE-NOTES-ro.html RELEASE-NOTES-cs RELEASE-NOTES-fr repodata RELEASE-NOTES-cs.html RELEASE-NOTES-fr.html RPM-GPG-KEY-beta RELEASE-NOTES-de RELEASE-NOTES-ja RPM-GPG-KEY-CentOS-5 RELEASE-NOTES-de.html RELEASE-NOTES-ja.html TRANS.TBL |
#ssh 192.168.15.1
root@192.168.15.1's password: Last login: Sat Jun 5 13:04:14 2010 from linux4.unix.bas [root@linux1 ~]# ls /mnt Connection to 192.168.15.1 closed. |
#ssh 192.168.15.1
Connection to 192.168.15.1 closed. |
#ls /mnt
CentOS RELEASE-NOTES-en RELEASE-NOTES-nl EULA RELEASE-NOTES-en.html RELEASE-NOTES-nl.html GPL RELEASE-NOTES-en_US RELEASE-NOTES-pt_BR images RELEASE-NOTES-en_US.html RELEASE-NOTES-pt_BR.html isolinux RELEASE-NOTES-es RELEASE-NOTES-ro NOTES RELEASE-NOTES-es.html RELEASE-NOTES-ro.html RELEASE-NOTES-cs RELEASE-NOTES-fr repodata RELEASE-NOTES-cs.html RELEASE-NOTES-fr.html RPM-GPG-KEY-beta RELEASE-NOTES-de RELEASE-NOTES-ja RPM-GPG-KEY-CentOS-5 RELEASE-NOTES-de.html RELEASE-NOTES-ja.html TRANS.TBL |
#/etc/init.d/nfs restart
Shutting down NFS mountd: [ OK ] Shutting down NFS daemon: [ OK ] Shutting down NFS quotas: [ OK ] Shutting down NFS services: [ OK ] Starting NFS services: [ OK ] Starting NFS quotas: [ OK ] Starting NFS daemon: [ OK ] Starting NFS mountd: [ OK ] |
#ls /mnt
CentOS RELEASE-NOTES-en RELEASE-NOTES-nl EULA RELEASE-NOTES-en.html RELEASE-NOTES-nl.html GPL RELEASE-NOTES-en_US RELEASE-NOTES-pt_BR images RELEASE-NOTES-en_US.html RELEASE-NOTES-pt_BR.html isolinux RELEASE-NOTES-es RELEASE-NOTES-ro NOTES RELEASE-NOTES-es.html RELEASE-NOTES-ro.html RELEASE-NOTES-cs RELEASE-NOTES-fr repodata RELEASE-NOTES-cs.html RELEASE-NOTES-fr.html RPM-GPG-KEY-beta RELEASE-NOTES-de RELEASE-NOTES-ja RPM-GPG-KEY-CentOS-5 RELEASE-NOTES-de.html RELEASE-NOTES-ja.html TRANS.TBL |
#rpm -qa
basesystem-8.0-5.1.1.el5.centos gnome-mime-data-2.4.2-3.1 xkeyboard-config-0.8-9.el5 termcap-5.5-1.20060701.1 gnu-efi-3.0c-1.1 words-3.0-9.1 glib2-2.12.3-4.el5_3.1 libSM-1.0.1-3.1 libjpeg-6b-37 libusb-0.1.12-5.1 ... xorg-x11-drv-mga-1.4.10-7.el5 xorg-x11-drv-spaceorb-1.1.0-1.1 xorg-x11-drv-tdfx-1.2.1-3.1 xorg-x11-drv-sisusb-0.8.1-4.1 xorg-x11-drv-dynapro-1.1.0-2 xorg-x11-drv-cyrix-1.1.0-4 xorg-x11-drv-mutouch-1.1.0-3 xorg-x11-drivers-7.1-4.2.el5 screen-4.0.3-1.el5_4.1 libgomp-4.4.0-6.el5 |
#rpm -lh
rpm: --hash (-h) may only be specified during package installation |
#who
root tty1 2010-06-04 17:15 root tty2 2010-06-05 12:40 root tty3 2010-06-05 12:41 root pts/2 2010-06-05 10:50 (linux254.unix.bas) root pts/3 2010-06-05 10:28 (192.168.15.12) root pts/5 2010-06-05 10:26 (192.168.15.3) root pts/7 2010-06-05 14:21 (linux7.unix.bas) root pts/9 2010-06-05 10:29 (linux2.unix.bas) root pts/11 2010-06-05 10:27 (192.168.15.1) root pts/15 2010-06-05 14:22 (linux3.unix.bas) root pts/19 2010-06-05 10:28 (linux5.unix.bas) root pts/21 2010-06-05 10:29 (:pts/17:S.0) root pts/4 2010-06-05 10:28 (linux9.unix.bas) root pts/23 2010-06-05 10:29 (linux11.unix.bas) root pts/25 2010-06-05 14:22 (linux8.unix.bas) root pts/27 2010-06-05 10:30 (linux10.unix.bas) root pts/29 2010-06-05 14:27 (linux13.unix.bas) root pts/31 2010-06-05 10:31 (linux10.unix.bas) |
#rpm -qa | grep ^z*
basesystem-8.0-5.1.1.el5.centos gnome-mime-data-2.4.2-3.1 xkeyboard-config-0.8-9.el5 termcap-5.5-1.20060701.1 gnu-efi-3.0c-1.1 words-3.0-9.1 glib2-2.12.3-4.el5_3.1 libSM-1.0.1-3.1 libjpeg-6b-37 libusb-0.1.12-5.1 ... xorg-x11-drv-mga-1.4.10-7.el5 xorg-x11-drv-spaceorb-1.1.0-1.1 xorg-x11-drv-tdfx-1.2.1-3.1 xorg-x11-drv-sisusb-0.8.1-4.1 xorg-x11-drv-dynapro-1.1.0-2 xorg-x11-drv-cyrix-1.1.0-4 xorg-x11-drv-mutouch-1.1.0-3 xorg-x11-drivers-7.1-4.2.el5 screen-4.0.3-1.el5_4.1 libgomp-4.4.0-6.el5 |
#rpm -qa | grep ^[z]*
basesystem-8.0-5.1.1.el5.centos gnome-mime-data-2.4.2-3.1 xkeyboard-config-0.8-9.el5 termcap-5.5-1.20060701.1 gnu-efi-3.0c-1.1 words-3.0-9.1 glib2-2.12.3-4.el5_3.1 libSM-1.0.1-3.1 libjpeg-6b-37 libusb-0.1.12-5.1 ... xorg-x11-drv-mga-1.4.10-7.el5 xorg-x11-drv-spaceorb-1.1.0-1.1 xorg-x11-drv-tdfx-1.2.1-3.1 xorg-x11-drv-sisusb-0.8.1-4.1 xorg-x11-drv-dynapro-1.1.0-2 xorg-x11-drv-cyrix-1.1.0-4 xorg-x11-drv-mutouch-1.1.0-3 xorg-x11-drivers-7.1-4.2.el5 screen-4.0.3-1.el5_4.1 libgomp-4.4.0-6.el5 |
#rpm -qa | grep ^{z}*
|
#rpm -qa | grep z*
basesystem-8.0-5.1.1.el5.centos gnome-mime-data-2.4.2-3.1 xkeyboard-config-0.8-9.el5 termcap-5.5-1.20060701.1 gnu-efi-3.0c-1.1 words-3.0-9.1 glib2-2.12.3-4.el5_3.1 libSM-1.0.1-3.1 libjpeg-6b-37 libusb-0.1.12-5.1 ... xorg-x11-drv-mga-1.4.10-7.el5 xorg-x11-drv-spaceorb-1.1.0-1.1 xorg-x11-drv-tdfx-1.2.1-3.1 xorg-x11-drv-sisusb-0.8.1-4.1 xorg-x11-drv-dynapro-1.1.0-2 xorg-x11-drv-cyrix-1.1.0-4 xorg-x11-drv-mutouch-1.1.0-3 xorg-x11-drivers-7.1-4.2.el5 screen-4.0.3-1.el5_4.1 libgomp-4.4.0-6.el5 |
#rpm -ql zsh
/bin/zsh /etc/skel /etc/skel/.zshrc /etc/zlogin /etc/zlogout /etc/zprofile /etc/zshenv /etc/zshrc /usr/lib/zsh /usr/lib/zsh/4.2.6 ... /usr/share/zsh/4.2.6/functions/zftype /usr/share/zsh/4.2.6/functions/zfuget /usr/share/zsh/4.2.6/functions/zfuput /usr/share/zsh/4.2.6/functions/zkbd /usr/share/zsh/4.2.6/functions/zmv /usr/share/zsh/4.2.6/functions/zrecompile /usr/share/zsh/4.2.6/functions/zsh-mime-handler /usr/share/zsh/4.2.6/functions/zsh-mime-setup /usr/share/zsh/4.2.6/functions/zstyle+ /usr/share/zsh/site-functions |
#rpm -l | grep zsh
|
#rpm -ql zsh
/bin/zsh /etc/skel /etc/skel/.zshrc /etc/zlogin /etc/zlogout /etc/zprofile /etc/zshenv /etc/zshrc /usr/lib/zsh /usr/lib/zsh/4.2.6 ... /usr/share/zsh/4.2.6/functions/zftype /usr/share/zsh/4.2.6/functions/zfuget /usr/share/zsh/4.2.6/functions/zfuput /usr/share/zsh/4.2.6/functions/zkbd /usr/share/zsh/4.2.6/functions/zmv /usr/share/zsh/4.2.6/functions/zrecompile /usr/share/zsh/4.2.6/functions/zsh-mime-handler /usr/share/zsh/4.2.6/functions/zsh-mime-setup /usr/share/zsh/4.2.6/functions/zstyle+ /usr/share/zsh/site-functions |
#top
top - 14:31:33 up 21:17, 19 users, load average: 1.90, 1.71, 1.00 Tasks: 210 total, 2 running, 201 sleeping, 7 stopped, 0 zombie Cpu(s): 49.9%us, 0.2%sy, 0.0%ni, 49.9%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Mem: 4116824k total, 946088k used, 3170736k free, 107084k buffers PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND Swap: 0k total, 0k used, 0k free, 575848k cached 2854 root 25 0 36552 31m 1452 R 100.1 0.8 112:28.04 l3-agent 11190 root 15 0 2336 1092 800 R 0.7 0.0 0:00.02 top 1 root 15 0 2072 632 544 S 0.0 0.0 0:00.35 init 2 root RT -5 0 0 0 S 0.0 0.0 0:00.00 migration/0 ... 7 root RT -5 0 0 0 S 0.0 0.0 0:00.00 watchdog/1 8 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 events/0 9 root 10 -5 0 0 0 S 0.0 0.0 0:00.03 events/1 10 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 khelper 11 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 kthread 15 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 kblockd/0 16 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 kblockd/1 17 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 kacpid 127 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 cqueue/0 128 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 cqueue/1 |
#kill 2854
|
#top
top - 14:31:41 up 21:17, 19 users, load average: 1.83, 1.70, 1.00 Tasks: 210 total, 2 running, 201 sleeping, 7 stopped, 0 zombie Cpu(s): 4.4%us, 0.0%sy, 0.0%ni, 95.5%id, 0.1%wa, 0.0%hi, 0.0%si, 0.0%st Mem: 4116824k total, 946212k used, 3170612k free, 107100k buffers Swap: 0k total, 0k used, 0k free, 575852k cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 2854 root 25 0 36552 31m 1452 R 98.9 0.8 112:35.83 l3-agent 1 root 15 0 2072 632 544 S 0.0 0.0 0:00.35 init 2 root RT -5 0 0 0 S 0.0 0.0 0:00.00 migration/0 3 root 34 19 0 0 0 S 0.0 0.0 0:00.00 ksoftirqd/0 ... 8 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 events/0 9 root 10 -5 0 0 0 S 0.0 0.0 0:00.03 events/1 10 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 khelper 11 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 kthread 15 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 kblockd/0 16 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 kblockd/1 17 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 kacpid 127 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 cqueue/0 128 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 cqueue/1 131 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 khubd |
#kill -9 2854
|
#top
top - 14:31:46 up 21:17, 19 users, load average: 1.76, 1.69, 1.00 Tasks: 209 total, 1 running, 201 sleeping, 7 stopped, 0 zombie Cpu(s): 4.4%us, 0.0%sy, 0.0%ni, 95.5%id, 0.1%wa, 0.0%hi, 0.0%si, 0.0%st Mem: 4116824k total, 915088k used, 3201736k free, 107116k buffers PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND Swap: 0k total, 0k used, 0k free, 575840k cached 1 root 15 0 2072 632 544 S 0.0 0.0 0:00.35 init 2 root RT -5 0 0 0 S 0.0 0.0 0:00.00 migration/0 3 root 34 19 0 0 0 S 0.0 0.0 0:00.00 ksoftirqd/0 4 root RT -5 0 0 0 S 0.0 0.0 0:00.00 watchdog/0 ... 9 root 10 -5 0 0 0 S 0.0 0.0 0:00.03 events/1 10 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 khelper 11 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 kthread 15 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 kblockd/0 16 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 kblockd/1 17 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 kacpid 127 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 cqueue/0 128 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 cqueue/1 131 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 khubd 133 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 kseriod |
#rpm -qi zsh
Name : zsh Relocations: (not relocatable) Version : 4.2.6 Vendor: CentOS Release : 3.el5 Build Date: Tue 22 Sep 2009 04:40:08 AM ALMT Install Date: Sat 05 Jun 2010 12:24:28 PM ALMT Build Host: builder16.centos.org Group : System Environment/Shells Source RPM: zsh-4.2.6-3.el5.src.rpm Size : 3565444 License: BSD Signature : DSA/SHA1, Mon 28 Sep 2009 08:20:07 AM ALMT, Key ID a8a447dce8562897 URL : http://zsh.sunsite.dk/ Summary : A powerful interactive shell Description : The zsh shell is a command interpreter usable as an interactive login shell and as a shell script command processor. Zsh resembles the ksh shell (the Korn shell), but includes many enhancements. Zsh supports command line editing, built-in spelling correction, programmable command completion, shell functions (with autoloading), a history mechanism, and more. |
#rpm -qip zsh /mnt/CentOS/
error: open of zsh failed: No such file or directory |
#rpm -qip zsh /mnt/CentOS/zsh-
zsh-4.2.6-3.el5.i386.rpm zsh-html-4.2.6-3.el5.i386.rpm |
#rpm -qip zsh /mnt/CentOS/zsh-
zsh-4.2.6-3.el5.i386.rpm zsh-html-4.2.6-3.el5.i386.rpm |
#rpm -qip zsh /mnt/CentOS/zsh-4.2.6-3.el5.i386.rpm
error: open of zsh failed: No such file or directory Name : zsh Relocations: (not relocatable) Version : 4.2.6 Vendor: CentOS Release : 3.el5 Build Date: Tue 22 Sep 2009 04:40:08 AM ALMT Install Date: (not installed) Build Host: builder16.centos.org Group : System Environment/Shells Source RPM: zsh-4.2.6-3.el5.src.rpm Size : 3565444 License: BSD Signature : DSA/SHA1, Mon 28 Sep 2009 08:20:07 AM ALMT, Key ID a8a447dce8562897 URL : http://zsh.sunsite.dk/ Summary : A powerful interactive shell Description : The zsh shell is a command interpreter usable as an interactive login shell and as a shell script command processor. Zsh resembles the ksh shell (the Korn shell), but includes many enhancements. Zsh supports command line editing, built-in spelling correction, programmable command completion, shell functions (with autoloading), a history mechanism, and more. |
#ls /etc/bin
ls: /etc/bin: No such file or directory |
#ls /etc/
a2ps.cfg httpd quotagrpadmins a2ps-site.cfg idmapd.conf quotatab acpi init.d racoon adjtime initlog.conf rc aliases inittab rc0.d aliases.db inputrc rc1.d alsa iproute2 rc2.d alternatives isdn rc3.d anacrontab issue rc4.d asound.state issue.net rc5.d ... gshadow pm yum gshadow- ppp yum.conf gssapi_mech.conf prelink.cache yum.repos.d gtk-2.0 prelink.conf zlogin hal prelink.conf.d zlogout host.conf printcap zprofile hosts profile zshenv hosts.allow profile.d zshrc hosts.deny protocols hp purple |
#ls /etc/ | less
|
#. /etc/b
bash_completion bashrc bluetooth/ bash_completion.d/ blkid/ bonobo-activation/ |
#. /etc/bash_completion
|
#. /etc/bash_completion.d
bash: .: /etc/bash_completion.d: is a directory |
#rpm -
-b -e -E -F -i -q -t -U -V |
#rpm -q
rpmq: no arguments given for query |
#vim /root/.bashrc
--- /tmp/l3-saved-9354.4126.23526 2010-06-05 14:43:29.000000000 +0600 +++ /root/.bashrc 2010-06-05 14:44:26.000000000 +0600 @@ -11,3 +11,4 @@ . /etc/bashrc fi . /root/.lilalo/l3bashrc && _l3_start +. /etc/bash_completion |
#logout
bash: logout: not login shell: use `exit' |
#passwd
adm games mail pcap user apache gdm mailnull root uucp avahi gopher news rpc vcsa avahi-autoipd haldaemon nfsnobody rpcuser xfs bin halt nobody shutdown daemon hsqldb nscd smmsp dbus KAISAR ntp sshd ftp lp operator sync |
#rpm -qif /etc/pa
pam.d/ pam_smb.conf passwd passwd.lock pam_pkcs11/ pango/ passwd- |
#rpm -qif /etc/passwd
Name : setup Relocations: (not relocatable) Version : 2.5.58 Vendor: CentOS Release : 7.el5 Build Date: Tue 22 Sep 2009 05:31:10 AM ALMT Install Date: Sun 30 May 2010 09:51:22 PM ALMT Build Host: builder10.centos.org Group : System Environment/Base Source RPM: setup-2.5.58-7.el5.src.rpm Size : 381609 License: public domain Signature : DSA/SHA1, Mon 28 Sep 2009 08:20:07 AM ALMT, Key ID a8a447dce8562897 Summary : A set of system configuration and setup files. Description : The setup package contains a set of important system configuration and setup files, such as passwd, group, and profile. |
#rpm -qlf /etc/passwd
/etc/aliases /etc/bashrc /etc/csh.cshrc /etc/csh.login /etc/environment /etc/exports /etc/filesystems /etc/fstab /etc/group /etc/gshadow ... /etc/profile /etc/profile.d /etc/protocols /etc/securetty /etc/services /etc/shadow /etc/shells /usr/share/doc/setup-2.5.58 /usr/share/doc/setup-2.5.58/uidgid /var/log/lastlog |
#rpm -qp /etc/passwd
error: open of root:x:0:0:root:/root:/bin/bash failed: No such file or directory error: open of bin:x:1:1:bin:/bin:/sbin/nologin failed: No such file or directory error: open of daemon:x:2:2:daemon:/sbin:/sbin/nologin failed: No such file or directory error: open of adm:x:3:4:adm:/var/adm:/sbin/nologin failed: No such file or directory error: open of lp:x:4:7:lp:/var/spool/lpd:/sbin/nologin failed: No such file or directory error: open of sync:x:5:0:sync:/sbin:/bin/sync failed: No such file or directory error: open of shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown failed: No such file or directory error: open of halt:x:7:0:halt:/sbin:/sbin/halt failed: No such file or directory error: open of mail:x:8:12:mail:/var/spool/mail:/sbin/nologin failed: No such file or directory error: open of news:x:9:13:news:/etc/news: failed: No such file or directory ... error: open of avahi-autoipd:x:100:102:avahi-autoipd:/var/lib/avahi-autoipd:/sbin/nologin failed: No such file or directory error: open of xfs:x:43:43:X failed: No such file or directory error: open of Font failed: No such file or directory error: open of Server:/etc/X11/fs:/sbin/nologin failed: No such file or directory error: open of gdm:x:42:42::/var/gdm:/sbin/nologin failed: No such file or directory error: open of user:x:500:500:BAS failed: No such file or directory error: open of University failed: No such file or directory error: open of Student failed: No such file or directory error: open of KAISAR:x:502:502:Mamaev failed: No such file or directory error: open of Kaisar:/home/KAISAR:/bin/bash failed: No such file or directory |
#rpm -qf /etc/passwd
setup-2.5.58-7.el5 |
#rpm -q /etc/passwd
package /etc/passwd is not installed |
#uptime
14:50:45 up 21:36, 18 users, load average: 0.98, 0.70, 0.57 |
#rpm -q /etc/passwd
GNU bash, version 3.2.25(1)-release (i686-redhat-linux-gnu) |
#rpm -q/etc/passwd
-q/etc/passwd: unknown option |
#mail
Mail version 8.1 6/6/93. Type ? for help. "/var/spool/mail/root": 3 messages 3 unread >U 1 logwatch@localhost.l Mon May 31 10:46 91/2823 "Logwatch for localhos" U 2 logwatch@linux4.unix Fri Jun 4 04:04 192/5336 "Logwatch for linux4.u" U 3 logwatch@linux4.unix Sat Jun 5 04:05 183/5530 "Logwatch for linux4.u" & mail 1 Subject: [1]+ Stopped mail |
#man mail
|
#mail -n
Mail version 8.1 6/6/93. Type ? for help. "/var/spool/mail/root": 3 messages 3 unread >U 1 logwatch@localhost.l Mon May 31 10:46 91/2823 "Logwatch for localhos" U 2 logwatch@linux4.unix Fri Jun 4 04:04 192/5336 "Logwatch for linux4.u" U 3 logwatch@linux4.unix Sat Jun 5 04:05 183/5530 "Logwatch for linux4.u" & mail fg bg [2]+ Stopped mail -n |
#fg
mail -n (continue) [2]+ Stopped mail -n |
#mail -f
Mail version 8.1 6/6/93. Type ? for help. "/root/mbox": 3 messages > 1 logwatch@linux4.unix Tue Jun 1 10:49 157/4550 "Logwatch for linux4.u" 2 logwatch@linux4.unix Wed Jun 2 04:03 151/4282 "Logwatch for linux4.u" 3 logwatch@linux4.unix Thu Jun 3 04:03 161/4438 "Logwatch for linux4.u" & ? Mail Commands t <message list> type messages n goto and type next message e <message list> edit messages ... q quit, saving unresolved messages in mbox x quit, do not remove system mailbox h print out active message headers ! shell escape cd [directory] chdir to directory or home if none given A <message list> consists of integers, ranges of same, or user names separated by spaces. If omitted, Mail uses the last message typed. A <user list> consists of user names or aliases separated by spaces. Aliases are defined in .mailrc in your home directory. & q |
#rpm - e zsh
|
#ls /etc/yum.repos.d/
CentOS-Base.repo CentOS-Media.repo |
#lsmod
Module Size Used by nfs 234433 1 fscache 20321 1 nfs nfsd 204593 17 exportfs 9665 1 nfsd nfs_acl 7617 2 nfs,nfsd auth_rpcgss 43105 1 nfsd nls_utf8 6209 1 i915 24385 1 drm 65493 2 i915 ... dm_mod 63224 15 dm_multipath,dm_raid45,dm_snapshot,dm_zero,dm_mirror,dm_log ata_piix 23621 3 libata 157445 1 ata_piix sd_mod 25281 3 scsi_mod 141973 5 scsi_dh,sr_mod,sg,libata,sd_mod ext3 125513 5 jbd 57321 1 ext3 uhci_hcd 25549 0 ohci_hcd 25193 0 ehci_hcd 34125 0 |
Время первой команды журнала | 08:44:21 2010- 6- 5 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 11:09:16 2010- 6- 5 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 29.70 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.99 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 0.97 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 1.73 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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