/l3/users/eb/2009/linux13/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 :51 :52 :53 :54 :55 :56 :57 :58 :59 :60 :61 :62 :63 :64 :65 :66 :67 :68 :69 :70 :71 :72 :73 :74 :75 :76 |
|
#ssh 10.0.35.100
root@10.0.35.100's password: Linux linux0 2.6.18-6-xen-686 #1 SMP Sun Feb 10 22:43:13 UTC 2008 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Fri May 29 09:55:31 2009 from linux4.unix.nt l3-agent is already running: pid=1683; pidfile=/root/.lilalo/l3-agent.pid |
#ssh 10.0.35.100
root@10.0.35.100's password: Linux linux0 2.6.18-6-xen-686 #1 SMP Sun Feb 10 22:43:13 UTC 2008 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Fri May 29 09:55:31 2009 from linux4.unix.nt l3-agent is already running: pid=1683; pidfile=/root/.lilalo/l3-agent.pid |
#grep -r 192.168.15.13 /etc/
/etc/hosts:192.168.15.13 linux13 /etc/network/interfaces: address 192.168.15.13 |
#grep -r 192.168.15.13 /etc/
/etc/hosts:192.168.15.13 linux13 /etc/network/interfaces: address 192.168.15.13 |
#apt-get install graphviz
Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: portmap Use 'apt-get autoremove' to remove them. The following extra packages will be installed: libgd2-noxpm libgraphviz4 libltdl7 ttf-liberation Suggested packages: graphviz-doc libgd-tools ... Unpacking ttf-liberation (from .../ttf-liberation_1.04.93-1_all.deb) ... Processing triggers for man-db ... Processing triggers for menu ... Setting up libgd2-noxpm (2.0.36~rc1~dfsg-3) ... Setting up libltdl7 (2.2.6a-4) ... Setting up libgraphviz4 (2.20.2-3+b2) ... Setting up graphviz (2.20.2-3+b2) ... Setting up ttf-liberation (1.04.93-1) ... Updating fontconfig cache for /usr/share/fonts/truetype/ttf-liberation Processing triggers for menu ... |
#apt-get install graphviz
Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: portmap Use 'apt-get autoremove' to remove them. The following extra packages will be installed: libgd2-noxpm libgraphviz4 libltdl7 ttf-liberation Suggested packages: graphviz-doc libgd-tools ... Unpacking ttf-liberation (from .../ttf-liberation_1.04.93-1_all.deb) ... Processing triggers for man-db ... Processing triggers for menu ... Setting up libgd2-noxpm (2.0.36~rc1~dfsg-3) ... Setting up libltdl7 (2.2.6a-4) ... Setting up libgraphviz4 (2.20.2-3+b2) ... Setting up graphviz (2.20.2-3+b2) ... Setting up ttf-liberation (1.04.93-1) ... Updating fontconfig cache for /usr/share/fonts/truetype/ttf-liberation Processing triggers for menu ... |
#apt-get install gqview
Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: portmap Use 'apt-get autoremove' to remove them. Suggested packages: gimp xpaint The following NEW packages will be installed: gqview ... Get:1 http://10.0.35.1 sid/main gqview 2.0.4-5 [868kB] Fetched 868kB in 0s (11.2MB/s) Selecting previously deselected package gqview. (Reading database ... 45548 files and directories currently installed.) Unpacking gqview (from .../gqview_2.0.4-5_i386.deb) ... Processing triggers for menu ... Processing triggers for desktop-file-utils ... Processing triggers for man-db ... Setting up gqview (2.0.4-5) ... Processing triggers for menu ... |
#apt-get install gqview
Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: portmap Use 'apt-get autoremove' to remove them. Suggested packages: gimp xpaint The following NEW packages will be installed: gqview ... Get:1 http://10.0.35.1 sid/main gqview 2.0.4-5 [868kB] Fetched 868kB in 0s (11.2MB/s) Selecting previously deselected package gqview. (Reading database ... 45548 files and directories currently installed.) Unpacking gqview (from .../gqview_2.0.4-5_i386.deb) ... Processing triggers for menu ... Processing triggers for desktop-file-utils ... Processing triggers for man-db ... Setting up gqview (2.0.4-5) ... Processing triggers for menu ... |
#cat samba.dot
"dpkg" -> "apt"[color=springgreen]; "dpkg" -> "aptitude"[color=springgreen]; "dpkg" -> "dpkg-dev"[color=springgreen]; "dpkg" -> "dpkg-iasearch"[color=springgreen]; "dpkg" -> "sysvinit"[color=springgreen]; "debianutils" -> "sensible-utils"; "debianutils" -> "libc6"[color=blue]; "libgpg-error0" -> "libc6"; "sed" -> "libc6"[color=blue]; "ucf" -> "debconf"; ... "libreadline5" [shape=box]; "watch" [shape=triangle]; "ncurses-bin" [shape=box]; "libxsloader-perl" [shape=triangle]; "ncurses" [shape=hexagon]; "libpam-motd" [shape=triangle]; "libsasl2-krb4-mit" [shape=hexagon]; "sysvinit" [color=orange,shape=box]; "libpam0" [shape=hexagon]; } |
#cat samba.dot
"dpkg" -> "apt"[color=springgreen]; "dpkg" -> "aptitude"[color=springgreen]; "dpkg" -> "dpkg-dev"[color=springgreen]; "dpkg" -> "dpkg-iasearch"[color=springgreen]; "dpkg" -> "sysvinit"[color=springgreen]; "debianutils" -> "sensible-utils"; "debianutils" -> "libc6"[color=blue]; "libgpg-error0" -> "libc6"; "sed" -> "libc6"[color=blue]; "ucf" -> "debconf"; ... "libreadline5" [shape=box]; "watch" [shape=triangle]; "ncurses-bin" [shape=box]; "libxsloader-perl" [shape=triangle]; "ncurses" [shape=hexagon]; "libpam-motd" [shape=triangle]; "libsasl2-krb4-mit" [shape=hexagon]; "sysvinit" [color=orange,shape=box]; "libpam0" [shape=hexagon]; } |
#dpkg -L gqview
/usr/share/locale/ko/LC_MESSAGES/gqview.mo /usr/share/locale/et /usr/share/locale/et/LC_MESSAGES /usr/share/locale/et/LC_MESSAGES/gqview.mo /usr/share/locale/sl /usr/share/locale/sl/LC_MESSAGES /usr/share/locale/sl/LC_MESSAGES/gqview.mo /usr/share/locale/pl /usr/share/locale/pl/LC_MESSAGES /usr/share/locale/pl/LC_MESSAGES/gqview.mo ... /usr/share/doc/gqview/html/4_1_copy_move.html /usr/share/doc/gqview/html/10_5_editor_commands.html /usr/share/doc/gqview/html/3_2_image_properties.html /usr/share/doc/gqview/html/10_3_window.html /usr/share/doc/gqview/html/2_5_folder_pane.html /usr/share/doc/gqview/html/10_2_image.html /usr/share/doc/gqview/html/7_sidebars.html /usr/share/man /usr/share/man/man1 /usr/share/man/man1/gqview.1.gz |
#dpkg -L gqview
/usr/share/locale/ko/LC_MESSAGES/gqview.mo /usr/share/locale/et /usr/share/locale/et/LC_MESSAGES /usr/share/locale/et/LC_MESSAGES/gqview.mo /usr/share/locale/sl /usr/share/locale/sl/LC_MESSAGES /usr/share/locale/sl/LC_MESSAGES/gqview.mo /usr/share/locale/pl /usr/share/locale/pl/LC_MESSAGES /usr/share/locale/pl/LC_MESSAGES/gqview.mo ... /usr/share/doc/gqview/html/4_1_copy_move.html /usr/share/doc/gqview/html/10_5_editor_commands.html /usr/share/doc/gqview/html/3_2_image_properties.html /usr/share/doc/gqview/html/10_3_window.html /usr/share/doc/gqview/html/2_5_folder_pane.html /usr/share/doc/gqview/html/10_2_image.html /usr/share/doc/gqview/html/7_sidebars.html /usr/share/man /usr/share/man/man1 /usr/share/man/man1/gqview.1.gz |
#dpkg -l gqview
Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad) ||/ Name Version Description +++-======================-======================-============================================================ ii gqview 2.0.4-5 simple image viewer using GTK+ |
#dpkg -l gqview
Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad) ||/ Name Version Description +++-======================-======================-============================================================ ii gqview 2.0.4-5 simple image viewer using GTK+ |
#dpkg -S gqview
gqview: /usr/share/doc/gqview/html/2_main_window.html gqview: /usr/share/locale/uk/LC_MESSAGES/gqview.mo gqview: /usr/share/locale/pt_BR/LC_MESSAGES/gqview.mo gqview: /usr/share/doc/gqview/html/10_6_advanced.html gqview: /usr/share/doc/gqview/html/11_4_management.html gqview: /usr/share/doc/gqview/html/11_3_thumbnails.html gqview: /usr/bin/gqview gqview: /usr/share/locale/eu/LC_MESSAGES/gqview.mo gqview: /usr/share/locale/bg/LC_MESSAGES/gqview.mo gqview: /usr/share/doc/gqview/html/4_1_copy_move.html ... gqview: /usr/share/doc/gqview/html/2_4_file_pane.html gqview: /usr/share/doc/gqview/html/3_other_windows.html gqview: /usr/share/pixmaps/gqview.png gqview: /usr/share/locale/vi/LC_MESSAGES/gqview.mo gqview: /usr/share/locale/ca/LC_MESSAGES/gqview.mo gqview: /usr/share/doc/gqview/html/2_5_folder_pane.html gqview: /usr/share/locale/ko/LC_MESSAGES/gqview.mo gqview: /usr/share/doc/gqview gqview: /usr/share/doc/gqview/changelog.gz gqview: /usr/share/doc/gqview/html/11_2_keyboard_shortcuts.html |
#dpkg -S gqview
gqview: /usr/share/doc/gqview/html/2_main_window.html gqview: /usr/share/locale/uk/LC_MESSAGES/gqview.mo gqview: /usr/share/locale/pt_BR/LC_MESSAGES/gqview.mo gqview: /usr/share/doc/gqview/html/10_6_advanced.html gqview: /usr/share/doc/gqview/html/11_4_management.html gqview: /usr/share/doc/gqview/html/11_3_thumbnails.html gqview: /usr/bin/gqview gqview: /usr/share/locale/eu/LC_MESSAGES/gqview.mo gqview: /usr/share/locale/bg/LC_MESSAGES/gqview.mo gqview: /usr/share/doc/gqview/html/4_1_copy_move.html ... gqview: /usr/share/doc/gqview/html/2_4_file_pane.html gqview: /usr/share/doc/gqview/html/3_other_windows.html gqview: /usr/share/pixmaps/gqview.png gqview: /usr/share/locale/vi/LC_MESSAGES/gqview.mo gqview: /usr/share/locale/ca/LC_MESSAGES/gqview.mo gqview: /usr/share/doc/gqview/html/2_5_folder_pane.html gqview: /usr/share/locale/ko/LC_MESSAGES/gqview.mo gqview: /usr/share/doc/gqview gqview: /usr/share/doc/gqview/changelog.gz gqview: /usr/share/doc/gqview/html/11_2_keyboard_shortcuts.html |
#dpkg -l
ii libxrandr2 2:1.3.0-2 X11 RandR extension library ii libxrender1 1:0.9.4-2 X Rendering Extension client library ii libxres1 2:1.0.3-1 X11 Resource extension library ii libxss1 1:1.1.3-1 X11 Screen Saver extension library ii libxt6 1:1.0.5-3 X11 toolkit intrinsics library ii libxtrap6 2:1.0.0-5 X11 event trapping extension library ii libxtst6 2:1.0.3-1 X11 Testing -- Resource extension library ii libxv1 2:1.0.4-1 X11 Video extension library ii libxvmc1 1:1.0.4-2 X11 Video extension library ii libxxf86dga1 2:1.0.2-1 X11 Direct Graphics Access extension library ... ii x11-xserver-utils 7.4+2 X server utilities ii xauth 1:1.0.3-2 X authentication utility ii xbase-clients 1:7.4+1 miscellaneous X clients - metapackage ii xbitmaps 1.0.1-2 Base X bitmaps ii xdg-user-dirs 0.10-1 tool to manage well known user directories ii xfce4 4.6.1 Meta-package for the Xfce Lightweight Desktop Environment ii xfce4-appfinder 4.6.1-1 Application finder for the Xfce4 Desktop Environment ii xfce4-mixer 4.6.1-1 Xfce mixer application ii xfce4-panel 4.6.1-1 The Xfce4 desktop environment panel ii xfce4-session 4.6.1-1 Xfce4 Session Manager |
#dpkg -l
ii libxrandr2 2:1.3.0-2 X11 RandR extension library ii libxrender1 1:0.9.4-2 X Rendering Extension client library ii libxres1 2:1.0.3-1 X11 Resource extension library ii libxss1 1:1.1.3-1 X11 Screen Saver extension library ii libxt6 1:1.0.5-3 X11 toolkit intrinsics library ii libxtrap6 2:1.0.0-5 X11 event trapping extension library ii libxtst6 2:1.0.3-1 X11 Testing -- Resource extension library ii libxv1 2:1.0.4-1 X11 Video extension library ii libxvmc1 1:1.0.4-2 X11 Video extension library ii libxxf86dga1 2:1.0.2-1 X11 Direct Graphics Access extension library ... ii x11-xserver-utils 7.4+2 X server utilities ii xauth 1:1.0.3-2 X authentication utility ii xbase-clients 1:7.4+1 miscellaneous X clients - metapackage ii xbitmaps 1.0.1-2 Base X bitmaps ii xdg-user-dirs 0.10-1 tool to manage well known user directories ii xfce4 4.6.1 Meta-package for the Xfce Lightweight Desktop Environment ii xfce4-appfinder 4.6.1-1 Application finder for the Xfce4 Desktop Environment ii xfce4-mixer 4.6.1-1 Xfce mixer application ii xfce4-panel 4.6.1-1 The Xfce4 desktop environment panel ii xfce4-session 4.6.1-1 Xfce4 Session Manager |
#dpkg -S file
libfile-desktopentry-perl: /usr/share/doc/libfile-desktopentry-perl/changelog.gz apt-file: /usr/share/apt-file/apt-file-update.update-notifier perl-base: /usr/lib/perl/5.10.0/auto/DynaLoader/dl_findfile.al base-files: /usr/share/base-files/nsswitch.conf thunar-data: /usr/share/gtk-doc/html/thunar-vfs/filesystem-monitoring.html vim-runtime: /usr/share/vim/vim72/filetype.vim vim-runtime: /usr/share/vim/vim72/doc/filetype.txt liblockfile1: /usr/share/doc/liblockfile1/copyright xulrunner-1.9: /usr/lib/xulrunner-1.9/components/profile.xpt tango-icon-theme: /usr/share/icons/Tango/16x16/actions/filequickprint.png ... desktop-file-utils: /usr/share/man/man1/desktop-file-validate.1.gz tango-icon-theme: /usr/share/icons/Tango/24x24/actions/fileprint.png iceweasel: /etc/iceweasel/profile/chrome gajim: /usr/share/gajim/src/profile_window.py tango-icon-theme: /usr/share/icons/Tango/22x22/apps/system-file-manager.png base-files: /usr/share/base-files/motd iceweasel: /etc/iceweasel/profile/prefs.js gstreamer0.10-plugins-good: /usr/lib/gstreamer-0.10/libgstmultifile.so tango-icon-theme: /usr/share/icons/Tango/32x32/apps/redhat-filemanager.png tango-icon-theme: /usr/share/icons/Tango/24x24/actions/filesave.png |
#dpkg -S file
libfile-desktopentry-perl: /usr/share/doc/libfile-desktopentry-perl/changelog.gz apt-file: /usr/share/apt-file/apt-file-update.update-notifier perl-base: /usr/lib/perl/5.10.0/auto/DynaLoader/dl_findfile.al base-files: /usr/share/base-files/nsswitch.conf thunar-data: /usr/share/gtk-doc/html/thunar-vfs/filesystem-monitoring.html vim-runtime: /usr/share/vim/vim72/filetype.vim vim-runtime: /usr/share/vim/vim72/doc/filetype.txt liblockfile1: /usr/share/doc/liblockfile1/copyright xulrunner-1.9: /usr/lib/xulrunner-1.9/components/profile.xpt tango-icon-theme: /usr/share/icons/Tango/16x16/actions/filequickprint.png ... desktop-file-utils: /usr/share/man/man1/desktop-file-validate.1.gz tango-icon-theme: /usr/share/icons/Tango/24x24/actions/fileprint.png iceweasel: /etc/iceweasel/profile/chrome gajim: /usr/share/gajim/src/profile_window.py tango-icon-theme: /usr/share/icons/Tango/22x22/apps/system-file-manager.png base-files: /usr/share/base-files/motd iceweasel: /etc/iceweasel/profile/prefs.js gstreamer0.10-plugins-good: /usr/lib/gstreamer-0.10/libgstmultifile.so tango-icon-theme: /usr/share/icons/Tango/32x32/apps/redhat-filemanager.png tango-icon-theme: /usr/share/icons/Tango/24x24/actions/filesave.png |
#dpkg -l|grep ^ii
ii libpolkit2 0.9-3 library for accessing PolicyKit ii libpopt0 1.14-4 lib for parsing cmdline parameters ii libpurple-bin 2.5.6-1 multi-protocol instant messaging library - extra utilities ii libpurple0 2.5.6-1 multi-protocol instant messaging library ii librarian0 0.8.1-2 Rarian is a documentation meta-data library (library package) ii libraw1394-11 2.0.2-2 library for direct access to IEEE 1394 bus (aka FireWire) ii libreadline5 5.2-4 GNU readline and history libraries, run-time libraries ii librecode0 3.6-15 Shared library on which recode is based ii librsvg2-2 2.22.3-2 SAX-based renderer library for SVG files (runtime) ii librsvg2-common 2.22.3-2 SAX-based renderer library for SVG files (extra runtime) ... ii ntpdate 1:4.2.4p6+dfsg-1 client for setting system time from NTP servers ii openbsd-inetd 0.20080125-2 The OpenBSD Internet Superserver ii openssh-blacklist 0.4.1 list of default blacklisted OpenSSH RSA and DSA keys ii openssh-blacklist-extra 0.4.1 list of non-default blacklisted OpenSSH RSA and DSA keys ii openssh-client 1:5.1p1-5+b1 secure shell client, an rlogin/rsh/rcp replacement ii openssh-server 1:5.1p1-5+b1 secure shell server, an rshd replacement ii openssl 0.9.8g-16 Secure Socket Layer (SSL) binary and related cryptographic tools ii orage 4.6.1-1 Calendar for Xfce Desktop Environment ii oss-compat 0.0.4+nmu3 OSS compatibility package ii passwd 1:4.1.4.1-1 change and administer password and group data |
#dpkg -l|grep ^ii
ii libpolkit2 0.9-3 library for accessing PolicyKit ii libpopt0 1.14-4 lib for parsing cmdline parameters ii libpurple-bin 2.5.6-1 multi-protocol instant messaging library - extra utilities ii libpurple0 2.5.6-1 multi-protocol instant messaging library ii librarian0 0.8.1-2 Rarian is a documentation meta-data library (library package) ii libraw1394-11 2.0.2-2 library for direct access to IEEE 1394 bus (aka FireWire) ii libreadline5 5.2-4 GNU readline and history libraries, run-time libraries ii librecode0 3.6-15 Shared library on which recode is based ii librsvg2-2 2.22.3-2 SAX-based renderer library for SVG files (runtime) ii librsvg2-common 2.22.3-2 SAX-based renderer library for SVG files (extra runtime) ... ii ntpdate 1:4.2.4p6+dfsg-1 client for setting system time from NTP servers ii openbsd-inetd 0.20080125-2 The OpenBSD Internet Superserver ii openssh-blacklist 0.4.1 list of default blacklisted OpenSSH RSA and DSA keys ii openssh-blacklist-extra 0.4.1 list of non-default blacklisted OpenSSH RSA and DSA keys ii openssh-client 1:5.1p1-5+b1 secure shell client, an rlogin/rsh/rcp replacement ii openssh-server 1:5.1p1-5+b1 secure shell server, an rshd replacement ii openssl 0.9.8g-16 Secure Socket Layer (SSL) binary and related cryptographic tools ii orage 4.6.1-1 Calendar for Xfce Desktop Environment ii oss-compat 0.0.4+nmu3 OSS compatibility package ii passwd 1:4.1.4.1-1 change and administer password and group data |
#ls /bin |grep dpkg -S `which pstree`
grep: invalid option -- 'S' Usage: grep [OPTION]... PATTERN [FILE]... Try `grep --help' for more information. |
#ls /bin |grep dpkg -S `which pstree`
grep: invalid option -- 'S' Usage: grep [OPTION]... PATTERN [FILE]... Try `grep --help' for more information. |
#apt-file search pstree
manpages-hu: /usr/share/man/hu/man1/pstree.1.gz manpages-ja: /usr/share/man/ja/man1/pstree.1.gz manpages-pl: /usr/share/man/pl/man1/pstree.1.gz psmisc: /usr/bin/pstree psmisc: /usr/bin/pstree.x11 psmisc: /usr/share/man/man1/pstree.1.gz psmisc: /usr/share/man/man1/pstree.x11.1.gz psmisc: /usr/share/pixmaps/pstree16.xpm psmisc: /usr/share/pixmaps/pstree32.xpm util-vserver: /usr/sbin/vpstree util-vserver: /usr/share/man/man8/vpstree.8.gz |
#apt-file search pstree
manpages-hu: /usr/share/man/hu/man1/pstree.1.gz manpages-ja: /usr/share/man/ja/man1/pstree.1.gz manpages-pl: /usr/share/man/pl/man1/pstree.1.gz psmisc: /usr/bin/pstree psmisc: /usr/bin/pstree.x11 psmisc: /usr/share/man/man1/pstree.1.gz psmisc: /usr/share/man/man1/pstree.x11.1.gz psmisc: /usr/share/pixmaps/pstree16.xpm psmisc: /usr/share/pixmaps/pstree32.xpm util-vserver: /usr/sbin/vpstree util-vserver: /usr/share/man/man8/vpstree.8.gz |
#apt-file search pstree | grep `which pstree`
psmisc: /usr/bin/pstree psmisc: /usr/bin/pstree.x11 |
#apt-file search pstree | grep `which pstree`
psmisc: /usr/bin/pstree psmisc: /usr/bin/pstree.x11 |
#dpkg -S pstree
psmisc: /usr/share/man/man1/pstree.x11.1.gz psmisc: /usr/share/pixmaps/pstree32.xpm psmisc: /usr/bin/pstree.x11 psmisc: /usr/share/pixmaps/pstree16.xpm psmisc: /usr/share/man/man1/pstree.1.gz psmisc: /usr/bin/pstree |
#dpkg -S pstree
psmisc: /usr/share/man/man1/pstree.x11.1.gz psmisc: /usr/share/pixmaps/pstree32.xpm psmisc: /usr/bin/pstree.x11 psmisc: /usr/share/pixmaps/pstree16.xpm psmisc: /usr/share/man/man1/pstree.1.gz psmisc: /usr/bin/pstree |
#apt-file search pstree | grep `which pstree`
psmisc: /usr/bin/pstree psmisc: /usr/bin/pstree.x11 |
#apt-file search pstree | grep `which pstree`
psmisc: /usr/bin/pstree psmisc: /usr/bin/pstree.x11 |
#dpkg -L psmisc | while read f
> do > file $f | grep -qi elf && echo $f > done /bin/fuser /usr/bin/killall /usr/bin/pstree |
#dpkg -L psmisc | while read f
> do > file $f | grep -qi elf && echo $f > done /bin/fuser /usr/bin/killall /usr/bin/pstree |
#apt-get install debsums
Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: portmap Use 'apt-get autoremove' to remove them. The following NEW packages will be installed: debsums 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 48.2kB of archives. After this operation, 270kB of additional disk space will be used. Get:1 http://10.0.35.1 sid/main debsums 2.0.44 [48.2kB] Fetched 48.2kB in 0s (0B/s) Preconfiguring packages ... Selecting previously deselected package debsums. (Reading database ... 45645 files and directories currently installed.) Unpacking debsums (from .../debsums_2.0.44_all.deb) ... Processing triggers for man-db ... Setting up debsums (2.0.44) ... |
#apt-get install debsums
Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: portmap Use 'apt-get autoremove' to remove them. The following NEW packages will be installed: debsums 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 48.2kB of archives. After this operation, 270kB of additional disk space will be used. Get:1 http://10.0.35.1 sid/main debsums 2.0.44 [48.2kB] Fetched 48.2kB in 0s (0B/s) Preconfiguring packages ... Selecting previously deselected package debsums. (Reading database ... 45645 files and directories currently installed.) Unpacking debsums (from .../debsums_2.0.44_all.deb) ... Processing triggers for man-db ... Setting up debsums (2.0.44) ... |
#debsums -a
/usr/share/locale/ca/LC_MESSAGES/libapt-inst1.1.mo OK /usr/share/locale/es/LC_MESSAGES/apt.mo OK /usr/share/locale/es/LC_MESSAGES/libapt-pkg4.7.mo OK /usr/share/locale/es/LC_MESSAGES/libapt-inst1.1.mo OK /usr/share/locale/eu/LC_MESSAGES/apt.mo OK /usr/share/locale/eu/LC_MESSAGES/libapt-pkg4.7.mo OK /usr/share/locale/eu/LC_MESSAGES/libapt-inst1.1.mo OK /usr/share/locale/gl/LC_MESSAGES/apt.mo OK /usr/share/locale/gl/LC_MESSAGES/libapt-pkg4.7.mo OK /usr/share/locale/gl/LC_MESSAGES/libapt-inst1.1.mo OK ... /usr/share/doc/apt-file/README OK /usr/share/apt-file/is-cache-empty OK /usr/share/apt-file/do-apt-file-update OK /usr/share/apt-file/apt-file-update.update-notifier OK /usr/share/man/man1/diffindex-download.1.gz OK /usr/share/man/man1/diffindex-rred.1.gz OK /usr/share/man/man1/apt-file.1.gz OK /etc/apt/apt-file.conf OK /etc/bash_completion.d/apt-file OK /usr/share/man/man1/apt-ftparchive.1.gz OK |
#debsums -a
/usr/share/locale/ca/LC_MESSAGES/libapt-inst1.1.mo OK /usr/share/locale/es/LC_MESSAGES/apt.mo OK /usr/share/locale/es/LC_MESSAGES/libapt-pkg4.7.mo OK /usr/share/locale/es/LC_MESSAGES/libapt-inst1.1.mo OK /usr/share/locale/eu/LC_MESSAGES/apt.mo OK /usr/share/locale/eu/LC_MESSAGES/libapt-pkg4.7.mo OK /usr/share/locale/eu/LC_MESSAGES/libapt-inst1.1.mo OK /usr/share/locale/gl/LC_MESSAGES/apt.mo OK /usr/share/locale/gl/LC_MESSAGES/libapt-pkg4.7.mo OK /usr/share/locale/gl/LC_MESSAGES/libapt-inst1.1.mo OK ... /usr/share/doc/apt-file/README OK /usr/share/apt-file/is-cache-empty OK /usr/share/apt-file/do-apt-file-update OK /usr/share/apt-file/apt-file-update.update-notifier OK /usr/share/man/man1/diffindex-download.1.gz OK /usr/share/man/man1/diffindex-rred.1.gz OK /usr/share/man/man1/apt-file.1.gz OK /etc/apt/apt-file.conf OK /etc/bash_completion.d/apt-file OK /usr/share/man/man1/apt-ftparchive.1.gz OK |
#debsums -a |grep FAIL
debsums: no md5sums for at /etc/bash.bashrc FAILED debsums: no md5sums for binutils debsums: no md5sums for bzip2 debsums: no md5sums for console-cyrillic /etc/crontab FAILED debsums: no md5sums for debian-archive-keyring /etc/default/debsums FAILED debsums: no md5sums for ed debsums: no md5sums for initscripts debsums: no md5sums for libbz2-1.0 debsums: no md5sums for libdb4.5 debsums: no md5sums for libgdbm3 debsums: no md5sums for liblockfile1 ^C |
#debsums -a |grep FAIL
debsums: no md5sums for at /etc/bash.bashrc FAILED debsums: no md5sums for binutils debsums: no md5sums for bzip2 debsums: no md5sums for console-cyrillic /etc/crontab FAILED debsums: no md5sums for debian-archive-keyring /etc/default/debsums FAILED debsums: no md5sums for ed debsums: no md5sums for initscripts debsums: no md5sums for libbz2-1.0 debsums: no md5sums for libdb4.5 debsums: no md5sums for libgdbm3 debsums: no md5sums for liblockfile1 ^C |
"dpkg" -> "apt"[color=springgreen]; "dpkg" -> "aptitude"[color=springgreen]; "dpkg" -> "dpkg-dev"[color=springgreen]; "dpkg" -> "dpkg-iasearch"[color=springgreen]; "dpkg" -> "sysvinit"[color=springgreen]; "debianutils" -> "sensible-utils"; "debianutils" -> "libc6"[color=blue]; "libgpg-error0" -> "libc6"; "sed" -> "libc6"[color=blue]; "ucf" -> "debconf"; "ucf" -> "coreutils"; "libtext-iconv-perl" -> "libc6"; "libtext-iconv-perl" -> "perl-base"; "libtext-iconv-perl" -> "perlapi-5.10.0"; "libtext-wrapi18n-perl" -> "libtext-charwidth-perl"; "libuuid1" -> "passwd"; "libuuid1" -> "libc6"; "libdb4.7" -> "libc6"; "libdb4.7" -> "libdb2"[color=springgreen]; "libcupsys2" -> "libcups2"; "lzma" -> "libc6"; "lzma" -> "libgcc1"; "lzma" -> "libstdc++6"; "coreutils" -> "libacl1"[color=blue]; "coreutils" -> "libattr1"[color=blue]; "coreutils" -> "libc6"[color=blue]; "coreutils" -> "libselinux1"[color=blue]; "libstdc++6" -> "gcc-4.4-base"; "libstdc++6" -> "libc6"; "libstdc++6" -> "libgcc1"; "libstdc++6" -> "scim"[color=springgreen]; "libpopt-dev" [color=orange,shape=box]; "libkeyutils1" [shape=box]; "libterm-readline-gnu-perl" [color=orange,shape=box]; "libkrb5-3" [shape=box]; "libpam0g" [shape=box]; "menu" [color=orange,shape=box]; "libtalloc1" [shape=box]; "libpopt0" [shape=box]; "libstdc++6" [shape=box]; "libncurses5" [shape=box]; "libkrb5support0" [shape=box]; "debconf-english" [shape=box]; "procps" [shape=box]; "libpam-modules" [shape=box]; "libacl1" [shape=box]; "libcomerr2" [shape=box]; "libselinux1" [shape=box]; "whiptail" [color=orange,shape=box]; "postfix" [color=orange,shape=box]; "liblocale-gettext-perl" [shape=box]; "libscalar-list-utils-perl" [shape=triangle]; "pgrep" [shape=hexagon]; "ssh-krb5" [color=orange,shape=box]; "lzma" [shape=box]; "autoconf2.13" [color=orange,shape=box]; "nscd" [color=orange,shape=box]; "gnutls0" [shape=hexagon]; "libcap2" [shape=box]; "libpam-runtime" [shape=box]; "libsasl2-gssapi-mit" [shape=hexagon]; "perl-base" [shape=box]; "aptitude" [color=orange,shape=box]; "samba4" [shape=hexagon]; "libpam0g-util" [shape=hexagon]; "popt" [shape=hexagon]; "zlib1" [shape=hexagon]; "libgnutls26" [shape=box]; "debconf-tiny" [shape=hexagon]; "scim" [color=orange,shape=box]; "debconf-utils" [color=orange,shape=box]; "libtext-charwidth-perl" [shape=box]; "libtasn1-2" [shape=hexagon]; "libtasn1-3" [shape=box]; "perlapi-5.10.0" [shape=triangle]; "libpam-umask" [shape=triangle]; "dpkg-iasearch" [shape=hexagon]; "libk5crypto3" [shape=box]; "libapache2-mod-auth-kerb" [color=orange,shape=box]; "whiptail-utf8" [shape=triangle]; "acl" [color=orange,shape=box]; "coreutils" [shape=box]; "libgcc1" [shape=box]; "tzdata-etch" [shape=hexagon]; "readline-common" [shape=box]; "passwd" [shape=box]; "apt" [color=orange,shape=box]; "libapache-mod-auth-kerb" [color=orange,shape=box]; "attr" [color=orange,shape=box]; "libcups2" [shape=box]; "netbase" [color=orange,shape=box]; "update-inetd" [shape=box]; "suidmanager" [shape=hexagon]; "tput" [shape=triangle]; "libgcrypt11" [shape=box]; "dpkg" [shape=box]; "lsb" [color=orange,shape=box]; "libdb2" [shape=hexagon]; "sensible-utils" [shape=box]; "debianutils" [shape=box]; "procps-nonfree" [shape=hexagon]; "gcc-4.4-base" [shape=box]; "libgpg-error0" [shape=box]; "samba" [shape=box]; "sed" [shape=box]; "adduser" [shape=box]; "lsb-base" [shape=box]; "libwbclient0" [shape=box]; "dpkg-dev" [color=orange,shape=box]; "rpm" [color=orange,shape=box]; "ucf" [shape=box]; "libtext-iconv-perl" [shape=box]; "zlib1g" [shape=box]; "libpam0g-modules" [shape=hexagon]; "ldap-utils" [color=orange,shape=box]; "libpam-mkhomedir" [shape=triangle]; "libtext-wrapi18n-perl" [shape=box]; "libldap-2.4-2" [shape=box]; "libuuid1" [shape=box]; "tzdata" [color=orange,shape=box]; "gnutls0.4" [shape=hexagon]; "dialog" [color=orange,shape=box]; "libpam" [shape=hexagon]; "libdb4.7" [shape=box]; "libsasl2-2" [shape=box]; "libproc-dev" [color=orange,shape=box]; "debconf" [shape=box]; "debconf-2.0" [shape=triangle]; "samba-common" [shape=box]; "libgssapi-krb5-2" [shape=box]; "libacl1-kerberos4kth" [shape=hexagon]; "w-bassman" [color=orange,shape=box]; "debconf-i18n" [shape=box]; "cdebconf" [color=orange,shape=box]; "libcupsys2" [shape=diamond]; "lsb-core" [color=orange,shape=box]; "libc6" [shape=box]; "libattr1" [shape=box]; "libreadline-common" [shape=hexagon]; "libreadline5" [shape=box]; "watch" [shape=triangle]; "ncurses-bin" [shape=box]; "libxsloader-perl" [shape=triangle]; "ncurses" [shape=hexagon]; "libpam-motd" [shape=triangle]; "libsasl2-krb4-mit" [shape=hexagon]; "sysvinit" [color=orange,shape=box]; "libpam0" [shape=hexagon]; }
Время первой команды журнала | 09:30:55 2009- 5-29 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 10:49:48 2009- 5-29 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 15.84 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 1.98 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 1.31 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 1.28 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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