/l3/users/11-03-2008/nt-fbsdadm/fbsd4.unix.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 |
|
#rm .bash_history
rm: .bash_history: No such file or directory |
#echo www.lissyara.su | mail ak@imcmilk.com.ua
|
#cd /tmp
[root@fbsd4:user]# echo www.lissyara.su | mail ak@imcmilk.com.ua |
#cd /tmp
|
#ls
.ICE-unix .XauthyYIU3v etccopy .X0-lock .XauthzGCIuz fam-user .X11-unix .font-unix grub-install.log.10372 .XIM-unix .gdm_socket grub-install.log.8872 .Xauth4j1eJJ .snap grub-install.log.9047 .Xauth5MNp1A .swp grub-install.log.9221 .XauthVnvJcs .xorg.conf6318 install.cfg .XauthWZCDmQ .xorg.conf6321 lab2 .XauthiEK9wY 1 lilalo-install-temp-10315 .XauthjJ4f1W 1! mfsroot.gz .XauthjbfPhl dirlist patchrHcY96i .Xauthv3Drb2 dirlist2 select1 |
#ls
.ICE-unix .XauthyYIU3v etccopy .X0-lock .XauthzGCIuz fam-user .X11-unix .font-unix grub-install.log.10372 .XIM-unix .gdm_socket grub-install.log.8872 .Xauth4j1eJJ .snap grub-install.log.9047 .Xauth5MNp1A .swp grub-install.log.9221 .XauthVnvJcs .xorg.conf6318 install.cfg .XauthWZCDmQ .xorg.conf6321 lab2 .XauthiEK9wY 1 lilalo-install-temp-10315 .XauthjJ4f1W 1! mfsroot.gz .XauthjbfPhl dirlist patchrHcY96i .Xauthv3Drb2 dirlist2 select1 |
#vim select1
--- /tmp/l3-saved-4588.20271.6326 2008-03-13 15:44:03.000000000 +0000 +++ select1 2008-03-13 15:44:57.000000000 +0000 @@ -1,6 +1,7 @@ -#!/bin/bash +#!/bin/csh + PS3='Please, choise you lovely os: ' -select i in "Linux Debian SUSE RH " Windows Unix Mac Dos +select i in "Linux Debian SUSE RH Windows Unix Mac Dos do echo "You lovely OS is $i" break |
#./select1
PS3=Please, choise you lovely os: : Command not found. Unmatched ". |
#select1
bash: select1: command not found |
#./select1
[root@fbsd4:tmp]# select1 bash: select1: command not found PS3=Please, choise you lovely os: : Command not found. Unmatched ". |
#./select1
PS3=Please, choise you lovely os: : Command not found. Unmatched ". |
#echo PS3
PS3 |
#echo $
[root@fbsd4:tmp]# echo PS3 PS3 |
#echo $
|
#cd ~
|
#ls .
[root@fbsd4:tmp]# cd ~ -my .twm2U23SP .ICEauthority .viminfo .XSM-Default .vimrc .XSMlock-Default .xinitrc .Xauthority .xsession .bash_history .xsession-errors .bash_profile .xsmUpMmYE .bashrc .xsmrni9F1 .cshrc fluxbox.core ... .history kfreebsd.diff?file_id=9830 .k5login mbox .l3rc mymbr.img .lesshst passwd .lilalo s1 .login s2 .mozilla soft .profile w_d .prxbnzRcu w_v .ssh w_w |
#ls .
-my .twm2U23SP .ICEauthority .viminfo .XSM-Default .vimrc .XSMlock-Default .xinitrc .Xauthority .xsession .bash_history .xsession-errors .bash_profile .xsmUpMmYE .bashrc .xsmrni9F1 .cshrc fluxbox.core .dmrc grub-0.95 ... .history kfreebsd.diff?file_id=9830 .k5login mbox .l3rc mymbr.img .lesshst passwd .lilalo s1 .login s2 .mozilla soft .profile w_d .prxbnzRcu w_v .ssh w_w |
#vim .cshrc
|
#ls .
.bash_profile .xsmUpMmYE .bashrc .xsmrni9F1 .cshrc fluxbox.core .dmrc grub-0.95 .fluxbox grub-0.95-freebsd.diff .gconf grub-0.95-freebsd.diff?file_id=1886 .gconfd grub-0.95.tar.gz .gnome2 install .gnome2_private kfreebsd.diff .history kfreebsd.diff?file_id=9830 .k5login mbox .l3rc mymbr.img .lesshst passwd .lilalo s1 .login s2 .mozilla soft .profile w_d .prxbnzRcu w_v .ssh w_w You have new mail in /var/mail/root |
#ls .
.bash_profile .xsmUpMmYE .bashrc .xsmrni9F1 .cshrc fluxbox.core .dmrc grub-0.95 .fluxbox grub-0.95-freebsd.diff .gconf grub-0.95-freebsd.diff?file_id=1886 .gconfd grub-0.95.tar.gz .gnome2 install .gnome2_private kfreebsd.diff .history kfreebsd.diff?file_id=9830 .k5login mbox .l3rc mymbr.img .lesshst passwd .lilalo s1 .login s2 .mozilla soft .profile w_d .prxbnzRcu w_v .ssh w_w You have new mail in /var/mail/root |
#ls .
.bash_profile .xsmUpMmYE .bashrc .xsmrni9F1 .cshrc fluxbox.core .dmrc grub-0.95 .fluxbox grub-0.95-freebsd.diff .gconf grub-0.95-freebsd.diff?file_id=1886 .gconfd grub-0.95.tar.gz .gnome2 install .gnome2_private kfreebsd.diff .history kfreebsd.diff?file_id=9830 .k5login mbox .l3rc mymbr.img .lesshst passwd .lilalo s1 .login s2 .mozilla soft .profile w_d .prxbnzRcu w_v .ssh w_w You have new mail in /var/mail/root |
#ls .
-my .twm2U23SP .ICEauthority .viminfo .XSM-Default .vimrc .XSMlock-Default .xinitrc .Xauthority .xsession .bash_history .xsession-errors .bash_profile .xsmUpMmYE .bashrc .xsmrni9F1 .cshrc fluxbox.core .dmrc grub-0.95 ... .k5login mbox .l3rc mymbr.img .lesshst passwd .lilalo s1 .login s2 .mozilla soft .profile w_d .prxbnzRcu w_v .ssh w_w You have new mail in /var/mail/root |
#last
user ttyp3 192.168.16.204 Thu Mar 13 12:47 - 12:49 (00:02) root ttyp1 192.168.16.204 Thu Mar 13 12:45 still logged in root ttyp1 192.168.16.204 Thu Mar 13 07:26 - 11:47 (04:21) reboot ~ Thu Mar 13 07:25 shutdown ~ Wed Mar 12 18:37 user ttyp6 192.168.16.204 Wed Mar 12 12:50 - 15:29 (02:39) root ttyp3 debian4 Wed Mar 12 07:24 - 15:29 (08:05) root ttyp3 debian4 Tue Mar 11 14:08 - 07:23 (17:15) root :1 Tue Mar 11 07:36 - 14:06 (06:30) user ttyp3 localhost Mon Mar 10 16:32 - 16:32 (00:00) ... root ttyv0 Fri Dec 21 22:42 - 13:37 (14:55) reboot ~ Fri Dec 21 22:42 shutdown ~ Fri Dec 21 22:39 root ttyv0 Fri Dec 21 22:39 - 22:39 (00:00) reboot ~ Fri Dec 21 22:39 shutdown ~ Fri Dec 21 22:37 root ttyv0 Fri Dec 21 22:36 - 22:36 (00:00) root ttyv0 Fri Dec 21 21:24 - 22:36 (01:11) reboot ~ Fri Dec 21 21:23 wtmp begins Fri Dec 21 21:23:54 UTC 2007 |
#lastlog
[root@fbsd4:~]# last user ttyp3 192.168.16.204 Thu Mar 13 12:47 - 12:49 (00:02) root ttyp1 192.168.16.204 Thu Mar 13 12:45 still logged in root ttyp1 192.168.16.204 Thu Mar 13 07:26 - 11:47 (04:21) reboot ~ Thu Mar 13 07:25 shutdown ~ Wed Mar 12 18:37 user ttyp6 192.168.16.204 Wed Mar 12 12:50 - 15:29 (02:39) root ttyp3 debian4 Wed Mar 12 07:24 - 15:29 (08:05) root ttyp3 debian4 Tue Mar 11 14:08 - 07:23 (17:15) root :1 Tue Mar 11 07:36 - 14:06 (06:30) ... reboot ~ Fri Dec 21 22:42 shutdown ~ Fri Dec 21 22:39 root ttyv0 Fri Dec 21 22:39 - 22:39 (00:00) reboot ~ Fri Dec 21 22:39 shutdown ~ Fri Dec 21 22:37 root ttyv0 Fri Dec 21 22:36 - 22:36 (00:00) root ttyv0 Fri Dec 21 21:24 - 22:36 (01:11) reboot ~ Fri Dec 21 21:23 wtmp begins Fri Dec 21 21:23:54 UTC 2007 bash: lastlog: command not found |
#lastlog
[root@fbsd4:~]# last user ttyp3 192.168.16.204 Thu Mar 13 12:47 - 12:49 (00:02) root ttyp1 192.168.16.204 Thu Mar 13 12:45 still logged in root ttyp1 192.168.16.204 Thu Mar 13 07:26 - 11:47 (04:21) reboot ~ Thu Mar 13 07:25 shutdown ~ Wed Mar 12 18:37 user ttyp6 192.168.16.204 Wed Mar 12 12:50 - 15:29 (02:39) root ttyp3 debian4 Wed Mar 12 07:24 - 15:29 (08:05) root ttyp3 debian4 Tue Mar 11 14:08 - 07:23 (17:15) root :1 Tue Mar 11 07:36 - 14:06 (06:30) ... reboot ~ Fri Dec 21 22:42 shutdown ~ Fri Dec 21 22:39 root ttyv0 Fri Dec 21 22:39 - 22:39 (00:00) reboot ~ Fri Dec 21 22:39 shutdown ~ Fri Dec 21 22:37 root ttyv0 Fri Dec 21 22:36 - 22:36 (00:00) root ttyv0 Fri Dec 21 21:24 - 22:36 (01:11) reboot ~ Fri Dec 21 21:23 wtmp begins Fri Dec 21 21:23:54 UTC 2007 bash: lastlog: command not found |
#lastlog
bash: lastlog: command not found |
#lastbog
bash: lastblog: command not found |
#lastbog
bash: lastblog: command not found |
#lastbog
bash: lastblog: command not found |
#lastbl
bash: lastbl: command not found |
#lastbl
bash: lastbl: command not found |
#lastbl
bash: lastbl: command not found |
#lastlogin
root ttyp1 192.168.16.204 Thu Mar 13 12:45:45 2008 user ttyp3 192.168.16.204 Thu Mar 13 12:47:18 2008 |
#man last
|
#man last
|
#man lastlogin
|
#man lastlogin
|
#~cd /var/log/mail
bash: ~cd: command not found |
#cd /var/log/mail
[root@fbsd4:~]# ~cd /var/log/mail bash: ~cd: command not found bash: cd: /var/log/mail: No such file or directory |
#cd /var/log/mail
[root@fbsd4:~]# ~cd /var/log/mail bash: ~cd: command not found bash: cd: /var/log/mail: No such file or directory |
#cd /var/log/mail
[root@fbsd4:~]# ~cd /var/log/mail bash: ~cd: command not found bash: cd: /var/log/mail: No such file or directory |
#cd /var/log/mail
bash: cd: /var/log/mail: No such file or directory |
#cd /var/log/
|
#cd /var/log/
|
#cd /var/log/
|
#cd /var/log/
|
#ls
Xorg.0.log lpd-errs messages.1.bz2 sendmail.st.5 Xorg.0.log.old maillog mount.today sendmail.st.6 auth.log maillog.0.bz2 pf.today sendmail.st.7 cron maillog.1.bz2 ppp.log setuid.today cron.0.bz2 maillog.2.bz2 scrollkeeper.log setuid.yesterday cron.1.bz2 maillog.3.bz2 security slip.log cron.2.bz2 maillog.4.bz2 sendmail.st userlog debug.log maillog.5.bz2 sendmail.st.0 wtmp dmesg.today maillog.6.bz2 sendmail.st.1 xdm.log dmesg.yesterday maillog.7.bz2 sendmail.st.2 xferlog gdm messages sendmail.st.3 lastlog messages.0.bz2 sendmail.st.4 |
#ls
Xorg.0.log lpd-errs messages.1.bz2 sendmail.st.5 Xorg.0.log.old maillog mount.today sendmail.st.6 auth.log maillog.0.bz2 pf.today sendmail.st.7 cron maillog.1.bz2 ppp.log setuid.today cron.0.bz2 maillog.2.bz2 scrollkeeper.log setuid.yesterday cron.1.bz2 maillog.3.bz2 security slip.log cron.2.bz2 maillog.4.bz2 sendmail.st userlog debug.log maillog.5.bz2 sendmail.st.0 wtmp dmesg.today maillog.6.bz2 sendmail.st.1 xdm.log dmesg.yesterday maillog.7.bz2 sendmail.st.2 xferlog gdm messages sendmail.st.3 lastlog messages.0.bz2 sendmail.st.4 |
#ls
Xorg.0.log lpd-errs messages.1.bz2 sendmail.st.5 Xorg.0.log.old maillog mount.today sendmail.st.6 auth.log maillog.0.bz2 pf.today sendmail.st.7 cron maillog.1.bz2 ppp.log setuid.today cron.0.bz2 maillog.2.bz2 scrollkeeper.log setuid.yesterday cron.1.bz2 maillog.3.bz2 security slip.log cron.2.bz2 maillog.4.bz2 sendmail.st userlog debug.log maillog.5.bz2 sendmail.st.0 wtmp dmesg.today maillog.6.bz2 sendmail.st.1 xdm.log dmesg.yesterday maillog.7.bz2 sendmail.st.2 xferlog gdm messages sendmail.st.3 lastlog messages.0.bz2 sendmail.st.4 |
#ls
Xorg.0.log lpd-errs messages.1.bz2 sendmail.st.5 Xorg.0.log.old maillog mount.today sendmail.st.6 auth.log maillog.0.bz2 pf.today sendmail.st.7 cron maillog.1.bz2 ppp.log setuid.today cron.0.bz2 maillog.2.bz2 scrollkeeper.log setuid.yesterday cron.1.bz2 maillog.3.bz2 security slip.log cron.2.bz2 maillog.4.bz2 sendmail.st userlog debug.log maillog.5.bz2 sendmail.st.0 wtmp dmesg.today maillog.6.bz2 sendmail.st.1 xdm.log dmesg.yesterday maillog.7.bz2 sendmail.st.2 xferlog gdm messages sendmail.st.3 lastlog messages.0.bz2 sendmail.st.4 |
#cd /var/mail
|
#ls
[root@fbsd4:log]# cd /var/mail avahi gdm haldaemon messagebus polkit root user |
#ls
[root@fbsd4:log]# cd /var/mail avahi gdm haldaemon messagebus polkit root user |
#ls
avahi gdm haldaemon messagebus polkit root user |
#ls -.
ls: illegal option -- . usage: ls [-ABCFGHILPRSTUWZabcdfghiklmnopqrstuwx1] [file ...] |
#ls -.
ls: illegal option -- . usage: ls [-ABCFGHILPRSTUWZabcdfghiklmnopqrstuwx1] [file ...] |
#ls -.
ls: illegal option -- . usage: ls [-ABCFGHILPRSTUWZabcdfghiklmnopqrstuwx1] [file ...] |
#ls -li
total 40 25435 -rw------- 1 avahi avahi 0 Dec 22 16:41 avahi 25809 -rw------- 1 gdm gdm 0 Dec 23 01:42 gdm 25130 -rw------- 1 haldaemon haldaemon 0 Dec 22 11:46 haldaemon 25084 -rw------- 1 messagebus messagebus 0 Dec 22 11:29 messagebus 25107 -rw------- 1 polkit polkit 0 Dec 22 11:41 polkit 24122 -rw------- 1 root wheel 39670 Mar 14 03:05 root 25255 -rw------- 1 user wheel 0 Dec 23 11:36 user |
#ls -li
total 40 25435 -rw------- 1 avahi avahi 0 Dec 22 16:41 avahi 25809 -rw------- 1 gdm gdm 0 Dec 23 01:42 gdm 25130 -rw------- 1 haldaemon haldaemon 0 Dec 22 11:46 haldaemon 25084 -rw------- 1 messagebus messagebus 0 Dec 22 11:29 messagebus 25107 -rw------- 1 polkit polkit 0 Dec 22 11:41 polkit 24122 -rw------- 1 root wheel 39670 Mar 14 03:05 root 25255 -rw------- 1 user wheel 0 Dec 23 11:36 user |
#ls -li
total 40 25435 -rw------- 1 avahi avahi 0 Dec 22 16:41 avahi 25809 -rw------- 1 gdm gdm 0 Dec 23 01:42 gdm 25130 -rw------- 1 haldaemon haldaemon 0 Dec 22 11:46 haldaemon 25084 -rw------- 1 messagebus messagebus 0 Dec 22 11:29 messagebus 25107 -rw------- 1 polkit polkit 0 Dec 22 11:41 polkit 24122 -rw------- 1 root wheel 39670 Mar 14 03:05 root 25255 -rw------- 1 user wheel 0 Dec 23 11:36 user |
#vim root
|
#pw
702 Subject: fbsd4.unix.nt security run output 703 Status: O 704 705 706 Checking setuid files and devices: 707 708 Checking for uids of 0: 709 root 0 of daily output -- 710 toor 0 711 ... 727 by fbsd4.unix.nt (8.14.1/8.14.1/Submit) id m2A32jWS008689 698 Date: Mon, 10 Mar 2008 03:02:43 GMT 728 for root; Mon, 10 Mar 2008 03:02:45 GMT 699 From: Charlie Root <root@fbsd4.unix.nt> usage: 700 Message-Id: <200803100302.m2A32h1D008640@fbsd4.unix.nt> pw [user|group|lock|unlock] [add|del|mod|show|next] [help|switches/values] 701 To: root@fbsd4.unix.nt 702 Subject: fbsd4.unix.nt security run output 703 Status: O |
#pw
702 Subject: fbsd4.unix.nt security run output 703 Status: O 704 705 706 Checking setuid files and devices: 707 708 Checking for uids of 0: 709 root 0 of daily output -- 710 toor 0 711 ... 727 by fbsd4.unix.nt (8.14.1/8.14.1/Submit) id m2A32jWS008689 698 Date: Mon, 10 Mar 2008 03:02:43 GMT 728 for root; Mon, 10 Mar 2008 03:02:45 GMT 699 From: Charlie Root <root@fbsd4.unix.nt> usage: 700 Message-Id: <200803100302.m2A32h1D008640@fbsd4.unix.nt> pw [user|group|lock|unlock] [add|del|mod|show|next] [help|switches/values] 701 To: root@fbsd4.unix.nt 702 Subject: fbsd4.unix.nt security run output 703 Status: O |
#pw
702 Subject: fbsd4.unix.nt security run output 703 Status: O 704 705 706 Checking setuid files and devices: 707 708 Checking for uids of 0: 709 root 0 of daily output -- 710 toor 0 711 ... 727 by fbsd4.unix.nt (8.14.1/8.14.1/Submit) id m2A32jWS008689 698 Date: Mon, 10 Mar 2008 03:02:43 GMT 728 for root; Mon, 10 Mar 2008 03:02:45 GMT 699 From: Charlie Root <root@fbsd4.unix.nt> usage: 700 Message-Id: <200803100302.m2A32h1D008640@fbsd4.unix.nt> pw [user|group|lock|unlock] [add|del|mod|show|next] [help|switches/values] 701 To: root@fbsd4.unix.nt 702 Subject: fbsd4.unix.nt security run output 703 Status: O |
#pw
702 Subject: fbsd4.unix.nt security run output 703 Status: O 704 705 706 Checking setuid files and devices: 707 708 Checking for uids of 0: 709 root 0 of daily output -- 710 toor 0 711 ... 727 by fbsd4.unix.nt (8.14.1/8.14.1/Submit) id m2A32jWS008689 698 Date: Mon, 10 Mar 2008 03:02:43 GMT 728 for root; Mon, 10 Mar 2008 03:02:45 GMT 699 From: Charlie Root <root@fbsd4.unix.nt> usage: 700 Message-Id: <200803100302.m2A32h1D008640@fbsd4.unix.nt> pw [user|group|lock|unlock] [add|del|mod|show|next] [help|switches/values] 701 To: root@fbsd4.unix.nt 702 Subject: fbsd4.unix.nt security run output 703 Status: O |
#pw
usage: pw [user|group|lock|unlock] [add|del|mod|show|next] [help|switches/values] |
#vipw
daemon:*:1:1::0:0:Owner of many system processes:/root:/usr/sbin/nologin operator:*:2:5::0:0:System &:/:/usr/sbin/nologin bin:*:3:7::0:0:Binaries Commands and Source:/:/usr/sbin/nologin tty:*:4:65533::0:0:Tty Sandbox:/:/usr/sbin/nologin kmem:*:5:65533::0:0:KMem Sandbox:/:/usr/sbin/nologin games:*:7:13::0:0:Games pseudo-user:/usr/games:/usr/sbin/nologin news:*:8:8::0:0:News Subsystem:/:/usr/sbin/nologin man:*:9:9::0:0:Mister Man Pages:/usr/share/man:/usr/sbin/nologin sshd:*:22:22::0:0:Secure Shell Daemon:/var/empty:/usr/sbin/nologin smmsp:*:25:25::0:0:Sendmail Submission User:/var/spool/clientmqueue:/usr/sbin/nologin ... ~ ~ ~ ~ ~ ~ ~ /etc/pw.gb4r32: 29 lines, 1898 characters . vipw: password list updated |
#ssh user@127.0.0.1
sshd:*:22:22::0:0:Secure Shell Daemon:/var/empty:/usr/sbin/nologin smmsp:*:25:25::0:0:Sendmail Submission User:/var/spool/clientmqueue:/usr/sbin/nologin mailnull:*:26:26::0:0:Sendmail Default User:/var/spool/mqueue:/usr/sbin/nologin bind:*:53:53::0:0:Bind Sandbox:/:/usr/sbin/nologin proxy:*:62:62::0:0:Packet Filter pseudo-user:/nonexistent:/usr/sbin/nologin _pflogd:*:64:64::0:0:pflogd privsep user:/var/empty:/usr/sbin/nologin _dhcp:*:65:65::0:0:dhcp programs:/var/empty:/usr/sbin/nologin uucp:*:66:66::0:0:UUCP pseudo-user:/var/spool/uucppublic:/usr/local/libexec/uucp/uucico pop:*:68:6::0:0:Post Office Owner:/nonexistent:/usr/sbin/nologin www:*:80:80::0:0:World Wide Web Owner:/nonexistent:/usr/sbin/nologin ... ~ ~ ~ /etc/pw.gb4r32: 29 lines, 1898 characters . vipw: password list updated Password: Password: Password: Permission denied (publickey,keyboard-interactive). |
#ssh user@127.0.0.1
sshd:*:22:22::0:0:Secure Shell Daemon:/var/empty:/usr/sbin/nologin smmsp:*:25:25::0:0:Sendmail Submission User:/var/spool/clientmqueue:/usr/sbin/nologin mailnull:*:26:26::0:0:Sendmail Default User:/var/spool/mqueue:/usr/sbin/nologin bind:*:53:53::0:0:Bind Sandbox:/:/usr/sbin/nologin proxy:*:62:62::0:0:Packet Filter pseudo-user:/nonexistent:/usr/sbin/nologin _pflogd:*:64:64::0:0:pflogd privsep user:/var/empty:/usr/sbin/nologin _dhcp:*:65:65::0:0:dhcp programs:/var/empty:/usr/sbin/nologin uucp:*:66:66::0:0:UUCP pseudo-user:/var/spool/uucppublic:/usr/local/libexec/uucp/uucico pop:*:68:6::0:0:Post Office Owner:/nonexistent:/usr/sbin/nologin www:*:80:80::0:0:World Wide Web Owner:/nonexistent:/usr/sbin/nologin ... ~ ~ ~ /etc/pw.gb4r32: 29 lines, 1898 characters . vipw: password list updated Password: Password: Password: Permission denied (publickey,keyboard-interactive). |
#ssh user@127.0.0.1
Password: Password: Password: Permission denied (publickey,keyboard-interactive). |
#vipw
daemon:*:1:1::0:0:Owner of many system processes:/root:/usr/sbin/nologin operator:*:2:5::0:0:System &:/:/usr/sbin/nologin bin:*:3:7::0:0:Binaries Commands and Source:/:/usr/sbin/nologin tty:*:4:65533::0:0:Tty Sandbox:/:/usr/sbin/nologin kmem:*:5:65533::0:0:KMem Sandbox:/:/usr/sbin/nologin games:*:7:13::0:0:Games pseudo-user:/usr/games:/usr/sbin/nologin news:*:8:8::0:0:News Subsystem:/:/usr/sbin/nologin man:*:9:9::0:0:Mister Man Pages:/usr/share/man:/usr/sbin/nologin sshd:*:22:22::0:0:Secure Shell Daemon:/var/empty:/usr/sbin/nologin smmsp:*:25:25::0:0:Sendmail Submission User:/var/spool/clientmqueue:/usr/sbin/nologin ... ~ ~ ~ ~ ~ ~ ~ /etc/pw.VdcrRW: 29 lines, 1897 characters . vipw: password list updated |
#ssh user@127.0.0.1
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. o The Handbook and FAQ documents are at http://www.FreeBSD.org/ and, 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. Removing stale pidfile |
#ssh user@127.0.0.1
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. o The Handbook and FAQ documents are at http://www.FreeBSD.org/ and, 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. Removing stale pidfile |
#ssh user@127.0.0.1
Password: Last login: Thu Mar 13 12:47:18 2008 from 192.168.16.204 Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 7.0-CURRENT-200710 (GENERIC) #0: Thu Oct 11 06:53:50 UTC 2007 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 |
$exit
exit Connection to 127.0.0.1 closed. |
#cd ~
[user@fbsd4:~]$ exit exit Connection to 127.0.0.1 closed. |
#cd ~
[user@fbsd4:~]$ exit exit Connection to 127.0.0.1 closed. |
#cd ~
[user@fbsd4:~]$ exit exit Connection to 127.0.0.1 closed. |
#cd ~
|
#ls .
-my .twm2U23SP .ICEauthority .viminfo .XSM-Default .vimrc .XSMlock-Default .xinitrc .Xauthority .xsession .bash_history .xsession-errors .bash_profile .xsmUpMmYE .bashrc .xsmrni9F1 .cshrc fluxbox.core .dmrc grub-0.95 ... .history kfreebsd.diff?file_id=9830 .k5login mbox .l3rc mymbr.img .lesshst passwd .lilalo s1 .login s2 .mozilla soft .profile w_d .prxbnzRcu w_v .ssh w_w |
#ls .
-my .twm2U23SP .ICEauthority .viminfo .XSM-Default .vimrc .XSMlock-Default .xinitrc .Xauthority .xsession .bash_history .xsession-errors .bash_profile .xsmUpMmYE .bashrc .xsmrni9F1 .cshrc fluxbox.core .dmrc grub-0.95 ... .history kfreebsd.diff?file_id=9830 .k5login mbox .l3rc mymbr.img .lesshst passwd .lilalo s1 .login s2 .mozilla soft .profile w_d .prxbnzRcu w_v .ssh w_w |
#ls .
-my .twm2U23SP .ICEauthority .viminfo .XSM-Default .vimrc .XSMlock-Default .xinitrc .Xauthority .xsession .bash_history .xsession-errors .bash_profile .xsmUpMmYE .bashrc .xsmrni9F1 .cshrc fluxbox.core .dmrc grub-0.95 ... .history kfreebsd.diff?file_id=9830 .k5login mbox .l3rc mymbr.img .lesshst passwd .lilalo s1 .login s2 .mozilla soft .profile w_d .prxbnzRcu w_v .ssh w_w |
#ls .
-my .twm2U23SP .ICEauthority .viminfo .XSM-Default .vimrc .XSMlock-Default .xinitrc .Xauthority .xsession .bash_history .xsession-errors .bash_profile .xsmUpMmYE .bashrc .xsmrni9F1 .cshrc fluxbox.core .dmrc grub-0.95 ... .history kfreebsd.diff?file_id=9830 .k5login mbox .l3rc mymbr.img .lesshst passwd .lilalo s1 .login s2 .mozilla soft .profile w_d .prxbnzRcu w_v .ssh w_w |
#cat ~/mymotd
cat: /root/mymotd: No such file or directory |
#cp /etc/motd ~/mytd
[root@fbsd4:~]# cat ~/mymotd cat: /root/mymotd: No such file or directory |
#cp /etc/motd ~/mytd
|
#cat ~/mymotd
FreeBSD 7.0-CURRENT-200710 (GENERIC) #0: Thu Oct 11 06:53:50 UTC 2007 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. o The Handbook and FAQ documents are at http://www.FreeBSD.org/ and, 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. |
#ee
|
#ee
|
#ee
|
#ee
|
#ee mymotd
--- /tmp/l3-saved-4588.14344.15437 2008-03-14 10:20:14.000000000 +0000 +++ mymotd 2008-03-14 10:21:17.000000000 +0000 @@ -2,23 +2,4 @@ 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. - -o The Handbook and FAQ documents are at http://www.FreeBSD.org/ and, - 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. - +You are root!!! |
#cp ~/mymotd /etc/motd
^u end of file ^a begin of line ^w delete word ^b back 1 char ^t begin of file ^e end of line ^r restore word ^f forward 1 char ^c command ^d delete char ^j undelete char ^z next word L: 5 C: 16 ==================================================================== FreeBSD 7.0-CURRENT-200710 (GENERIC) #0: Thu Oct 11 06:53:50 UTC 2007 Welcome to FreeBSD! You are root!!! "mymotd" 5 lines, 108 characters |
#cp ~/mymotd /etc/motd
|
#chfn user
Gid [# or name]: 0 Change [month day year]: Expire [month day year]: Class: Home directory: /home/user Shell: /usr/local/bin/bash Full Name: User Office Location:666 Office Phone:238-08-80 Home Phone: ... ~ ~ ~ ~ ~ ~ ~ /etc/pw.gX81Vz: 15 lines, 339 characters . chfn: user information updated |
#chfn user
Gid [# or name]: 0 Change [month day year]: Expire [month day year]: Class: Home directory: /home/user Shell: /usr/local/bin/bash Full Name: User Office Location:666 Office Phone:238-08-80 Home Phone: ... ~ ~ ~ ~ ~ ~ ~ /etc/pw.gX81Vz: 15 lines, 339 characters . chfn: user information updated |
#less /etc/passwd
|
#adduser 123
[root@fbsd4:~]# less /etc/passwd # $FreeBSD: src/etc/master.passwd,v 1.40 2005/06/06 20:19:56 brooks Exp $ # root:*:0:0:Charlie &:/root:/usr/local/bin/bash toor:*:0:0:Bourne-again Superuser:/root: daemon:*:1:1:Owner of many system processes:/root:/usr/sbin/nologin operator:*:2:5:System &:/:/usr/sbin/nologin bin:*:3:7:Binaries Commands and Source:/:/usr/sbin/nologin tty:*:4:65533:Tty Sandbox:/:/usr/sbin/nologin kmem:*:5:65533:KMem Sandbox:/:/usr/sbin/nologin ... Uid : 1002 Class : Groups : 123 Home : /home/123 Shell : /bin/sh Locked : no OK? (yes/no): y adduser: INFO: Successfully added (123) to the user database. Add another user? (yes/no): n Goodbye! |
#adduser 123
Username: 123 Full name: Uid (Leave empty for default): Login group [123]: Login group is 123. Invite 123 into other groups? []: Login class [default]: Shell (sh csh tcsh bash rbash nologin) [sh]: Home directory [/home/123]: Use password-based authentication? [yes]: Use an empty password? (yes/no) [no]: ... Uid : 1002 Class : Groups : 123 Home : /home/123 Shell : /bin/sh Locked : no OK? (yes/no): y adduser: INFO: Successfully added (123) to the user database. Add another user? (yes/no): n Goodbye! |
FreeBSD 7.0-CURRENT-200710 (GENERIC) #0: Thu Oct 11 06:53:50 UTC 2007 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. o The Handbook and FAQ documents are at http://www.FreeBSD.org/ and, 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.
Время первой команды журнала | 14:49:33 2008- 3-13 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 12:25:43 2008- 3-14 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 25.74 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 10.89 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 0.99 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 1.69 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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