/l3/users/11-03-2008/nt-fbsdadm/fbsd4.unix.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 |
|
#chmod a+x /usr/local/bin/l3-agent
|
#. /usr/local/bin/l3-agent
bash: use: command not found bash: use: command not found bash: use: command not found bash: use: command not found bash: use: command not found bash: use: command not found bash: use: command not found bash: use: command not found bash: our: command not found bash: our: command not found ... bash: sub: command not found bash: sub: command not found bash: sub: command not found bash: sub: command not found bash: sub: command not found bash: sub: command not found bash: sub: command not found bash: sub: command not found bash: /usr/local/bin/l3-agent: line 54: syntax error near unexpected token `$path' bash: /usr/local/bin/l3-agent: line 54: ` for my $path (@pathes) {' |
#. /usr/local/bin/l3-agent
bash: use: command not found bash: use: command not found bash: use: command not found bash: use: command not found bash: use: command not found bash: use: command not found bash: use: command not found bash: use: command not found bash: our: command not found bash: our: command not found ... bash: sub: command not found bash: sub: command not found bash: sub: command not found bash: sub: command not found bash: sub: command not found bash: sub: command not found bash: sub: command not found bash: sub: command not found bash: /usr/local/bin/l3-agent: line 54: syntax error near unexpected token `$path' bash: /usr/local/bin/l3-agent: line 54: ` for my $path (@pathes) {' |
#. .bash_profile
|
#ssh 127.0.0.1 -l user
[root@fbsd4:~]# . .bash_profile The authenticity of host '127.0.0.1 (127.0.0.1)' can't be established. DSA key fingerprint is 87:e7:cb:b2:03:ad:bc:da:b2:8a:6f:0f:ad:7c:8f:a2. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '127.0.0.1' (DSA) to the list of known hosts. Password: Last login: Fri Mar 7 16:39:59 2008 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 ... 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. |
#ssh 127.0.0.1 -l user
The authenticity of host '127.0.0.1 (127.0.0.1)' can't be established. DSA key fingerprint is 87:e7:cb:b2:03:ad:bc:da:b2:8a:6f:0f:ad:7c:8f:a2. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '127.0.0.1' (DSA) to the list of known hosts. Password: Last login: Fri Mar 7 16:39:59 2008 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! ... 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. |
$id
uid=1001(user) gid=0(wheel) groups=0(wheel) |
$id
uid=1001(user) gid=0(wheel) groups=0(wheel) |
$ls -l
total 2976 -rw------- 1 user wheel 3018752 Mar 7 16:40 fluxbox.core |
$l3-agent
[user@fbsd4:~]$ ls -l total 2976 -rw------- 1 user wheel 3018752 Mar 7 16:40 fluxbox.core l3-agent is already running: pid=10753; pidfile=/home/user/.lilalo/l3-agent.pid |
$l3-agent
l3-agent is already running: pid=10753; pidfile=/home/user/.lilalo/l3-agent.pid |
$exit
exit Connection to 127.0.0.1 closed. |
#w
[user@fbsd4:~]$ exit exit Connection to 127.0.0.1 closed. 4:32PM up 2 days, 22:39, 1 user, load averages: 0.00, 0.00, 0.00 USER TTY FROM LOGIN@ IDLE WHAT root p1 debian 4:30PM - script -t 0 -q /root/.lilalo//18178185672099616229-120 |
#w
4:32PM up 2 days, 22:39, 1 user, load averages: 0.00, 0.00, 0.00 USER TTY FROM LOGIN@ IDLE WHAT root p1 debian 4:30PM - script -t 0 -q /root/.lilalo//18178185672099616229-120 |
#ifconfig
re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=9b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM> ether 00:16:3e:03:00:c5 inet 192.168.16.24 netmask 0xffffff00 broadcast 192.168.16.255 media: Ethernet autoselect (100baseTX <full-duplex>) status: active plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> metric 0 mtu 1500 lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 |
#ifconfig
re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=9b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM> ether 00:16:3e:03:00:c5 inet 192.168.16.24 netmask 0xffffff00 broadcast 192.168.16.255 media: Ethernet autoselect (100baseTX <full-duplex>) status: active plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> metric 0 mtu 1500 lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 |
#mc
|
#cd /etc
[root@fbsd4:~]# mc bash: mc: command not found |
#cd /etc
|
#ls
X11 locate.rc profile aliases login.access protocols amd.map login.conf pwd.db apmd.conf login.conf.db rc auth.conf mac.conf rc.bsdextended bluetooth mail rc.conf cached.conf mail.rc rc.d crontab make.conf rc.firewall csh.cshrc manpath.config rc.firewall6 csh.login manpath.config.bak rc.initdiskless ... host.conf pam.d spwd.db hostid passwd ssh hosts pccard_ether ssl hosts.allow periodic sysctl.conf hosts.equiv pf.conf syslog.conf hosts.lpd pf.os termcap inetd.conf phones ttys isdn portsnap.conf zfs libalias.conf ppp lilalo printcap |
#ls
X11 locate.rc profile aliases login.access protocols amd.map login.conf pwd.db apmd.conf login.conf.db rc auth.conf mac.conf rc.bsdextended bluetooth mail rc.conf cached.conf mail.rc rc.d crontab make.conf rc.firewall csh.cshrc manpath.config rc.firewall6 csh.login manpath.config.bak rc.initdiskless ... host.conf pam.d spwd.db hostid passwd ssh hosts pccard_ether ssl hosts.allow periodic sysctl.conf hosts.equiv pf.conf syslog.conf hosts.lpd pf.os termcap inetd.conf phones ttys isdn portsnap.conf zfs libalias.conf ppp lilalo printcap |
#ee ntp.conf
|
#ls
gss opiekeys snmpd.config host.conf pam.d spwd.db hostid passwd ssh hosts pccard_ether ssl hosts.allow periodic sysctl.conf hosts.equiv pf.conf syslog.conf hosts.lpd pf.os termcap inetd.conf phones ttys isdn portsnap.conf zfs libalias.conf ppp lilalo printcap |
#ls
X11 locate.rc profile aliases login.access protocols amd.map login.conf pwd.db apmd.conf login.conf.db rc auth.conf mac.conf rc.bsdextended bluetooth mail rc.conf cached.conf mail.rc rc.d crontab make.conf rc.firewall csh.cshrc manpath.config rc.firewall6 csh.login manpath.config.bak rc.initdiskless ... host.conf pam.d spwd.db hostid passwd ssh hosts pccard_ether ssl hosts.allow periodic sysctl.conf hosts.equiv pf.conf syslog.conf hosts.lpd pf.os termcap inetd.conf phones ttys isdn portsnap.conf zfs libalias.conf ppp lilalo printcap |
#cd ntp
|
#ls
[root@fbsd4:etc]# cd ntp |
#ls
|
#cd ..
|
#cd ..
|
#ee resolve.conf
|
#ls
gss opiekeys snmpd.config host.conf pam.d spwd.db hostid passwd ssh hosts pccard_ether ssl hosts.allow periodic sysctl.conf hosts.equiv pf.conf syslog.conf hosts.lpd pf.os termcap inetd.conf phones ttys isdn portsnap.conf zfs libalias.conf ppp lilalo printcap |
#ls
X11 locate.rc profile aliases login.access protocols amd.map login.conf pwd.db apmd.conf login.conf.db rc auth.conf mac.conf rc.bsdextended bluetooth mail rc.conf cached.conf mail.rc rc.d crontab make.conf rc.firewall csh.cshrc manpath.config rc.firewall6 csh.login manpath.config.bak rc.initdiskless ... host.conf pam.d spwd.db hostid passwd ssh hosts pccard_ether ssl hosts.allow periodic sysctl.conf hosts.equiv pf.conf syslog.conf hosts.lpd pf.os termcap inetd.conf phones ttys isdn portsnap.conf zfs libalias.conf ppp lilalo printcap |
#ee resolv.conf
|
#ee rc.conf
--- /tmp/l3-saved-13605.11173.26569 2008-03-11 12:42:41.000000000 +0000 +++ rc.conf 2008-03-11 12:43:32.000000000 +0000 @@ -4,6 +4,7 @@ # Enable network daemons for user convenience. # Please make all changes to this file, not to /etc/defaults/rc.conf. # This file now contains just the overrides from /etc/defaults/rc.conf. + font8x14="NO" font8x16="NO" font8x8="NO" @@ -11,6 +12,7 @@ sshd_enable="YES" inetd_enable="YES" #gdm_enable="YES" + ifconfig_re0="inet 192.168.16.24 netmask 255.255.255.0" defaultrouter="192.168.16.254" hostname="fbsd4.unix.nt" |
#ee rc.conf
|
#ee
|
#ee
|
#ee
|
#ee
|
#ee
|
#ee
|
#iifconfig
bash: iifconfig: command not found |
#ifconfig
[root@fbsd4:etc]# iifconfig bash: iifconfig: command not found re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=9b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM> ether 00:16:3e:03:00:c5 inet 192.168.16.24 netmask 0xffffff00 broadcast 192.168.16.255 media: Ethernet autoselect (100baseTX <full-duplex>) status: active plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> metric 0 mtu 1500 lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 |
#ifconfig
re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=9b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM> ether 00:16:3e:03:00:c5 inet 192.168.16.24 netmask 0xffffff00 broadcast 192.168.16.255 media: Ethernet autoselect (100baseTX <full-duplex>) status: active plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> metric 0 mtu 1500 lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 |
# ee ee ee ee ee eeifconfig
|
#cat -n ifconfig
[root@fbsd4:etc]# ee ee ee ee ee eeifconfig cat: ifconfig: No such file or directory |
#cat -n ifconfig
cat: ifconfig: No such file or directory |
#cat ifconfig
cat: ifconfig: No such file or directory |
#cat ifconfig
cat: ifconfig: No such file or directory |
#ls
X11 locate.rc profile aliases login.access protocols amd.map login.conf pwd.db apmd.conf login.conf.db rc auth.conf mac.conf rc.bsdextended bluetooth mail rc.conf cached.conf mail.rc rc.d crontab make.conf rc.firewall csh.cshrc manpath.config rc.firewall6 csh.login manpath.config.bak rc.initdiskless ... host.conf pam.d spwd.db hostid passwd ssh hosts pccard_ether ssl hosts.allow periodic sysctl.conf hosts.equiv pf.conf syslog.conf hosts.lpd pf.os termcap inetd.conf phones ttys isdn portsnap.conf zfs libalias.conf ppp lilalo printcap |
#ls
X11 locate.rc profile aliases login.access protocols amd.map login.conf pwd.db apmd.conf login.conf.db rc auth.conf mac.conf rc.bsdextended bluetooth mail rc.conf cached.conf mail.rc rc.d crontab make.conf rc.firewall csh.cshrc manpath.config rc.firewall6 csh.login manpath.config.bak rc.initdiskless ... host.conf pam.d spwd.db hostid passwd ssh hosts pccard_ether ssl hosts.allow periodic sysctl.conf hosts.equiv pf.conf syslog.conf hosts.lpd pf.os termcap inetd.conf phones ttys isdn portsnap.conf zfs libalias.conf ppp lilalo printcap |
#cat -n log.conf
1 # $FreeBSD: src/etc/syslog.conf,v 1.28 2005/03/12 12:31:16 glebius Exp $ 2 # 3 # Spaces ARE valid field separators in this file. However, 4 # other *nix-like systems still insist on using tabs as field 5 # separators. If you are sharing this file between systems, you 6 # may want to use only tabs as field separators here. 7 # Consult the syslog.conf(5) manpage. 8 *.err;kern.warning;auth.notice;mail.crit /dev/console 9 *.notice;authpriv.none;kern.debug;lpr.info;mail.crit;news.err /var/log/messages 10 security.* /var/log/security ... 23 # uncomment this to enable logging to a remote loghost named loghost 24 #*.* @loghost 25 # uncomment these if you're running inn 26 # news.crit /var/log/news/news.crit 27 # news.err /var/log/news/news.err 28 # news.notice /var/log/news/news.notice 29 !startslip 30 *.* /var/log/slip.log 31 !ppp 32 *.* /var/log/ppp.log |
#cat -bsyslog.conf
[root@fbsd4:etc]# cat -n log.conf 1 # $FreeBSD: src/etc/syslog.conf,v 1.28 2005/03/12 12:31:16 glebius Exp $ 2 # 3 # Spaces ARE valid field separators in this file. However, 4 # other *nix-like systems still insist on using tabs as field 5 # separators. If you are sharing this file between systems, you 6 # may want to use only tabs as field separators here. 7 # Consult the syslog.conf(5) manpage. 8 *.err;kern.warning;auth.notice;mail.crit /dev/console 9 *.notice;authpriv.none;kern.debug;lpr.info;mail.crit;news.err /var/log/messages ... 23 # uncomment this to enable logging to a remote loghost named loghost 24 #*.* @loghost 25 # uncomment these if you're running inn 26 # news.crit /var/log/news/news.crit 27 # news.err /var/log/news/news.err 28 # news.notice /var/log/news/news.notice 29 !startslip 30 *.* /var/log/slip.log 31 !ppp 32 *.* /var/log/ppp.log |
#cat -bsyslog.conf
1 # $FreeBSD: src/etc/syslog.conf,v 1.28 2005/03/12 12:31:16 glebius Exp $ 2 # 3 # Spaces ARE valid field separators in this file. However, 4 # other *nix-like systems still insist on using tabs as field 5 # separators. If you are sharing this file between systems, you 6 # may want to use only tabs as field separators here. 7 # Consult the syslog.conf(5) manpage. 8 *.err;kern.warning;auth.notice;mail.crit /dev/console 9 *.notice;authpriv.none;kern.debug;lpr.info;mail.crit;news.err /var/log/messages 10 security.* /var/log/security ... 23 # uncomment this to enable logging to a remote loghost named loghost 24 #*.* @loghost 25 # uncomment these if you're running inn 26 # news.crit /var/log/news/news.crit 27 # news.err /var/log/news/news.err 28 # news.notice /var/log/news/news.notice 29 !startslip 30 *.* /var/log/slip.log 31 !ppp 32 *.* /var/log/ppp.log |
#cat -b syslog.conf
1 # $FreeBSD: src/etc/syslog.conf,v 1.28 2005/03/12 12:31:16 glebius Exp $ 2 # 3 # Spaces ARE valid field separators in this file. However, 4 # other *nix-like systems still insist on using tabs as field 5 # separators. If you are sharing this file between systems, you 6 # may want to use only tabs as field separators here. 7 # Consult the syslog.conf(5) manpage. 8 *.err;kern.warning;auth.notice;mail.crit /dev/console 9 *.notice;authpriv.none;kern.debug;lpr.info;mail.crit;news.err /var/log/messages 10 security.* /var/log/security ... 23 # uncomment this to enable logging to a remote loghost named loghost 24 #*.* @loghost 25 # uncomment these if you're running inn 26 # news.crit /var/log/news/news.crit 27 # news.err /var/log/news/news.err 28 # news.notice /var/log/news/news.notice 29 !startslip 30 *.* /var/log/slip.log 31 !ppp 32 *.* /var/log/ppp.log |
#cat -b syslog.conf
1 # $FreeBSD: src/etc/syslog.conf,v 1.28 2005/03/12 12:31:16 glebius Exp $ 2 # 3 # Spaces ARE valid field separators in this file. However, 4 # other *nix-like systems still insist on using tabs as field 5 # separators. If you are sharing this file between systems, you 6 # may want to use only tabs as field separators here. 7 # Consult the syslog.conf(5) manpage. 8 *.err;kern.warning;auth.notice;mail.crit /dev/console 9 *.notice;authpriv.none;kern.debug;lpr.info;mail.crit;news.err /var/log/messages 10 security.* /var/log/security ... 23 # uncomment this to enable logging to a remote loghost named loghost 24 #*.* @loghost 25 # uncomment these if you're running inn 26 # news.crit /var/log/news/news.crit 27 # news.err /var/log/news/news.err 28 # news.notice /var/log/news/news.notice 29 !startslip 30 *.* /var/log/slip.log 31 !ppp 32 *.* /var/log/ppp.log |
#cat -b syslog.conf
1 # $FreeBSD: src/etc/syslog.conf,v 1.28 2005/03/12 12:31:16 glebius Exp $ 2 # 3 # Spaces ARE valid field separators in this file. However, 4 # other *nix-like systems still insist on using tabs as field 5 # separators. If you are sharing this file between systems, you 6 # may want to use only tabs as field separators here. 7 # Consult the syslog.conf(5) manpage. 8 *.err;kern.warning;auth.notice;mail.crit /dev/console 9 *.notice;authpriv.none;kern.debug;lpr.info;mail.crit;news.err /var/log/messages 10 security.* /var/log/security ... 23 # uncomment this to enable logging to a remote loghost named loghost 24 #*.* @loghost 25 # uncomment these if you're running inn 26 # news.crit /var/log/news/news.crit 27 # news.err /var/log/news/news.err 28 # news.notice /var/log/news/news.notice 29 !startslip 30 *.* /var/log/slip.log 31 !ppp 32 *.* /var/log/ppp.log |
#cat -n syslog.conf
[root@fbsd4:etc]# cat -b syslog.conf 1 # $FreeBSD: src/etc/syslog.conf,v 1.28 2005/03/12 12:31:16 glebius Exp $ 2 # 3 # Spaces ARE valid field separators in this file. However, 4 # other *nix-like systems still insist on using tabs as field 5 # separators. If you are sharing this file between systems, you 6 # may want to use only tabs as field separators here. 7 # Consult the syslog.conf(5) manpage. 8 *.err;kern.warning;auth.notice;mail.crit /dev/console 9 *.notice;authpriv.none;kern.debug;lpr.info;mail.crit;news.err /var/log/messages ... 23 # uncomment this to enable logging to a remote loghost named loghost 24 #*.* @loghost 25 # uncomment these if you're running inn 26 # news.crit /var/log/news/news.crit 27 # news.err /var/log/news/news.err 28 # news.notice /var/log/news/news.notice 29 !startslip 30 *.* /var/log/slip.log 31 !ppp 32 *.* /var/log/ppp.log |
#cat -n syslog.conf
1 # $FreeBSD: src/etc/syslog.conf,v 1.28 2005/03/12 12:31:16 glebius Exp $ 2 # 3 # Spaces ARE valid field separators in this file. However, 4 # other *nix-like systems still insist on using tabs as field 5 # separators. If you are sharing this file between systems, you 6 # may want to use only tabs as field separators here. 7 # Consult the syslog.conf(5) manpage. 8 *.err;kern.warning;auth.notice;mail.crit /dev/console 9 *.notice;authpriv.none;kern.debug;lpr.info;mail.crit;news.err /var/log/messages 10 security.* /var/log/security ... 23 # uncomment this to enable logging to a remote loghost named loghost 24 #*.* @loghost 25 # uncomment these if you're running inn 26 # news.crit /var/log/news/news.crit 27 # news.err /var/log/news/news.err 28 # news.notice /var/log/news/news.notice 29 !startslip 30 *.* /var/log/slip.log 31 !ppp 32 *.* /var/log/ppp.log |
#less g.conf
|
#cd /
*.err;kern.warning;auth.notice;mail.crit /dev/console *.notice;authpriv.none;kern.debug;lpr.info;mail.crit;news.err /var/log/message s # $FreeBSD: src/etc/syslog.conf,v 1.28 2005/03/12 12:31:16 glebius Exp $ # [root@fbsd4:etc]# less g.conf # $FreeBSD: src/etc/syslog.conf,v 1.28 2005/03/12 12:31:16 glebius Exp $ # # Spaces ARE valid field separators in this file. However, # other *nix-like systems still insist on using tabs as field ... *.* /var/log/slip.log # uncomment this to log all writes to /dev/console to /var/log/console.log !ppp #console.info /var/log/console.log *.* /var/log/ppp.log # uncomment this to enable logging of all log messages to /var/log/all.log # touch /var/log/all.log and chmod it to mode 600 before it will work #*.* /var/log/all.log # uncomment this to enable logging to a remote loghost named loghost #*.* @loghost |
#cd /
|
#ls
.cshrc boot etc media sbin .profile cdrom home mfsroot.gz sys .snap compat kernel mnt tmp COPYRIGHT dev kernel_f proc usr Xvnc.core dist lib rescue var bin entropy libexec root xdm.core |
#ls
.cshrc boot etc media sbin .profile cdrom home mfsroot.gz sys .snap compat kernel mnt tmp COPYRIGHT dev kernel_f proc usr Xvnc.core dist lib rescue var bin entropy libexec root xdm.core |
#cd ~
|
#ls
[root@fbsd4:/]# cd ~ .ICEauthority .profile .XSM-Default .prxbnzRcu .XSMlock-Default .ssh .Xauthority .twm2U23SP .bash_history .viminfo .bash_profile .vimrc .bashrc .xinitrc .cshrc .xsession .dmrc .xsession-errors ... .gconfd fluxbox.core .gnome2 grub-0.95 .gnome2_private grub-0.95-freebsd.diff .history grub-0.95-freebsd.diff?file_id=1886 .k5login grub-0.95.tar.gz .l3rc install .lesshst kfreebsd.diff .lilalo kfreebsd.diff?file_id=9830 .login mbox .mozilla mymbr.img |
#ls
.ICEauthority .profile .XSM-Default .prxbnzRcu .XSMlock-Default .ssh .Xauthority .twm2U23SP .bash_history .viminfo .bash_profile .vimrc .bashrc .xinitrc .cshrc .xsession .dmrc .xsession-errors .fluxbox .xsmUpMmYE .gconf .xsmrni9F1 .gconfd fluxbox.core .gnome2 grub-0.95 .gnome2_private grub-0.95-freebsd.diff .history grub-0.95-freebsd.diff?file_id=1886 .k5login grub-0.95.tar.gz .l3rc install .lesshst kfreebsd.diff .lilalo kfreebsd.diff?file_id=9830 .login mbox .mozilla mymbr.img |
#pwd
/root |
#pwd
/root |
#ls -l
total 5480 -rw------- 1 root wheel 966 Dec 23 11:13 .ICEauthority -rw-r--r-- 1 root wheel 45 Dec 23 10:27 .XSM-Default -r--r--r-- 1 root wheel 102 Dec 23 11:11 .XSMlock-Default -rw------- 1 root wheel 392 Mar 11 07:36 .Xauthority -rw------- 1 root wheel 11954 Mar 11 08:18 .bash_history -rw-r--r-- 1 root wheel 19 Mar 10 16:31 .bash_profile -rw-r--r-- 1 root wheel 134 Mar 10 16:30 .bashrc -rw-r--r-- 2 root wheel 786 Oct 11 04:14 .cshrc -rw------- 1 root wheel 26 Dec 23 08:54 .dmrc ... -rw------- 1 root wheel 4390912 Dec 22 13:36 fluxbox.core drwxrwxrwx 9 501 501 1024 Feb 6 22:23 grub-0.95 -rw-r--r-- 1 root wheel 19912 Feb 6 23:58 grub-0.95-freebsd.diff -rw-r--r-- 1 root wheel 19979 Feb 6 23:58 grub-0.95-freebsd.diff?file_id=1886 -rw-r--r-- 1 root wheel 976017 Jun 13 2004 grub-0.95.tar.gz -rw-r--r-- 1 root wheel 5296 Mar 10 16:30 install -rw-r--r-- 1 root wheel 30419 Jan 19 15:14 kfreebsd.diff -rw-r--r-- 1 root wheel 30419 Feb 6 23:55 kfreebsd.diff?file_id=9830 -rw------- 1 root wheel 10065 Feb 7 08:29 mbox -rw-r--r-- 1 root wheel 512 Jan 18 22:36 mymbr.img |
#ls -lF
[root@fbsd4:~]# ls -l total 5480 -rw------- 1 root wheel 966 Dec 23 11:13 .ICEauthority -rw-r--r-- 1 root wheel 45 Dec 23 10:27 .XSM-Default -r--r--r-- 1 root wheel 102 Dec 23 11:11 .XSMlock-Default -rw------- 1 root wheel 392 Mar 11 07:36 .Xauthority -rw------- 1 root wheel 11954 Mar 11 08:18 .bash_history -rw-r--r-- 1 root wheel 19 Mar 10 16:31 .bash_profile -rw-r--r-- 1 root wheel 134 Mar 10 16:30 .bashrc -rw-r--r-- 2 root wheel 786 Oct 11 04:14 .cshrc ... -rw------- 1 root wheel 4390912 Dec 22 13:36 fluxbox.core drwxrwxrwx 9 501 501 1024 Feb 6 22:23 grub-0.95/ -rw-r--r-- 1 root wheel 19912 Feb 6 23:58 grub-0.95-freebsd.diff -rw-r--r-- 1 root wheel 19979 Feb 6 23:58 grub-0.95-freebsd.diff?file_id=1886 -rw-r--r-- 1 root wheel 976017 Jun 13 2004 grub-0.95.tar.gz -rw-r--r-- 1 root wheel 5296 Mar 10 16:30 install -rw-r--r-- 1 root wheel 30419 Jan 19 15:14 kfreebsd.diff -rw-r--r-- 1 root wheel 30419 Feb 6 23:55 kfreebsd.diff?file_id=9830 -rw------- 1 root wheel 10065 Feb 7 08:29 mbox -rw-r--r-- 1 root wheel 512 Jan 18 22:36 mymbr.img |
#ls -lF
total 5480 -rw------- 1 root wheel 966 Dec 23 11:13 .ICEauthority -rw-r--r-- 1 root wheel 45 Dec 23 10:27 .XSM-Default -r--r--r-- 1 root wheel 102 Dec 23 11:11 .XSMlock-Default -rw------- 1 root wheel 392 Mar 11 07:36 .Xauthority -rw------- 1 root wheel 11954 Mar 11 08:18 .bash_history -rw-r--r-- 1 root wheel 19 Mar 10 16:31 .bash_profile -rw-r--r-- 1 root wheel 134 Mar 10 16:30 .bashrc -rw-r--r-- 2 root wheel 786 Oct 11 04:14 .cshrc -rw------- 1 root wheel 26 Dec 23 08:54 .dmrc ... -rw------- 1 root wheel 4390912 Dec 22 13:36 fluxbox.core drwxrwxrwx 9 501 501 1024 Feb 6 22:23 grub-0.95/ -rw-r--r-- 1 root wheel 19912 Feb 6 23:58 grub-0.95-freebsd.diff -rw-r--r-- 1 root wheel 19979 Feb 6 23:58 grub-0.95-freebsd.diff?file_id=1886 -rw-r--r-- 1 root wheel 976017 Jun 13 2004 grub-0.95.tar.gz -rw-r--r-- 1 root wheel 5296 Mar 10 16:30 install -rw-r--r-- 1 root wheel 30419 Jan 19 15:14 kfreebsd.diff -rw-r--r-- 1 root wheel 30419 Feb 6 23:55 kfreebsd.diff?file_id=9830 -rw------- 1 root wheel 10065 Feb 7 08:29 mbox -rw-r--r-- 1 root wheel 512 Jan 18 22:36 mymbr.img |
#cd tmp
bash: cd: tmp: No such file or directory |
#cd tmp
bash: cd: tmp: No such file or directory |
#cd /etc
|
#pwd
[root@fbsd4:~]# cd /etc /etc |
#pwd
/etc |
#ls
X11 locate.rc profile aliases login.access protocols amd.map login.conf pwd.db apmd.conf login.conf.db rc auth.conf mac.conf rc.bsdextended bluetooth mail rc.conf cached.conf mail.rc rc.d crontab make.conf rc.firewall csh.cshrc manpath.config rc.firewall6 csh.login manpath.config.bak rc.initdiskless ... host.conf pam.d spwd.db hostid passwd ssh hosts pccard_ether ssl hosts.allow periodic sysctl.conf hosts.equiv pf.conf syslog.conf hosts.lpd pf.os termcap inetd.conf phones ttys isdn portsnap.conf zfs libalias.conf ppp lilalo printcap |
#ls
X11 locate.rc profile aliases login.access protocols amd.map login.conf pwd.db apmd.conf login.conf.db rc auth.conf mac.conf rc.bsdextended bluetooth mail rc.conf cached.conf mail.rc rc.d crontab make.conf rc.firewall csh.cshrc manpath.config rc.firewall6 csh.login manpath.config.bak rc.initdiskless ... host.conf pam.d spwd.db hostid passwd ssh hosts pccard_ether ssl hosts.allow periodic sysctl.conf hosts.equiv pf.conf syslog.conf hosts.lpd pf.os termcap inetd.conf phones ttys isdn portsnap.conf zfs libalias.conf ppp lilalo printcap |
#ls -lF
total 542 drwxr-xr-x 2 root wheel 512 Dec 23 11:55 X11/ lrwxrwxrwx 1 root wheel 12 Dec 21 20:00 aliases@ -> mail/aliases -rw-r--r-- 1 root wheel 210 Oct 11 04:14 amd.map -rw-r--r-- 1 root wheel 1234 Oct 11 04:14 apmd.conf -rw-r--r-- 1 root wheel 231 Oct 11 04:14 auth.conf drwxr-xr-x 2 root wheel 512 Dec 21 20:00 bluetooth/ -rw-r--r-- 1 root wheel 287 Oct 11 04:14 cached.conf -rw-r--r-- 1 root wheel 737 Oct 11 04:14 crontab -rw-r--r-- 1 root wheel 108 Oct 11 04:14 csh.cshrc ... drwxr-xr-x 2 root wheel 512 Oct 11 04:09 skel/ -rw-r--r-- 1 root wheel 2406 Oct 11 04:14 snmpd.config -rw------- 1 root wheel 40960 Dec 23 11:36 spwd.db drwxr-xr-x 2 root wheel 512 Dec 22 13:30 ssh/ drwxr-xr-x 2 root wheel 512 Dec 21 20:00 ssl/ -rw-r--r-- 1 root wheel 390 Dec 23 11:07 sysctl.conf -rw-r--r-- 1 root wheel 1335 Oct 11 04:14 syslog.conf lrwxrwxrwx 1 root wheel 23 Dec 21 20:00 termcap@ -> /usr/share/misc/termcap -rw-r--r-- 1 root wheel 7654 Dec 23 10:46 ttys drwxr-xr-x 2 root wheel 512 Oct 11 04:09 zfs/ |
#ls -l
-rw------- 1 root wheel 432 Oct 11 04:14 opieaccess -rw------- 1 root wheel 0 Dec 21 21:24 opiekeys drwxr-xr-x 2 root wheel 512 Dec 21 20:00 pam.d/ -rw-r--r-- 1 root wheel 1696 Dec 23 11:36 passwd -rwxr-xr-x 1 root wheel 2352 Oct 11 04:14 pccard_ether* drwxr-xr-x 6 root wheel 512 Oct 11 07:20 periodic/ -rw-r--r-- 1 root wheel 3771 Oct 11 04:14 pf.conf -rw-r--r-- 1 root wheel 28375 Oct 11 04:14 pf.os -rw-r--r-- 1 root wheel 233 Oct 11 04:14 phones -rw-r--r-- 1 root wheel 1363 Oct 11 04:14 portsnap.conf ... drwxr-xr-x 2 root wheel 512 Oct 11 04:09 skel -rw-r--r-- 1 root wheel 2406 Oct 11 04:14 snmpd.config -rw------- 1 root wheel 40960 Dec 23 11:36 spwd.db drwxr-xr-x 2 root wheel 512 Dec 22 13:30 ssh drwxr-xr-x 2 root wheel 512 Dec 21 20:00 ssl -rw-r--r-- 1 root wheel 390 Dec 23 11:07 sysctl.conf -rw-r--r-- 1 root wheel 1335 Oct 11 04:14 syslog.conf lrwxrwxrwx 1 root wheel 23 Dec 21 20:00 termcap -> /usr/share/misc/termcap -rw-r--r-- 1 root wheel 7654 Dec 23 10:46 ttys drwxr-xr-x 2 root wheel 512 Oct 11 04:09 zfs |
#ls -l
total 542 drwxr-xr-x 2 root wheel 512 Dec 23 11:55 X11 lrwxrwxrwx 1 root wheel 12 Dec 21 20:00 aliases -> mail/aliases -rw-r--r-- 1 root wheel 210 Oct 11 04:14 amd.map -rw-r--r-- 1 root wheel 1234 Oct 11 04:14 apmd.conf -rw-r--r-- 1 root wheel 231 Oct 11 04:14 auth.conf drwxr-xr-x 2 root wheel 512 Dec 21 20:00 bluetooth -rw-r--r-- 1 root wheel 287 Oct 11 04:14 cached.conf -rw-r--r-- 1 root wheel 737 Oct 11 04:14 crontab -rw-r--r-- 1 root wheel 108 Oct 11 04:14 csh.cshrc ... drwxr-xr-x 2 root wheel 512 Oct 11 04:09 skel -rw-r--r-- 1 root wheel 2406 Oct 11 04:14 snmpd.config -rw------- 1 root wheel 40960 Dec 23 11:36 spwd.db drwxr-xr-x 2 root wheel 512 Dec 22 13:30 ssh drwxr-xr-x 2 root wheel 512 Dec 21 20:00 ssl -rw-r--r-- 1 root wheel 390 Dec 23 11:07 sysctl.conf -rw-r--r-- 1 root wheel 1335 Oct 11 04:14 syslog.conf lrwxrwxrwx 1 root wheel 23 Dec 21 20:00 termcap -> /usr/share/misc/termcap -rw-r--r-- 1 root wheel 7654 Dec 23 10:46 ttys drwxr-xr-x 2 root wheel 512 Oct 11 04:09 zfs |
#ls -lF
total 542 drwxr-xr-x 2 root wheel 512 Dec 23 11:55 X11/ lrwxrwxrwx 1 root wheel 12 Dec 21 20:00 aliases@ -> mail/aliases -rw-r--r-- 1 root wheel 210 Oct 11 04:14 amd.map -rw-r--r-- 1 root wheel 1234 Oct 11 04:14 apmd.conf -rw-r--r-- 1 root wheel 231 Oct 11 04:14 auth.conf drwxr-xr-x 2 root wheel 512 Dec 21 20:00 bluetooth/ -rw-r--r-- 1 root wheel 287 Oct 11 04:14 cached.conf -rw-r--r-- 1 root wheel 737 Oct 11 04:14 crontab -rw-r--r-- 1 root wheel 108 Oct 11 04:14 csh.cshrc ... drwxr-xr-x 2 root wheel 512 Oct 11 04:09 skel/ -rw-r--r-- 1 root wheel 2406 Oct 11 04:14 snmpd.config -rw------- 1 root wheel 40960 Dec 23 11:36 spwd.db drwxr-xr-x 2 root wheel 512 Dec 22 13:30 ssh/ drwxr-xr-x 2 root wheel 512 Dec 21 20:00 ssl/ -rw-r--r-- 1 root wheel 390 Dec 23 11:07 sysctl.conf -rw-r--r-- 1 root wheel 1335 Oct 11 04:14 syslog.conf lrwxrwxrwx 1 root wheel 23 Dec 21 20:00 termcap@ -> /usr/share/misc/termcap -rw-r--r-- 1 root wheel 7654 Dec 23 10:46 ttys drwxr-xr-x 2 root wheel 512 Oct 11 04:09 zfs/ |
#ls -lF
total 542 drwxr-xr-x 2 root wheel 512 Dec 23 11:55 X11/ lrwxrwxrwx 1 root wheel 12 Dec 21 20:00 aliases@ -> mail/aliases -rw-r--r-- 1 root wheel 210 Oct 11 04:14 amd.map -rw-r--r-- 1 root wheel 1234 Oct 11 04:14 apmd.conf -rw-r--r-- 1 root wheel 231 Oct 11 04:14 auth.conf drwxr-xr-x 2 root wheel 512 Dec 21 20:00 bluetooth/ -rw-r--r-- 1 root wheel 287 Oct 11 04:14 cached.conf -rw-r--r-- 1 root wheel 737 Oct 11 04:14 crontab -rw-r--r-- 1 root wheel 108 Oct 11 04:14 csh.cshrc ... drwxr-xr-x 2 root wheel 512 Oct 11 04:09 skel/ -rw-r--r-- 1 root wheel 2406 Oct 11 04:14 snmpd.config -rw------- 1 root wheel 40960 Dec 23 11:36 spwd.db drwxr-xr-x 2 root wheel 512 Dec 22 13:30 ssh/ drwxr-xr-x 2 root wheel 512 Dec 21 20:00 ssl/ -rw-r--r-- 1 root wheel 390 Dec 23 11:07 sysctl.conf -rw-r--r-- 1 root wheel 1335 Oct 11 04:14 syslog.conf lrwxrwxrwx 1 root wheel 23 Dec 21 20:00 termcap@ -> /usr/share/misc/termcap -rw-r--r-- 1 root wheel 7654 Dec 23 10:46 ttys drwxr-xr-x 2 root wheel 512 Oct 11 04:09 zfs/ |
#ls -lFa
total 546 drwxr-xr-x 21 root wheel 2048 Mar 10 16:30 ./ drwxr-xr-x 22 root wheel 512 Feb 7 22:27 ../ drwxr-xr-x 2 root wheel 512 Dec 23 11:55 X11/ lrwxrwxrwx 1 root wheel 12 Dec 21 20:00 aliases@ -> mail/aliases -rw-r--r-- 1 root wheel 210 Oct 11 04:14 amd.map -rw-r--r-- 1 root wheel 1234 Oct 11 04:14 apmd.conf -rw-r--r-- 1 root wheel 231 Oct 11 04:14 auth.conf drwxr-xr-x 2 root wheel 512 Dec 21 20:00 bluetooth/ -rw-r--r-- 1 root wheel 287 Oct 11 04:14 cached.conf ... drwxr-xr-x 2 root wheel 512 Oct 11 04:09 skel/ -rw-r--r-- 1 root wheel 2406 Oct 11 04:14 snmpd.config -rw------- 1 root wheel 40960 Dec 23 11:36 spwd.db drwxr-xr-x 2 root wheel 512 Dec 22 13:30 ssh/ drwxr-xr-x 2 root wheel 512 Dec 21 20:00 ssl/ -rw-r--r-- 1 root wheel 390 Dec 23 11:07 sysctl.conf -rw-r--r-- 1 root wheel 1335 Oct 11 04:14 syslog.conf lrwxrwxrwx 1 root wheel 23 Dec 21 20:00 termcap@ -> /usr/share/misc/termcap -rw-r--r-- 1 root wheel 7654 Dec 23 10:46 ttys drwxr-xr-x 2 root wheel 512 Oct 11 04:09 zfs/ |
#cd ~
[root@fbsd4:etc]# ls -lFa total 546 drwxr-xr-x 21 root wheel 2048 Mar 10 16:30 ./ drwxr-xr-x 22 root wheel 512 Feb 7 22:27 ../ drwxr-xr-x 2 root wheel 512 Dec 23 11:55 X11/ lrwxrwxrwx 1 root wheel 12 Dec 21 20:00 aliases@ -> mail/aliases -rw-r--r-- 1 root wheel 210 Oct 11 04:14 amd.map -rw-r--r-- 1 root wheel 1234 Oct 11 04:14 apmd.conf -rw-r--r-- 1 root wheel 231 Oct 11 04:14 auth.conf drwxr-xr-x 2 root wheel 512 Dec 21 20:00 bluetooth/ ... drwxr-xr-x 2 root wheel 512 Oct 11 04:09 skel/ -rw-r--r-- 1 root wheel 2406 Oct 11 04:14 snmpd.config -rw------- 1 root wheel 40960 Dec 23 11:36 spwd.db drwxr-xr-x 2 root wheel 512 Dec 22 13:30 ssh/ drwxr-xr-x 2 root wheel 512 Dec 21 20:00 ssl/ -rw-r--r-- 1 root wheel 390 Dec 23 11:07 sysctl.conf -rw-r--r-- 1 root wheel 1335 Oct 11 04:14 syslog.conf lrwxrwxrwx 1 root wheel 23 Dec 21 20:00 termcap@ -> /usr/share/misc/termcap -rw-r--r-- 1 root wheel 7654 Dec 23 10:46 ttys drwxr-xr-x 2 root wheel 512 Oct 11 04:09 zfs/ |
#cd ~
|
#pwd
/root |
#pwd
/root |
#cd /tmp
|
#cd /tmp
|
#ls
.ICE-unix .font-unix .X0-lock .gdm_socket .X1-lock .snap .X11-unix .xorg.conf6318 .XIM-unix .xorg.conf6321 .Xauth4j1eJJ fam-user .Xauth5MNp1A grub-install.log.10372 .XauthVnvJcs grub-install.log.8872 .XauthWZCDmQ grub-install.log.9047 .XauthiEK9wY grub-install.log.9221 .XauthjJ4f1W install.cfg .XauthjbfPhl lilalo-install-temp-10315 .Xauthv3Drb2 mfsroot.gz .XauthyYIU3v patchrHcY96i .XauthzGCIuz |
#ls
.ICE-unix .font-unix .X0-lock .gdm_socket .X1-lock .snap .X11-unix .xorg.conf6318 .XIM-unix .xorg.conf6321 .Xauth4j1eJJ fam-user .Xauth5MNp1A grub-install.log.10372 .XauthVnvJcs grub-install.log.8872 .XauthWZCDmQ grub-install.log.9047 .XauthiEK9wY grub-install.log.9221 .XauthjJ4f1W install.cfg .XauthjbfPhl lilalo-install-temp-10315 .Xauthv3Drb2 mfsroot.gz .XauthyYIU3v patchrHcY96i .XauthzGCIuz |
#cd lab2
bash: cd: lab2: No such file or directory |
#mkdir lab2
[root@fbsd4:tmp]# cd lab2 bash: cd: lab2: No such file or directory |
#mkdir lab2
|
#mkdir 1 2 3
|
#ls
[root@fbsd4:tmp]# mkdir 1 2 3 .ICE-unix .snap .X0-lock .xorg.conf6318 .X1-lock .xorg.conf6321 .X11-unix 1 .XIM-unix 2 .Xauth4j1eJJ 3 .Xauth5MNp1A fam-user .XauthVnvJcs grub-install.log.10372 .XauthWZCDmQ grub-install.log.8872 .XauthiEK9wY grub-install.log.9047 .XauthjJ4f1W grub-install.log.9221 .XauthjbfPhl install.cfg .Xauthv3Drb2 lab2 .XauthyYIU3v lilalo-install-temp-10315 .XauthzGCIuz mfsroot.gz .font-unix patchrHcY96i .gdm_socket |
1 # $FreeBSD: src/etc/syslog.conf,v 1.28 2005/03/12 12:31:16 glebius Exp $ 2 # 3 # Spaces ARE valid field separators in this file. However, 4 # other *nix-like systems still insist on using tabs as field 5 # separators. If you are sharing this file between systems, you 6 # may want to use only tabs as field separators here. 7 # Consult the syslog.conf(5) manpage. 8 *.err;kern.warning;auth.notice;mail.crit /dev/console 9 *.notice;authpriv.none;kern.debug;lpr.info;mail.crit;news.err /var/log/messages 10 security.* /var/log/security 11 auth.info;authpriv.info /var/log/auth.log 12 mail.info /var/log/maillog 13 lpr.info /var/log/lpd-errs 14 ftp.info /var/log/xferlog 15 cron.* /var/log/cron 16 *.=debug /var/log/debug.log 17 *.emerg * 18 # uncomment this to log all writes to /dev/console to /var/log/console.log 19 #console.info /var/log/console.log 20 # uncomment this to enable logging of all log messages to /var/log/all.log 21 # touch /var/log/all.log and chmod it to mode 600 before it will work 22 #*.* /var/log/all.log 23 # uncomment this to enable logging to a remote loghost named loghost 24 #*.* @loghost 25 # uncomment these if you're running inn 26 # news.crit /var/log/news/news.crit 27 # news.err /var/log/news/news.err 28 # news.notice /var/log/news/news.notice 29 !startslip 30 *.* /var/log/slip.log 31 !ppp 32 *.* /var/log/ppp.log
1 # $FreeBSD: src/etc/syslog.conf,v 1.28 2005/03/12 12:31:16 glebius Exp $ 2 # 3 # Spaces ARE valid field separators in this file. However, 4 # other *nix-like systems still insist on using tabs as field 5 # separators. If you are sharing this file between systems, you 6 # may want to use only tabs as field separators here. 7 # Consult the syslog.conf(5) manpage. 8 *.err;kern.warning;auth.notice;mail.crit /dev/console 9 *.notice;authpriv.none;kern.debug;lpr.info;mail.crit;news.err /var/log/messages 10 security.* /var/log/security 11 auth.info;authpriv.info /var/log/auth.log 12 mail.info /var/log/maillog 13 lpr.info /var/log/lpd-errs 14 ftp.info /var/log/xferlog 15 cron.* /var/log/cron 16 *.=debug /var/log/debug.log 17 *.emerg * 18 # uncomment this to log all writes to /dev/console to /var/log/console.log 19 #console.info /var/log/console.log 20 # uncomment this to enable logging of all log messages to /var/log/all.log 21 # touch /var/log/all.log and chmod it to mode 600 before it will work 22 #*.* /var/log/all.log 23 # uncomment this to enable logging to a remote loghost named loghost 24 #*.* @loghost 25 # uncomment these if you're running inn 26 # news.crit /var/log/news/news.crit 27 # news.err /var/log/news/news.err 28 # news.notice /var/log/news/news.notice 29 !startslip 30 *.* /var/log/slip.log 31 !ppp 32 *.* /var/log/ppp.log
1 # $FreeBSD: src/etc/syslog.conf,v 1.28 2005/03/12 12:31:16 glebius Exp $ 2 # 3 # Spaces ARE valid field separators in this file. However, 4 # other *nix-like systems still insist on using tabs as field 5 # separators. If you are sharing this file between systems, you 6 # may want to use only tabs as field separators here. 7 # Consult the syslog.conf(5) manpage. 8 *.err;kern.warning;auth.notice;mail.crit /dev/console 9 *.notice;authpriv.none;kern.debug;lpr.info;mail.crit;news.err /var/log/messages 10 security.* /var/log/security 11 auth.info;authpriv.info /var/log/auth.log 12 mail.info /var/log/maillog 13 lpr.info /var/log/lpd-errs 14 ftp.info /var/log/xferlog 15 cron.* /var/log/cron 16 *.=debug /var/log/debug.log 17 *.emerg * 18 # uncomment this to log all writes to /dev/console to /var/log/console.log 19 #console.info /var/log/console.log 20 # uncomment this to enable logging of all log messages to /var/log/all.log 21 # touch /var/log/all.log and chmod it to mode 600 before it will work 22 #*.* /var/log/all.log 23 # uncomment this to enable logging to a remote loghost named loghost 24 #*.* @loghost 25 # uncomment these if you're running inn 26 # news.crit /var/log/news/news.crit 27 # news.err /var/log/news/news.err 28 # news.notice /var/log/news/news.notice 29 !startslip 30 *.* /var/log/slip.log 31 !ppp 32 *.* /var/log/ppp.log
Время первой команды журнала | 18:31:42 2008- 3-10 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 15:36:43 2008- 3-11 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 100 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 13.00 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 3.00 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 0.23 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 7.10 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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