/l3/users/31-08-2009/nt-fbsdnet/fbsd3.net.nt/user :1 :2 :3 :4 |
|
$ssh 192.168.0.21
^C |
$ssh -h
ssh: illegal option -- h usage: ssh [-1246AaCfgkMNnqsTtVvXxY] [-b bind_address] [-c cipher_spec] [-D [bind_address:]port] [-e escape_char] [-F configfile] [-i identity_file] [-L [bind_address:]port:host:hostport] [-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port] [-R [bind_address:]port:host:hostport] [-S ctl_path] [-w local_tun[:remote_tun]] [user@]hostname [command] |
$ssh 192.168.0.21 -l root
^C |
$ssh 192.168.161 -l root
The authenticity of host '192.168.16.21 (192.168.16.21)' can't be established. DSA key fingerprint is 13:3f:fb:2a:53:62:8e:f8:0e:c7:3a:c9:10:99:b6:25. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '192.168.16.21' (DSA) to the list of known hosts. Password: Last login: Mon Aug 31 18:44:05 2009 from 192.168.16.22 Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 6.3-RELEASE (SMP) #0: Wed Jan 16 04:45:45 UTC 2008 Welcome to FreeBSD! ... http://www.FreeBSD.org/search/. If the doc distribution has been installed, they're also available formatted in /usr/share/doc. If you still have a question or problem, please take the output of `uname -a', along with any relevant error messages, and email it as a question to the questions@FreeBSD.org mailing list. If you are unfamiliar with FreeBSD's directory layout, please refer to the hier(7) manual page. If you are not familiar with manual pages, type `man man'. You may also use sysinstall(8) to re-enter the installation and configuration utility. Edit /etc/motd to change this login announcement. Removing stale pidfile |
#screen -x
|
$ssh root@192.168.16.21
Password: Last login: Mon Aug 31 18:49:38 2009 from 192.168.16.22 Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 6.3-RELEASE (SMP) #0: Wed Jan 16 04:45:45 UTC 2008 Welcome to FreeBSD! Before seeking technical support, please use the following resources: o Security advisories and updated errata information for all releases are at http://www.FreeBSD.org/releases/ - always consult the ERRATA section for your release first as it's updated frequently. ... http://www.FreeBSD.org/search/. If the doc distribution has been installed, they're also available formatted in /usr/share/doc. If you still have a question or problem, please take the output of `uname -a', along with any relevant error messages, and email it as a question to the questions@FreeBSD.org mailing list. If you are unfamiliar with FreeBSD's directory layout, please refer to the hier(7) manual page. If you are not familiar with manual pages, type `man man'. You may also use sysinstall(8) to re-enter the installation and configuration utility. Edit /etc/motd to change this login announcement. Removing stale pidfile |
#screen -x
|
$ssh root@92.168.16.21
Password: Last login: Mon Aug 31 19:41:05 2009 from 192.168.16.22 Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 6.3-RELEASE (SMP) #0: Wed Jan 16 04:45:45 UTC 2008 Welcome to FreeBSD! Before seeking technical support, please use the following resources: o Security advisories and updated errata information for all releases are at http://www.FreeBSD.org/releases/ - always consult the ERRATA section for your release first as it's updated frequently. ... http://www.FreeBSD.org/search/. If the doc distribution has been installed, they're also available formatted in /usr/share/doc. If you still have a question or problem, please take the output of `uname -a', along with any relevant error messages, and email it as a question to the questions@FreeBSD.org mailing list. If you are unfamiliar with FreeBSD's directory layout, please refer to the hier(7) manual page. If you are not familiar with manual pages, type `man man'. You may also use sysinstall(8) to re-enter the installation and configuration utility. Edit /etc/motd to change this login announcement. Removing stale pidfile |
#screen -x
|
$top
last pid: 2441; load averages: 0.15, 0.04, 0.01 up 0+02:37:23 19:41:46 49 processes 0.0 running 0.0 sleepin 0.0 0.7 99.3 CPU states: % user, % nice, % system, % interrupt, % idle Mem: 63M Active, 50M Inact, 53M Wired, 1048K Cache, 60M Buf, 322M Free 181 nobody 15796K 14920 2 0.73% Xvnc S1016 rootM Total, 201 8Free 8336K 7060K nanslp 1 0.00% perl5.8.8 2225 user 3 20 32828K 20892K kserel 1 0.00% xfdesktop 994 root 1 96 20916K 12984K select 1 0.00% Xorg 1442 root 8 8316K 7092K nanslp 1 0.00% perl5.8.8 2220 userNAME THR P96 NICE 29528K 13184K select TIM0 WCPU xfce4-panel ... 994 root 1 96 0 20916K 12984K select 0:01 0.00% Xorg 1442 root 1 8 0 8316K 7092K nanslp 0:01 0.00% perl5.8.8 2220 user 1 96 0 29528K 13184K select 0:00 0.00% xfce4-panel 932 root 1 96 0 3508K 2936K select 0:00 0.00% sendmail 2218 user 1 96 0 13648K 9860K select 0:00 0.00% xfwm4 2223 user 1 96 0 26112K 14124K select 0:00 0.00% xfce4-menu-pl 2212 user 1 96 0 12380K 7932K select 0:00 0.00% xfce4-session 2216 user 1 96 0 28336K 9976K select 0:00 0.00% xfce-mcs-mana 2241 user 1 96 0 5796K 4940K select 0:00 0.00% xterm 942 root 1 8 0 1396K 1100K nanslp 0:00 0.00% cron |
$ls -a
. .gconfd .metacity .. .gnome .mozilla .ICEauthority .gnome2 .nautilus .Xauthority .gnome2_private .profile .bash_history .gstreamer-0.10 .recently-used.xbel .bash_profile .gtkrc-1.2-gnome2 .rhosts .bashrc .icons .shrc .cache .l3rc .ssh .config .lilalo .themes .cshrc .local .thumbnails .dbus .login .xsession .dmrc .login_conf .xsession-errors .fontconfig .mail_aliases Desktop .gconf .mailrc gdb.core |
$ls -l
total 834 drwxr-xr-x 2 user wheel 512 15 ÍÁÒ 2008 Desktop -rw------- 1 user wheel 823296 24 ÉÀÌ 16:14 gdb.core |
$ls -a
. .gconfd .metacity .. .gnome .mozilla .ICEauthority .gnome2 .nautilus .Xauthority .gnome2_private .profile .bash_history .gstreamer-0.10 .recently-used.xbel .bash_profile .gtkrc-1.2-gnome2 .rhosts .bashrc .icons .shrc .cache .l3rc .ssh .config .lilalo .themes .cshrc .local .thumbnails .dbus .login .xsession .dmrc .login_conf .xsession-errors .fontconfig .mail_aliases Desktop .gconf .mailrc gdb.core |
$ls -al
total 918 drwxr-xr-x 22 user wheel 1024 31 Á×Ç 19:40 . drwxr-xr-x 3 root wheel 512 15 ÍÁÒ 2008 .. -rw------- 1 user wheel 2438 31 Á×Ç 19:40 .ICEauthority -rw------- 1 user wheel 167 31 Á×Ç 19:40 .Xauthority -rw------- 1 user wheel 354 31 Á×Ç 19:39 .bash_history -rw-r--r-- 1 user wheel 19 24 ÉÀÌ 19:39 .bash_profile -rw-r--r-- 1 user wheel 43 24 ÉÀÌ 19:39 .bashrc drwx------ 5 user wheel 512 31 Á×Ç 19:14 .cache drwx------ 7 user wheel 512 31 Á×Ç 19:42 .config ... -rw-r--r-- 1 user wheel 218 24 ÉÀÌ 13:19 .recently-used.xbel -rw------- 1 user wheel 276 15 ÍÁÒ 2008 .rhosts -rw-r--r-- 1 user wheel 975 15 ÍÁÒ 2008 .shrc drwx------ 2 user wheel 512 31 Á×Ç 18:43 .ssh drwxr-xr-x 2 user wheel 512 24 ÉÀÌ 13:16 .themes drwx------ 3 user wheel 512 24 ÉÀÌ 13:16 .thumbnails -rw-r--r-- 1 root wheel 26 24 ÉÀÌ 19:00 .xsession -rw-r--r-- 1 user wheel 2302 31 Á×Ç 19:41 .xsession-errors drwxr-xr-x 2 user wheel 512 15 ÍÁÒ 2008 Desktop -rw------- 1 user wheel 823296 24 ÉÀÌ 16:14 gdb.core |
$lynx
|
$ssh user@192.168.16.22
The authenticity of host '192.168.16.22 (192.168.16.22)' can't be established. DSA key fingerprint is 13:3f:fb:2a:53:62:8e:f8:0e:c7:3a:c9:10:99:b6:25. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '192.168.16.22' (DSA) to the list of known hosts. Password: Last login: Mon Aug 31 19:40:25 2009 Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 6.3-RELEASE (SMP) #0: Wed Jan 16 04:45:45 UTC 2008 Welcome to FreeBSD! ... along with the mailing lists, can be searched by going to http://www.FreeBSD.org/search/. If the doc distribution has been installed, they're also available formatted in /usr/share/doc. If you still have a question or problem, please take the output of `uname -a', along with any relevant error messages, and email it as a question to the questions@FreeBSD.org mailing list. If you are unfamiliar with FreeBSD's directory layout, please refer to the hier(7) manual page. If you are not familiar with manual pages, type `man man'. You may also use sysinstall(8) to re-enter the installation and configuration utility. Edit /etc/motd to change this login announcement. |
$screen -x
|
$screen -h
|
$screen -r 7909.ttyp6.fbsd2
|
$screen -x
|
$screen -r 7989.ttyp6.fbsd2
|
$screen -x
|
$screen -r 7909.ttyp6.fbsd2
|
$screen -x
|
$screen -r 7909.ttyp6.fbsd2
|
$screen -wipe
|
$screen -x
|
$screen
|
$lynx
|
$pwd
/usr/home/user |
$pkg_add lynx-2.8.6.5_1,1.tbz
man/man1/lynx.1.gz: Can't create 'man/man1/lynx.1.gz': Permission denied bin/lynx: Can't create 'bin/lynx': Permission denied etc/lynx.cfg.sample: Can't create 'etc/lynx.cfg.sample': Permission denied tar: Error exit delayed from previous errors. pkg_add: extract_plist: can not invoke 109 byte tar pipeline: /usr/bin/tar cf - man/man1/lynx.1.gz bin/lynx etc/lynx.cfg.sample|/usr/bin/tar --unlink -xpPf - -C /usr/local |
$su _add lynx-2.8.6.5_1,1.tbz
su: Sorry |
$sudokg_add lynx-2.8.6.5_1,1.tbz
Password: Sorry, try again. Password: Sorry, try again. Password: Sorry, try again. sudo: 3 incorrect password attempts |
$logout
bash: logout: ÏÂÏÌÏÞËÁ ÎÅ Ñ×ÌÑÅÔÓÑ ÚÁÐÕÝÅÎÎÏÊ ÐÏÓÌÅ ×ÈÏÄÁ × ÓÉÓÔÅÍÕ: ÉÓÐÏÌØÚÕÊÔÅ `exit' |
#ls
.ICEauthority .gnome2 .nautilus .Xauthority .gnome2_private .profile .bash_history .gstreamer-0.10 .recently-used.xbel .bash_profile .gtkrc-1.2-gnome2 .rhosts .bashrc .icons .shrc .cache .l3rc .ssh .config .lilalo .themes .cshrc .local .thumbnails .dbus .login .xsession .dmrc .login_conf .xsession-errors .fontconfig .mail_aliases Desktop .gconf .mailrc gdb.core .gconfd .metacity lynx-2.8.6.5_1,1.tbz .gnome .mozilla |
#cd ~user
|
#pwd
/home/user |
#ls
.ICEauthority .gnome2 .nautilus .Xauthority .gnome2_private .profile .bash_history .gstreamer-0.10 .recently-used.xbel .bash_profile .gtkrc-1.2-gnome2 .rhosts .bashrc .icons .shrc .cache .l3rc .ssh .config .lilalo .themes .cshrc .local .thumbnails .dbus .login .xsession .dmrc .login_conf .xsession-errors .fontconfig .mail_aliases Desktop .gconf .mailrc gdb.core .gconfd .metacity lynx-2.8.6.5_1,1.tbz .gnome .mozilla |
#pkg_add lynx-2.8.6.5_1,1.tbz
|
#exit
exit |
$rm lynx-2.8.6.5_1,1.tbz
|
$ls -1
Desktop gdb.core |
$tree
bash: tree: ËÏÍÁÎÄÁ ÎÅ ÎÁÊÄÅÎÁ |
$su
Password: |
#whereis tree
tree: /usr/ports/sysutils/tree |
#cd /usr/ports/sysutils/tree
|
#cd /usr/ports/sysutils/tree
|
#ls
Makefile distinfo files pkg-descr |
#make install
===> Vulnerability check disabled, database not found => tree-1.5.1.1.tgz doesn't seem to exist in /usr/ports/distfiles/. => Attempting to fetch from ftp://mama.indstate.edu/linux/tree/. fetch: ftp://mama.indstate.edu/linux/tree/tree-1.5.1.1.tgz: File unavailable (e.g., file not found, no access) => Attempting to fetch from http://bsd.cenkes.org/myports/. tree-1.5.1.1.tgz 100% of 30 kB 9 MBps ===> Extracting for tree-1.5.1.1 => MD5 Checksum OK for tree-1.5.1.1.tgz. => SHA256 Checksum OK for tree-1.5.1.1.tgz. ===> Patching for tree-1.5.1.1 ... cc -o tree tree.o ===> Installing for tree-1.5.1.1 ===> Generating temporary packing list ===> Checking if sysutils/tree already installed /bin/mkdir -p /usr/local/bin /bin/mkdir -p /usr/local/man/man1 install -s -o root -g wheel -m 555 tree /usr/local/bin install -o root -g wheel -m 444 man/tree.1 /usr/local/man/man1 ===> Compressing manual pages for tree-1.5.1.1 ===> Registering installation for tree-1.5.1.1 |
#exit
exit |
$ls |head
Desktop gdb.core |
$ls -lad
total 834 drwxr-xr-x 2 user wheel 512 15 ÍÁÒ 2008 Desktop -rw------- 1 user wheel 823296 24 ÉÀÌ 16:14 gdb.core |
$ls -r
gdb.core Desktop |
$ssh root@192.168.16.22
Password: Last login: Mon Aug 31 18:53:38 2009 from 192.168.16.21 Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 6.3-RELEASE (SMP) #0: Wed Jan 16 04:45:45 UTC 2008 Welcome to FreeBSD! Before seeking technical support, please use the following resources: o Security advisories and updated errata information for all releases are at http://www.FreeBSD.org/releases/ - always consult the ERRATA section for your release first as it's updated frequently. ... http://www.FreeBSD.org/search/. If the doc distribution has been installed, they're also available formatted in /usr/share/doc. If you still have a question or problem, please take the output of `uname -a', along with any relevant error messages, and email it as a question to the questions@FreeBSD.org mailing list. If you are unfamiliar with FreeBSD's directory layout, please refer to the hier(7) manual page. If you are not familiar with manual pages, type `man man'. You may also use sysinstall(8) to re-enter the installation and configuration utility. Edit /etc/motd to change this login announcement. Removing stale pidfile |
#top
last pid: 9590; load averages: 0.00, 0.01, 0.00 up 0+04:18:56 21:17:58 59 1 58 65 processes12.5 running 0.0 sleepin12.5 2.5 72.5 1 8 CPU states: % user, % nice, % system, % interrupt, % idle Mem: 114M Active, 106M Inact, 65M Wired, 60K Cache, 60M Buf, 205M Free 9531 user 96 5292K 4436K select 0:00 1.00% xterm S3473 nobodyTotal, 21 96Free 19220K 18344K select 0:28 0.68% Xvnc 3502 user 96 30324K 15824K select 0:03 0.05% xfce4-panel 3842 user 4 20 71244K 61576K kserel 0:34 0.00% firefox-bin ... 3507 user 3 20 0 32828K 20860K kserel 0:01 0.00% xfdesktop 994 root 1 96 0 20916K 12984K select 0:01 0.00% Xorg 3498 user 1 96 0 28348K 9948K select 0:01 0.00% xfce-mcs-mana 3500 user 1 96 0 14008K 10412K select 0:00 0.00% xfwm4 3844 user 1 96 0 6792K 5344K select 0:00 0.00% gconfd-2 3597 user 1 96 0 5740K 4880K select 0:00 0.00% xterm 4007 user 1 96 0 5932K 5108K select 0:00 0.00% xterm 932 root 1 96 0 3508K 2928K select 0:00 0.00% sendmail 3513 user 1 96 0 26112K 14180K select 0:00 0.00% xfce4-menu-pl 4046 user 1 8 0 3312K 2148K wait 0:00 0.00% bash |
# 3657
exit Connection to 192.168.16.22 closed. |
$ls -ril
total 834 118548 -rw------- 1 user wheel 823296 24 ÉÀÌ 16:14 gdb.core 118480 drwxr-xr-x 2 user wheel 512 15 ÍÁÒ 2008 Desktop |
$tree
. |-- Desktop `-- gdb.core 1 directory, 1 file |
$cd ..
|
$ls -ril
total 2 118441 drwxr-xr-x 22 user wheel 1024 31 Á×Ç 21:06 user |
$tree
. `-- user |-- Desktop `-- gdb.core 2 directories, 1 file |
$ls -ril user/
total 834 118548 -rw------- 1 user wheel 823296 24 ÉÀÌ 16:14 gdb.core 118480 drwxr-xr-x 2 user wheel 512 15 ÍÁÒ 2008 Desktop |
$cd /
|
$ls -ril user/
ls: user/: No such file or directory |
$ls -ril
total 1171 13 -rw------- 1 root wheel 892928 24 ÉÀÌ 16:14 xdm.core 2 drwxr-xr-x 25 root wheel 512 31 Á×Ç 17:04 var 2 drwxr-xr-x 17 root wheel 512 15 ÍÁÒ 2008 usr 2 drwxrwxrwt 11 root wheel 1024 31 Á×Ç 21:10 tmp 4 lrwxrwxrwx 1 root wheel 11 15 ÍÁÒ 2008 sys -> usr/src/sys 235521 drwxr-xr-x 2 root wheel 2560 15 ÍÁÒ 2008 sbin 141313 drwxr-xr-x 19 root wheel 1024 31 Á×Ç 14:03 root 117761 drwxr-xr-x 2 root wheel 2560 15 ÍÁÒ 2008 rescue 94209 dr-xr-xr-x 2 root wheel 512 16 ÑÎ× 2008 proc ... 9 lrwxr-xr-x 1 root wheel 8 15 ÍÁÒ 2008 home -> usr/home 47104 drwxr-xr-x 19 root wheel 2048 24 ÉÀÌ 16:38 etc 11 -rw------- 1 root wheel 4096 24 ÉÀÌ 16:48 entropy 70656 drwxr-xr-x 2 root wheel 512 15 ÍÁÒ 2008 dist 2 dr-xr-xr-x 4 root wheel 512 1 ÑÎ× 1970 dev 8 lrwxr-xr-x 1 root wheel 10 15 ÍÁÒ 2008 compat -> usr/compat 188416 drwxr-xr-x 2 root wheel 512 15 ÍÁÒ 2008 cdrom 94208 drwxr-xr-x 6 root wheel 512 15 ÍÁÒ 2008 boot 211968 drwxr-xr-x 2 root wheel 1024 15 ÍÁÒ 2008 bin 7 -r--r--r-- 1 root wheel 6192 16 ÑÎ× 2008 COPYRIGHT |
$whatis intro
intro(1) - introduction to general commands (tools and utilities) intro(2) - introduction to system calls and error numbers intro(3) - introduction to the C libraries intro(4) - introduction to devices and device drivers intro(5) - introduction to file formats intro(6) - introduction to games intro(7) - miscellaneous information pages intro(8) - introduction to system maintenance procedures and commands intro(9) - introduction to system kernel interfaces XML::SAX::Intro(3) - An Introduction to SAX Parsing with Perl |
$whatis man
catman(1) - preformat man pages groff_man(7) - groff `man' macros to support generation of man pages man(1) - format and display the on-line manual pages manpath(1) - determine user's search path for man pages juggle(1) - juggling man screen saver mkhtmlindex(1) - generate index files for HTML man pages pacman(1) - simulates a game of Pac-Man on a randomly-created level juggle(1) - juggling man screen saver mkhtmlindex(1) - generate index files for HTML man pages pacman(1) - simulates a game of Pac-Man on a randomly-created level Pod::Man(3) - Convert POD data to formatted *roff input Pod::Perldoc::ToMan(3) - let Perldoc render Pod as man pages |
$whatis passwd
passwd(1), yppasswd(1) - modify a user's password passwd(5), master.passwd(5) - format of the password file slapd-passwd(5) - /etc/passwd backend to slapd slapd-passwd(5) - /etc/passwd backend to slapd SSL_CTX_set_default_passwd_cb(3), SSL_CTX_set_default_passwd_cb_userdata(3) - set passwd callback for encrypted PEM file handling passwd(1) - compute password hashes |
$ssh 192.168.16.21 -u user
ssh: illegal option -- u usage: ssh [-1246AaCfgkMNnqsTtVvXxY] [-b bind_address] [-c cipher_spec] [-D [bind_address:]port] [-e escape_char] [-F configfile] [-i identity_file] [-L [bind_address:]port:host:hostport] [-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port] [-R [bind_address:]port:host:hostport] [-S ctl_path] [-w local_tun[:remote_tun]] [user@]hostname [command] |
$ssh user@192.168.16.21
Password: Last login: Mon Sep 14 18:09:50 2009 from 192.168.16.22 Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 6.3-RELEASE (SMP) #0: Wed Jan 16 04:45:45 UTC 2008 Welcome to FreeBSD! Before seeking technical support, please use the following resources: o Security advisories and updated errata information for all releases are at http://www.FreeBSD.org/releases/ - always consult the ERRATA section for your release first as it's updated frequently. ... http://www.FreeBSD.org/search/. If the doc distribution has been installed, they're also available formatted in /usr/share/doc. If you still have a question or problem, please take the output of `uname -a', along with any relevant error messages, and email it as a question to the questions@FreeBSD.org mailing list. If you are unfamiliar with FreeBSD's directory layout, please refer to the hier(7) manual page. If you are not familiar with manual pages, type `man man'. You may also use sysinstall(8) to re-enter the installation and configuration utility. Edit /etc/motd to change this login announcement. l3-agent is already running: pid=68536; pidfile=/home/user/.lilalo/l3-agent.pid |
$screen -x
|
$info
|
$ls
Desktop gdb.core |
$ls -l
total 834 drwxr-xr-x 2 user wheel 512 15 ÍÁÒ 2008 Desktop -rw------- 1 user wheel 823296 24 ÉÀÌ 16:14 gdb.core |
$ls -la
total 926 drwxr-xr-x 23 user wheel 1024 14 ÓÅÎ 17:54 . drwxr-xr-x 3 root wheel 512 15 ÍÁÒ 2008 .. -rw------- 1 user wheel 2438 31 Á×Ç 19:40 .ICEauthority -rw------- 1 user wheel 167 14 ÓÅÎ 17:54 .Xauthority -rw------- 1 user wheel 859 31 Á×Ç 21:24 .bash_history -rw-r--r-- 1 user wheel 19 24 ÉÀÌ 19:39 .bash_profile -rw-r--r-- 1 user wheel 43 24 ÉÀÌ 19:39 .bashrc drwx------ 5 user wheel 512 31 Á×Ç 19:14 .cache drwx------ 7 user wheel 512 31 Á×Ç 19:42 .config ... -rw-r--r-- 1 user wheel 218 24 ÉÀÌ 13:19 .recently-used.xbel -rw------- 1 user wheel 276 15 ÍÁÒ 2008 .rhosts -rw-r--r-- 1 user wheel 975 15 ÍÁÒ 2008 .shrc drwx------ 2 user wheel 512 31 Á×Ç 18:43 .ssh drwxr-xr-x 2 user wheel 512 24 ÉÀÌ 13:16 .themes drwx------ 3 user wheel 512 24 ÉÀÌ 13:16 .thumbnails -rw-r--r-- 1 root wheel 26 24 ÉÀÌ 19:00 .xsession -rw-r--r-- 1 user wheel 9319 14 ÓÅÎ 17:55 .xsession-errors drwxr-xr-x 2 user wheel 512 15 ÍÁÒ 2008 Desktop -rw------- 1 user wheel 823296 24 ÉÀÌ 16:14 gdb.core |
$ls -a
. .gconfd .mozilla .. .gnome .nautilus .ICEauthority .gnome2 .profile .Xauthority .gnome2_private .recently-used.xbel .bash_history .gstreamer-0.10 .rhosts .bash_profile .gtkrc-1.2-gnome2 .shrc .bashrc .icons .ssh .cache .l3rc .themes .config .lilalo .thumbnails .cshrc .local .xsession .dbus .login .xsession-errors .dmrc .login_conf Desktop .fluxbox .mail_aliases gdb.core .fontconfig .mailrc .gconf .metacity |
$grep 'tree' ./.bash_history
tree tree tree |
$grep -cree' ./.bash_history
3 |
$grep -l'tree' ./.bash_history
./.bash_history |
$grep -l 'tree' ./*
|
$grep -l tree ./*
|
$grep -l tree ./
|
$grep -lrtree ./
./.lilalo/486959182313419744-1251733199.script ./.lilalo/1391835302093822579-1251735243.script ./.lilalo/562631832053031849-1251736841.script ./.lilalo/2808249712438218094-1251741893.info ./.lilalo/2808249712438218094-1251741893.script ./.lilalo/10633227382795631313-1252940085.info ./.lilalo/10633227382795631313-1252940085.script ./.lilalo/12374532187737560-1252941118.script ./.bash_history ./.mozilla/firefox/wm68sjtf.default/XUL.mfasl ./.mozilla/firefox/wm68sjtf.default/xpti.dat ./.mozilla/firefox/wm68sjtf.default/compreg.dat ./.mozilla/firefox/wm68sjtf.default/Cache/0C5A4F67d01 ./.mozilla/firefox/wm68sjtf.default/Cache/F85A3B1Fd01 |
$grep -lrctree ./
./.lilalo/486959182313419744-1251733199.script ./.lilalo/1391835302093822579-1251735243.script ./.lilalo/562631832053031849-1251736841.script ./.lilalo/2808249712438218094-1251741893.info ./.lilalo/2808249712438218094-1251741893.script ./.lilalo/10633227382795631313-1252940085.info ./.lilalo/10633227382795631313-1252940085.script ./.lilalo/12374532187737560-1252941118.script ./.bash_history ./.mozilla/firefox/wm68sjtf.default/XUL.mfasl ./.mozilla/firefox/wm68sjtf.default/xpti.dat ./.mozilla/firefox/wm68sjtf.default/compreg.dat ./.mozilla/firefox/wm68sjtf.default/Cache/0C5A4F67d01 ./.mozilla/firefox/wm68sjtf.default/Cache/F85A3B1Fd01 |
$grep -c tree ./
./.gnome2/epiphany/mozilla/epiphany/prefs.js:0 ./.gnome2/epiphany/mozilla/epiphany/search.rdf:0 ./.gnome2/epiphany/mozilla/epiphany/.parentlock:0 ./.gnome2/epiphany/mozilla/epiphany/Cache/_CACHE_MAP_:0 ./.gnome2/epiphany/mozilla/epiphany/Cache/_CACHE_001_:0 ./.gnome2/epiphany/mozilla/epiphany/Cache/_CACHE_002_:0 ./.gnome2/epiphany/mozilla/epiphany/Cache/_CACHE_003_:0 ./.gnome2/epiphany/mozilla/epiphany/cookies.txt:0 ./.gnome2/epiphany/epiphany-toolbars-3.xml:0 ./.gnome2/epiphany/ephy-bookmarks.xml:0 ... ./.config/Thunar/thunarrc:0 ./.config/xfce4-session/xfce4-session.rc:0 ./.config/autostart/xfce4-tips-autostart.desktop:0 ./.config/Terminal/terminalrc:0 ./.dbus/session-bus/7a592c1c31f269eba4e2130047dbd500-fbsdvm.net.nt_2:0 ./.dbus/session-bus/7a592c1c31f269eba4e2130047dbd500-2:0 ./.fluxbox/keys:0 ./.fluxbox/menu:0 ./.fluxbox/init:0 ./.Xauthority:0 |
$grep -cr tree ~.
grep: ~./: No such file or directory |
$grep -cr tree ~/
/home/user/.gnome2/epiphany/mozilla/epiphany/prefs.js:0 /home/user/.gnome2/epiphany/mozilla/epiphany/search.rdf:0 /home/user/.gnome2/epiphany/mozilla/epiphany/.parentlock:0 /home/user/.gnome2/epiphany/mozilla/epiphany/Cache/_CACHE_MAP_:0 /home/user/.gnome2/epiphany/mozilla/epiphany/Cache/_CACHE_001_:0 /home/user/.gnome2/epiphany/mozilla/epiphany/Cache/_CACHE_002_:0 /home/user/.gnome2/epiphany/mozilla/epiphany/Cache/_CACHE_003_:0 /home/user/.gnome2/epiphany/mozilla/epiphany/cookies.txt:0 /home/user/.gnome2/epiphany/epiphany-toolbars-3.xml:0 /home/user/.gnome2/epiphany/ephy-bookmarks.xml:0 ... /home/user/.config/Thunar/thunarrc:0 /home/user/.config/xfce4-session/xfce4-session.rc:0 /home/user/.config/autostart/xfce4-tips-autostart.desktop:0 /home/user/.config/Terminal/terminalrc:0 /home/user/.dbus/session-bus/7a592c1c31f269eba4e2130047dbd500-fbsdvm.net.nt_2:0 /home/user/.dbus/session-bus/7a592c1c31f269eba4e2130047dbd500-2:0 /home/user/.fluxbox/keys:0 /home/user/.fluxbox/menu:0 /home/user/.fluxbox/init:0 /home/user/.Xauthority:0 |
$grep -cr tree ~
/home/user/.gnome2/epiphany/mozilla/epiphany/prefs.js:0 /home/user/.gnome2/epiphany/mozilla/epiphany/search.rdf:0 /home/user/.gnome2/epiphany/mozilla/epiphany/.parentlock:0 /home/user/.gnome2/epiphany/mozilla/epiphany/Cache/_CACHE_MAP_:0 /home/user/.gnome2/epiphany/mozilla/epiphany/Cache/_CACHE_001_:0 /home/user/.gnome2/epiphany/mozilla/epiphany/Cache/_CACHE_002_:0 /home/user/.gnome2/epiphany/mozilla/epiphany/Cache/_CACHE_003_:0 /home/user/.gnome2/epiphany/mozilla/epiphany/cookies.txt:0 /home/user/.gnome2/epiphany/epiphany-toolbars-3.xml:0 /home/user/.gnome2/epiphany/ephy-bookmarks.xml:0 ... /home/user/.config/Thunar/thunarrc:0 /home/user/.config/xfce4-session/xfce4-session.rc:0 /home/user/.config/autostart/xfce4-tips-autostart.desktop:0 /home/user/.config/Terminal/terminalrc:0 /home/user/.dbus/session-bus/7a592c1c31f269eba4e2130047dbd500-fbsdvm.net.nt_2:0 /home/user/.dbus/session-bus/7a592c1c31f269eba4e2130047dbd500-2:0 /home/user/.fluxbox/keys:0 /home/user/.fluxbox/menu:0 /home/user/.fluxbox/init:0 /home/user/.Xauthority:0 |
$grep -c tree ./.bash_history
3 |
$grep -ntree ./.bash_history
50:tree 57:tree 60:tree |
$grep -n tree ./*
|
vim .bash_profile exit ps aux vim .bash_profile exit vim .bashrc exit top sudo sysinstall ifconfig sudo vim /etc/rc.conf sudo shutdown -p now tzsetup sudo tzsetup date sudo ntpdate ntp.psn.ru date vim .bashrc vim .bash_profile exit ssh root@192.168.16.21 ssh 192.168.0.21 ssh 192.168.0.21 ssh -h ssh 192.168.0.21 -l root ssh 192.168.16.21 -l root ssh user@192.168.16.22 top ls ls -a ls -l ls -a ls -al lynx ls pwd wget ftp://ftp-archive.freebsd.org/pub/FreeBSD-Archive/old-releases/i386/6.3-RELEASE/packages/All/lynx-2.8.6.5_1,1.tbz pkg_add lynx-2.8.6.5_1,1.tbz su pkg_add lynx-2.8.6.5_1,1.tbz sudo pkg_add lynx-2.8.6.5_1,1.tbz logout exit ssh root@192.168.16.22 exit ssh root@192.168.16.21 su rm lynx-2.8.6.5_1,1.tbz ls -1 ls -a1 tree su ls |head ls -l | head ls -r ls -ri ls -ril tree cd .. ls -ril tree ls -ril user/ cd / ls -ril user/ ls -ril
Время первой команды журнала | 17:39:59 2009- 8-31 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 18:39:09 2009- 9-14 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 100 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 22.00 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 3.00 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 2.49 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.67 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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