/l3/users/abear/nt-bsdnet/fbsd3.unix.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 :17 :18 :19 :20 :21 :22 :23 :24 :25 :26 :27 :28 :29 :30 :31 |
|
#cat /etc/ppp/pap-secrets
# and a USER_PROCESS utmp entry with ut_user = "utmp_entry" # # username may be prefixed / suffixed by "*" (wildcard) # #clientd is a vaserverer name frpasswordpasswd, IP "-" to not set # a login user id and keep the uid/euid root (needed for /bin/login) # # utmp_entry is what will appear in the "who" listing. Use "-" to not user t an utmp e*try (a must forpasswordgin), us* "@" to set it to the # username entered. Maximum length is 8 characters. ... # username entered. Warning: if no "@" is given, the login_program has # no way to know what user name the user entered. # # SAMPLES: # Use this one with my Taylor-UUCP and Taylor-UUCP passwd files. # (Big advantage: tuucp can use the same passwd file for serial dial-in # and tcp dial-in [uucico running as in.uucpd]). Works from 1.05 up. # #U* uucp @ /usr/lib/uucp/uucico -l -u @ # |
#man pppd
|
#vi /etc/ppp/options
|
#ssh root@m01
![]() # and a USER_PROCESS utmp entry with ut_user = "utmp_entry" # ^Cusername may be prefixed / suffixed by "*" (wildcard) # # userid is a valid user name from /etc/passwd, or "-" to not set # a login user id and keep the uid/euid root (needed for /bin/login) # # utmp_entry is what will appear in the "who" listing. Use "-" to not # set an utmp entry (a must for /bin/login), use "@" to set it to the # username entered. Maximum length is 8 characters. ... # username entered. Warning: if no "@" is given, the login_program has # no way to know what user name the user entered. # # SAMPLES: # Use this one with my Taylor-UUCP and Taylor-UUCP passwd files. # (Big advantage: tuucp can use the same passwd file for serial dial-in # and tcp dial-in [uucico running as in.uucpd]). Works from 1.05 up. # #U* uucp @ /usr/lib/uucp/uucico -l -u @ # |
#ssh root@192.168.15.21
# and a USER_PROCESS utmp entry with ut_user = "utmp_entry" # The authenticity of host '192.168.15.21 (192.168.15.21)' can't be established. # DSA key fingerprint is 80:40:2d:07:09:f7:83:02:33:f0:4d:ee:29:96:9d:c8. # a login user id and keep the uid/euid root (needed for /bin/login) Are you sure you want to continue connecting (yes/no)? yes # utmp_entry is what will appear in the "who" listing. Use "-" to not Warning: Permanently added '192.168.15.21' (DSA) to the list of known hosts. # username entered. Maximum length is 8 characters. ... # username entered. Warning: if no "@" is given, the login_program has # no way to know what user name the user entered. # # SAMPLES: # Use this one with my Taylor-UUCP and Taylor-UUCP passwd files. # (Big advantage: tuucp can use the same passwd file for serial dial-in # and tcp dial-in [uucico running as in.uucpd]). Works from 1.05 up. # #U* uucp @ /usr/lib/uucp/uucico -l -u @ # |
#ls -aG
. hosts nsmb.conf rc.sendmail .. hosts.allow nsswitch.conf rc.shutdown X11 hosts.equiv ntp rc.subr aliases hosts.lpd ntp.conf rc.suspend amd.map inetd.conf opieaccess remote apmd.conf isdn opiekeys resolv.conf auth.conf localtime pam.d rmt bluetooth locate.rc passwd rpc crontab login.access pccard_ether security csh.cshrc login.conf periodic services ... dumpdates master.passwd protocols start_if.em0 ethers motd pwd.db sysctl.conf fbtab mtree rc syslog.conf firewall my.firewall rc.bsdextended termcap fstab namedb rc.conf ttys ftpusers netconfig rc.d ttys.old gettytab netstart rc.firewall usbd.conf gnats network.subr rc.firewall6 group networks rc.initdiskless host.conf newsyslog.conf rc.resume |
#ls -aG ppp
. .. options pap-secrets ppp.conf |
#ls /usr/local/
VFS gnu-autotools lib private squid bin include libdata rejik www build-1 info libexec sbin etc kdevbdb man share |
#ls /usr/local/etc/
Muttrc freshclam.conf.default rsyncd.conf Muttrc.dist ksysguarddrc rsyncd.conf.sample a2ps-site.cfg lynx.cfg sarg a2ps.cfg lynx.cfg.default screenrc apache mail smb.conf bonobo-activation mgetty+sendfax smb.conf.default cdrecord mime.types snmp cdrecord.sample mimedefang squid clamd.conf openldap sudoers clamd.conf.default openslp sudoers.sample cups orbit2rc wgetrc esd.conf orbit2rc.default xdg esd.conf.default pam.d xinetd.conf etter.conf popd.conf.default xml2Conf.sh etter.conf.sample qpopper xsltConf.sh fam.conf qpopper.config.sample freshclam.conf rc.d |
#ls -aG /usr/local/etc/
. fam.conf qpopper.config.sample .. freshclam.conf rc.d Muttrc freshclam.conf.default rsyncd.conf Muttrc.dist ksysguarddrc rsyncd.conf.sample a2ps-site.cfg lynx.cfg sarg a2ps.cfg lynx.cfg.default screenrc apache mail smb.conf bonobo-activation mgetty+sendfax smb.conf.default cdrecord mime.types snmp cdrecord.sample mimedefang squid clamd.conf openldap sudoers clamd.conf.default openslp sudoers.sample cups orbit2rc wgetrc esd.conf orbit2rc.default xdg esd.conf.default pam.d xinetd.conf etter.conf popd.conf.default xml2Conf.sh etter.conf.sample qpopper xsltConf.sh |
#ls -aG /usr/
. .snap bin games lib libexec obj sbin src .. X11R6 compat include libdata local ports share |
#pwd
/etc |
#cd /usr/local/etc/mgetty+sendfax/
|
#ls -aG
. faxheader.dist login.config.dist .. faxrunq.config mgetty.config dialin.config faxrunq.config.dist sendfax.config dialin.config.dist faxspool.rules.sample voice.conf.dist faxheader login.config |
#less /usr/local/bin/l3-agent
|
#ls -aG
. fam.conf qpopper.config.sample .. freshclam.conf rc.d Muttrc freshclam.conf.default rsyncd.conf Muttrc.dist ksysguarddrc rsyncd.conf.sample a2ps-site.cfg lynx.cfg sarg a2ps.cfg lynx.cfg.default screenrc apache mail smb.conf bonobo-activation mgetty+sendfax smb.conf.default cdrecord mime.types snmp cdrecord.sample mimedefang squid clamd.conf openldap sudoers clamd.conf.default openslp sudoers.sample cups orbit2rc wgetrc esd.conf orbit2rc.default xdg esd.conf.default pam.d xinetd.conf etter.conf popd.conf.default xml2Conf.sh etter.conf.sample qpopper xsltConf.sh |
#pwd
/usr/local/etc |
#viusr/local/bin/l3-agent
#process_command_lines; print_command_lines($Config{"cache"}); } else { if (open(PIDFILE, $Config{agent_pidfile})) { my $pid = <PIDFILE>; close(PIDFILE); if ($^O eq 'linux' && $pid &&(! -e "/proc/$pid" || !`grep $Config{"l 3-agent"} /proc/$pid/cmdline && grep "uid:.*\b$<\b" /proc/$pid/status`)) { print "Removing stale pidfile\n"; ... . " : $!"; } elsif ($^O eq 'freebsd' && defined($pid) && $pid ne "" && not `ps ax o uid,pid,command | grep '$< $pid $Config{"l3-agent"}' | grep -v grep 2> /dev/nu ll`) { print "ps axo uid,pid,command | grep '$< $pid $Config{"l3-agent" }' | grep -v grep >> /dev/null\n print "Removing stale pidfile\n"; unlink $Config{agent_pidfile} /usr/local/bin/l3-agent: 936 lines, 30961 characters |
#l3-agent
![]() syntax error at /usr/local/bin/l3-agent line 873, near "unlink" syntax error at /usr/local/bin/l3-agent line 877, near "} " Execution of /usr/local/bin/l3-agent aborted due to compilation errors. |
#vi /usr/local/bin/l3-agent
870c870 < print "ps axo uid,pid,command | grep '$< $pid $Config{"l3-agent"}' | grep -v grep 2> /dev/null\n"; --- > print "ps axo uid,pid,command | grep '$< $pid $Config{l3-agent}' | grep -v grep 2> /dev/null\n"; |
#l3-agent
![]() Bareword "l3" not allowed while "strict subs" in use at /usr/local/bin/l3-agent line 870. Bareword "agent" not allowed while "strict subs" in use at /usr/local/bin/l3-agent line 870. Execution of /usr/local/bin/l3-agent aborted due to compilation errors. |
#vi /usr/local/bin/l3-agent
870c870 < print "ps axo uid,pid,command | grep '$< $pid $Config{l3-agent}' | grep -v grep 2> /dev/null\n"; --- > print "ps axo uid,pid,command | grep '$< $pid $Config{"l3-agent"}' | grep -v grep 2> /dev/null\n"; |
#l3-agent
![]() syntax error at /usr/local/bin/l3-agent line 873, near "unlink" syntax error at /usr/local/bin/l3-agent line 877, near "} " Execution of /usr/local/bin/l3-agent aborted due to compilation errors. |
#vi /usr/local/bin/l3-agent
870c870 < print "ps axo uid,pid,command | grep '$< $pid $Config{"l3-agent"}' | grep -v grep 2> /dev/null\n"; --- > print "ps axo uid,pid,command | grep '$< $pid $Config{\"l3-agent\"}' | grep -v grep 2> /dev/null\n"; 872,873c872 < unlink $Config{agent_pidfile} < or die "Can't remove stale pidfile ". $Config{agent_pidfile}. " : $!"; --- > unlink $Config{agent_pidfile} or die "Can't remove stale pidfile ". $Config{agent_pidfile}. " : $!"; |
#l3-agent
l3-agent is already running: pid=18169; pidfile=/root/.lilalo/l3-agent.pid |
#l3-agent
l3-agent is already running: pid=18169; pidfile=/root/.lilalo/l3-agent.pid |
#l3-agent
l3-agent is already running: pid=18169; pidfile=/root/.lilalo/l3-agent.pid |
#ps aux | grep l3
root 18169 0.3 0.8 19908 16840 ?? Ss 10:37AM 79:15.50 l3-agent (perl user 853 0.0 0.4 8596 7356 ?? Ss 6:48AM 1:15.93 l3-agent (perl user 35571 0.0 0.3 8428 7188 ?? Ss 1:38PM 0:05.58 l3-agent (perl |
#l3-agent
l3-agent is already running: pid=18169; pidfile=/root/.lilalo/l3-agent.pid |
#ifconfig
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=b<RXCSUM,TXCSUM,VLAN_MTU> inet6 fe80::213:d4ff:feb2:4735%em0 prefixlen 64 scopeid 0x1 inet 192.168.15.23 netmask 0xffffff00 broadcast 192.168.15.255 ether 00:13:d4:b2:47:35 media: Ethernet autoselect (100baseTX <full-duplex>) status: active xl0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> ether 00:01:02:b4:61:97 media: Ethernet autoselect (none) status: no carrier plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500 lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 inet 127.0.0.1 netmask 0xff000000 ppp0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500 |
#l3-agent
l3-agent is already running: pid=18169; pidfile=/root/.lilalo/l3-agent.pid |
#l3-agent
l3-agent is already running: pid=18169; pidfile=/root/.lilalo/l3-agent.pid |
#shutdown -p no
![]() PPPD(8) PPPD(8) shutdown: bad time format pppd - Point to Point Protocol daemon SYNOPSIS pppd [ tty_name ] [ speed ] [ options ] DESCRIPTION The Point-to-Point Protocol (PPP) provides a method for transmitting datagrams over serial point-to-point links. PPP is composed of three parts: a method for encapsulating datagrams over serial links, an extensible Link Control Protocol (LCP), and a family of Network Control ... establishing and configuring the Internet Protocol (IP) (called the IP Control Protocol, IPCP). FREQUENTLY USED OPTIONS <tty_name> Communicate over the named device. The string "/dev/" is ------------------------------------------------------------------------------- ~ONNECT 33600/ARQ ------------------------------------------------------------------------------- CTRL-A Z for help | 38400 8N1 | NOR | Minicom 2.1 | VT102 | Offline ------------------------------------------------------------------------------- |
#shutdown -p now
Shutdown NOW! shutdown: [pid 37038] |
#ps aux | grep l3
user 7359 2,8 0,3 8784 7232 ?? Ss 9:18 8:51,49 l3-agent (perl user 3199 2,7 0,3 8800 7248 ?? Ss 23:17 9:23,87 l3-agent (perl user 46486 2,6 0,3 8720 7260 ?? Ss 14:14 1:01,18 l3-agent (perl user 3113 2,5 0,4 8864 7284 ?? Ss 23:16 9:25,51 l3-agent (perl root 1123 0,0 0,4 8936 7368 ?? Ss 21:03 4:59,20 l3-agent (perl root 1284 0,0 0,4 8908 7344 ?? Ss 21:04 4:57,94 l3-agent (perl root 7807 0,0 0,4 8884 7316 ?? Ss 9:56 4:12,10 l3-agent (perl root 1054 0,0 0,4 9000 7400 ?? Ss 21:02 5:01,03 l3-agent (perl root 1201 0,0 0,4 8952 7376 ?? Ss 21:03 5:01,46 l3-agent (perl root 1860 0,0 0,4 8896 7320 ?? Ss 22:26 4:53,14 l3-agent (perl root 1988 0,0 0,4 8908 7348 ?? Ss 22:35 4:52,40 l3-agent (perl root 2128 0,0 0,4 8900 7340 ?? Ss 22:39 4:59,16 l3-agent (perl root 2804 0,0 0,4 8908 7332 ?? Ss 23:07 4:44,94 l3-agent (perl root 10363 0,0 0,4 8892 7320 ?? Ss 10:13 4:02,98 l3-agent (perl root 58648 0,0 0,0 1600 1036 pb S+ 15:52 0:00,00 grep l3 |
#kill `ps aux | grep l3 | awk '{print $2}'`
bash: kill: (58660) - No such process |
#ps aux | grep l3
root 58668 0,0 0,0 1600 1036 pb S+ 15:53 0:00,00 grep l3 |
#ls
.Xresources .gnome2 .l3rc .ssh ports-supfile .bash_history .gnome2_private .lesshst .viminfo stable-supfile .bash_profile .gstreamer-0.8 .lilalo .vimrc xorg.conf .bashrc .history .login 1 xorg.conf.new .cshrc .hushlogin .mozilla MYKERNCONF .fonts.cache-1 .inputrc .profile install .gconf .k5login .qt mbox .gconfd .kde .spamassassin minicom.log |
#minicom
![]() LANG/ja LANG/ko LANG/ru minicom: ÷îéíáîéå: ÆÁÊÌ ËÏÎÆÉÇÕÒÁÃÉÉ ÎÅ ÎÁÊÄÅÎ, ÉÓÐÏÌØÚÕÀ ÎÁÓÔÒÏÊËÉ ÐÏ ÕÍÏÌÞÁÎÉÀ ^C |
#LANG=C minicom
![]() LANG/ja LANG/ko LANG/ru minicom: WARNING: configuration file not found, using defaults Device /dev/cuad0 is locked. |
#find /usr -name \*LCK
![]() # and a USER_PROCESS utmp entry with ut_user = "utmp_entry" # ^Cusername may be prefixed / suffixed by "*" (wildcard) # # userid is a valid user name from /etc/passwd, or "-" to not set # a login user id and keep the uid/euid root (needed for /bin/login) # # utmp_entry is what will appear in the "who" listing. Use "-" to not # set an utmp entry (a must for /bin/login), use "@" to set it to the # username entered. Maximum length is 8 characters. ... # username entered. Warning: if no "@" is given, the login_program has # no way to know what user name the user entered. # # SAMPLES: # Use this one with my Taylor-UUCP and Taylor-UUCP passwd files. # (Big advantage: tuucp can use the same passwd file for serial dial-in # and tcp dial-in [uucico running as in.uucpd]). Works from 1.05 up. # #U* uucp @ /usr/lib/uucp/uucico -l -u @ # |
#find /car -name \*LCK
![]() find: /car: No such file or directory |
#find /var -name \*LCK
|
#ps waux | less
|
#minicom -s
![]() # and a USER_PROCESS utmp entry with ut_user = "utmp_entry" # LANG/jaame may be prefixed / suffixed by "*" (wildcard) # LANG/kod is a valid user name from /etc/passwd, or "-" to not set # a login user id and keep the uid/euid root (needed for /bin/login) LANG/ru # utmp_entry is what will appear in the "who" listing. Use "-" to not minicom: ÷îéíáîéå: ÆÁÊÌ ËÏÎÆÉÇÕÒÁÃÉÉ ÎÅ ÎÁÊÄÅÎ, ÉÓÐÏÌØÚÕÀ ÎÁÓÔÒÏÊËÉthe # username entered. Maximum length is 8 characters. ... # username entered. Warning: if no "@" is given, the login_program has # no way to know what user name the user entered. # # SAMPLES: # Use this one with my Taylor-UUCP and Taylor-UUCP passwd files. # (Big advantage: tuucp can use the same passwd file for serial dial-in # and tcp dial-in [uucico running as in.uucpd]). Works from 1.05 up. # #U* uucp @ /usr/lib/uucp/uucico -l -u @ # |
#LANG=C
|
#minicom -s
Welcome to minicom 2.1 OPTIONS: History Buffer, F-key Macros, Search History Buffer, I18n Compiled on Dec 1 2006, 15:32:53. c10=0 OKess CTRL-A Z for help on special keys atd230 CONNECT 33600/ARQV1 X4 &c1 E1 Q0 OK atz10=0 CTRL-A Z for help | 38400 8N1 | NOR | Minicom 2.1 | VT102 | Online 00:00 |
#cat /etc/ppp/options
# and a USER_PROCESS utmp entry with ut_user = "utmp_entry" # 38400rname may be prefixed / suffixed by "*" (wildcard) # /dev/caud0s a valid user name from /etc/passwd, or "-" to not set # a login user id and keep the uid/euid root (needed for /bin/login) lock # utmp_entry is what will appear in the "who" listing. Use "-" to not debugt an utmp entry (a must for /bin/login), use "@" to set it to the # username entered. Maximum length is 8 characters. ... # username entered. Warning: if no "@" is given, the login_program has # no way to know what user name the user entered. # # SAMPLES: # Use this one with my Taylor-UUCP and Taylor-UUCP passwd files. # (Big advantage: tuucp can use the same passwd file for serial dial-in # and tcp dial-in [uucico running as in.uucpd]). Works from 1.05 up. # #U* uucp @ /usr/lib/uucp/uucico -l -u @ # |
#vi /etc/ppp/options
|
#pppd nodetach
![]() # and a USER_PROCESS utmp entry with ut_user = "utmp_entry" # # username may be prefixed / suffixed by "*" (wildcard) # # userid is a valid user name from /etc/passwd, or "-" to not set # a login user id and keep the uid/euid root (needed for /bin/login) # # utmp_entry is what will appear in the "who" listing. Use "-" to not # set an utmp entry (a must for /bin/login), use "@" to set it to the # username entered. Maximum length is 8 characters. ... # username entered. Warning: if no "@" is given, the login_program has # no way to know what user name the user entered. # # SAMPLES: # Use this one with my Taylor-UUCP and Taylor-UUCP passwd files. # (Big advantage: tuucp can use the same passwd file for serial dial-in # and tcp dial-in [uucico running as in.uucpd]). Works from 1.05 up. # #U* uucp @ /usr/lib/uucp/uucico -l -u @ # |
#tail /var/log/debug.log
Dec 1 15:56:34 ns pppd[58802]: sent [LCP ConfReq id=0x1 <magic 0x6c9be122> <pcomp> <accomp>] Dec 1 15:56:34 ns pppd[58802]: rcvd [LCP ConfReq id=0x1 <auth pap> <magic 0x7149353d> <pcomp> <accomp>] Dec 1 15:56:34 ns pppd[58802]: sent [LCP ConfRej id=0x1 <auth pap>] Dec 1 15:56:34 ns pppd[58802]: rcvd [LCP ConfReq id=0x2 <magic 0x7149353d> <pcomp> <accomp>] Dec 1 15:56:34 ns pppd[58802]: sent [LCP ConfAck id=0x2 <magic 0x7149353d> <pcomp> <accomp>] Dec 1 15:56:37 ns pppd[58802]: sent [LCP ConfReq id=0x1 <magic 0x6c9be122> <pcomp> <accomp>] Dec 1 15:56:37 ns pppd[58802]: rcvd [LCP ConfAck id=0x1 <magic 0x6c9be122> <pcomp> <accomp>] Dec 1 15:56:37 ns pppd[58802]: sent [IPCP ConfReq id=0x1 <addr 192.168.15.21> <compress VJ 0f 01>] Dec 1 15:56:37 ns pppd[58802]: rcvd [LCP TermReq id=0x3 "peer refused to authenticate"] Dec 1 15:56:37 ns pppd[58802]: sent [LCP TermAck id=0x3] |
#ls /etc/ppp/
options pap-secrets ppp.conf |
#cat /etc/ppp/pap-secrets
user * password * |
#vi /etc/ppp/options
|
#man pppd
|
#man pppd
|
#vi /etc/ppp/options
|
#minicom
Welcome to minicom 2.1 OPTIONS: History Buffer, F-key Macros, Search History Buffer, I18n Compiled on Dec 1 2006, 15:32:53. Press CTRL-A Z for help on special keys AT S7=45 S0=0 L1 V1 X4 &c1 E1 Q0 OK CTRL-A Z for help | 57600 8N1 | NOR | Minicom 2.1 | VT102 | Offline |
#minicom -s
Press CTRL-A Z for help on special keys AT S7=45 S0=0 L1 V1 X4 &c1 E1 Q0 OK atc10=0 OK atd230 RINGING CONNECT 33600/ARQ/V34/LAPM CTRL-A Z for help | 38400 8N1 | NOR | Minicom 2.1 | VT102 | Online 00:00 |
#pppd
# and a USER_PROCESS utmp entry with ut_user = "utmp_entry" # # username may be prefixed / suffixed by "*" (wildcard) # # userid is a valid user name from /etc/passwd, or "-" to not set # a login user id and keep the uid/euid root (needed for /bin/login) # # utmp_entry is what will appear in the "who" listing. Use "-" to not # set an utmp entry (a must for /bin/login), use "@" to set it to the # username entered. Maximum length is 8 characters. ... # username entered. Warning: if no "@" is given, the login_program has # no way to know what user name the user entered. # # SAMPLES: # Use this one with my Taylor-UUCP and Taylor-UUCP passwd files. # (Big advantage: tuucp can use the same passwd file for serial dial-in # and tcp dial-in [uucico running as in.uucpd]). Works from 1.05 up. # #U* uucp @ /usr/lib/uucp/uucico -l -u @ # |
#ifconfig
em0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500 options=b<RXCSUM,TXCSUM,VLAN_MTU> ether 00:13:d4:b2:47:5c media: Ethernet autoselect status: no carrier xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> inet 192.168.15.21 netmask 0xffffff00 broadcast 192.168.15.255 inet 10.0.0.21 netmask 0xffffff00 broadcast 10.0.0.255 ether 00:04:76:a1:f2:5b media: Ethernet autoselect (100baseTX <full-duplex>) status: active plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500 lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 ppp0: flags=108051<UP,POINTOPOINT,RUNNING,MULTICAST,NEEDSGIANT> mtu 1500 inet 192.168.19.254 --> 192.168.19.1 netmask 0xffffff00 |
#ping 192.168.19.1
PING 192.168.19.1 (192.168.19.1): 56 data bytes 64 bytes from 192.168.19.1: icmp_seq=0 ttl=64 time=179.700 ms 64 bytes from 192.168.19.1: icmp_seq=1 ttl=64 time=177.897 ms 64 bytes from 192.168.19.1: icmp_seq=2 ttl=64 time=179.493 ms ^C --- 192.168.19.1 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max/stddev = 177.897/179.030/179.700/0.806 ms |
#ping 192.168.19.254
![]() # and a USER_PROCESS utmp entry with ut_user = "utmp_entry" # PING 192.168.19.254 (192.168.19.254): 56 data bytesard) # ^Cuserid is a valid user name from /etc/passwd, or "-" to not set # a login user id and keep the uid/euid root (needed for /bin/login) --- 192.168.19.254 ping statistics --- # utmp_entry is what will appear in the "who" listing. Use "-" to not 9 packets transmitted, 0 packets received, 100% packet losst it to the # username entered. Maximum length is 8 characters. ... # username entered. Warning: if no "@" is given, the login_program has # no way to know what user name the user entered. # # SAMPLES: # Use this one with my Taylor-UUCP and Taylor-UUCP passwd files. # (Big advantage: tuucp can use the same passwd file for serial dial-in # and tcp dial-in [uucico running as in.uucpd]). Works from 1.05 up. # #U* uucp @ /usr/lib/uucp/uucico -l -u @ # |
#telnet 192.168.19.1 25
# and a USER_PROCESS utmp entry with ut_user = "utmp_entry" # Trying 192.168.19.1...ixed / suffixed by "*" (wildcard) # Connected to 192.168.19.1.ame from /etc/passwd, or "-" to not set # a login user id and keep the uid/euid root (needed for /bin/login) Escape character is '^]'. # utmp_entry is what will appear in the "who" listing. Use "-" to not 220 ns.freebsd.unix.nt ESMTP Sendmail 8.13.4/8.13.4; Fri, 1 Dec 2006 13:59:36 GMT # username entered. Maximum length is 8 characters. ... # username entered. Warning: if no "@" is given, the login_program has ^] no way to know what user name the user entered. # telnet> q: # Use this one with my Taylor-UUCP and Taylor-UUCP passwd files. Connection closed. tuucp can use the same passwd file for serial dial-in # and tcp dial-in [uucico running as in.uucpd]). Works from 1.05 up. # #U* uucp @ /usr/lib/uucp/uucico -l -u @ # |
#ifconfig
em0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500 options=b<RXCSUM,TXCSUM,VLAN_MTU> ether 00:13:d4:b2:47:5c media: Ethernet autoselect status: no carrier xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> inet 192.168.15.21 netmask 0xffffff00 broadcast 192.168.15.255 inet 10.0.0.21 netmask 0xffffff00 broadcast 10.0.0.255 ether 00:04:76:a1:f2:5b media: Ethernet autoselect (100baseTX <full-duplex>) status: active plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500 lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 ppp0: flags=108051<UP,POINTOPOINT,RUNNING,MULTICAST,NEEDSGIANT> mtu 1500 inet 192.168.19.254 --> 192.168.19.1 netmask 0xffffff00 |
#ls /var/run/
# and a USER_PROCESS utmp entry with ut_user = "utmp_entry" # clamavname may bdmesg.boot / suflogprivy "*" (wisendmail.pid utmp # cron.pid is a vahttpd.pidname frmoused.pidsswd, spamd" to not set # a login user id and keep the uid/euid root (needed for /bin/login) cuad0.if ld-elf.so.hints named sshd.pid # utmp_entry is what will appear in the "who" listing. Use "-" to not devd.pidn utmp eld.so.hintst forpppin/login), ussyslog.pidet it to the # username entered. Maximum length is 8 characters. ... # username entered. Warning: if no "@" is given, the login_program has # no way to know what user name the user entered. # # SAMPLES: # Use this one with my Taylor-UUCP and Taylor-UUCP passwd files. # (Big advantage: tuucp can use the same passwd file for serial dial-in # and tcp dial-in [uucico running as in.uucpd]). Works from 1.05 up. # #U* uucp @ /usr/lib/uucp/uucico -l -u @ # |
#cat /var/run/ppp0.pid
58963 |
#kill `cat /var/run/ppp0.pid `
|
#ifconfig
em0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500 options=b<RXCSUM,TXCSUM,VLAN_MTU> ether 00:13:d4:b2:47:5c media: Ethernet autoselect status: no carrier xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> inet 192.168.15.21 netmask 0xffffff00 broadcast 192.168.15.255 inet 10.0.0.21 netmask 0xffffff00 broadcast 10.0.0.255 ether 00:04:76:a1:f2:5b media: Ethernet autoselect (100baseTX <full-duplex>) status: active plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500 lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 ppp0: flags=108010<POINTOPOINT,MULTICAST,NEEDSGIANT> mtu 1500 |
#vi /etc/ppp/chat
![]() |
#which chat
/usr/bin/chat |
#vi /etc/ppp/options
|
#pppd
# and a USER_PROCESS utmp entry with ut_user = "utmp_entry" # # username may be prefixed / suffixed by "*" (wildcard) # # userid is a valid user name from /etc/passwd, or "-" to not set # a login user id and keep the uid/euid root (needed for /bin/login) # # utmp_entry is what will appear in the "who" listing. Use "-" to not # set an utmp entry (a must for /bin/login), use "@" to set it to the # username entered. Maximum length is 8 characters. ... # username entered. Warning: if no "@" is given, the login_program has # no way to know what user name the user entered. # # SAMPLES: # Use this one with my Taylor-UUCP and Taylor-UUCP passwd files. # (Big advantage: tuucp can use the same passwd file for serial dial-in # and tcp dial-in [uucico running as in.uucpd]). Works from 1.05 up. # #U* uucp @ /usr/lib/uucp/uucico -l -u @ # |
#ifconfig
# # SAMPLEinet 192.168.15.21 netmask 0xffffff00 broadcast 192.168.15.255 # Use this one with my Taylor-UUCP and Taylor-UUCP passwd files. # (Big inet 10.0.0.21 netmask 0xffffff00 broadcast 10.0.0.255al dial-in # and tcp dial-in [uucico running as in.uucpd]). Works from 1.05 up. # ether 00:04:76:a1:f2:5b #U* uucp @ /usr/lib/uucp/uucico -l -u @ media: Ethernet autoselect (100baseTX <full-duplex>) # status: active plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500 lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 ppp0: flags=108051<UP,POINTOPOINT,RUNNING,MULTICAST,NEEDSGIANT> mtu 1500 inet 192.168.19.254 --> 192.168.19.1 netmask 0xffffff00 |
#kill `cat /var/run/ppp0.pid `
# and a USER_PROCESS utmp entry with ut_user = "utmp_entry" # # username may be prefixed / suffixed by "*" (wildcard) # # userid is a valid user name from /etc/passwd, or "-" to not set # a login user id and keep the uid/euid root (needed for /bin/login) # # utmp_entry is what will appear in the "who" listing. Use "-" to not # set an utmp entry (a must for /bin/login), use "@" to set it to the # username entered. Maximum length is 8 characters. ... # username entered. Warning: if no "@" is given, the login_program has # no way to know what user name the user entered. # # SAMPLES: # Use this one with my Taylor-UUCP and Taylor-UUCP passwd files. # (Big advantage: tuucp can use the same passwd file for serial dial-in # and tcp dial-in [uucico running as in.uucpd]). Works from 1.05 up. # #U* uucp @ /usr/lib/uucp/uucico -l -u @ # |
#ifconfig
# username entered. Warning: if no "@" is given, the login_program has # no waoptions=9<RXCSUM,VLAN_MTU>he user entered. # # SAMPLEinet 192.168.15.21 netmask 0xffffff00 broadcast 192.168.15.255 # Use this one with my Taylor-UUCP and Taylor-UUCP passwd files. # (Big inet 10.0.0.21 netmask 0xffffff00 broadcast 10.0.0.255al dial-in # and tcp dial-in [uucico running as in.uucpd]). Works from 1.05 up. # ether 00:04:76:a1:f2:5b #U* uucp @ /usr/lib/uucp/uucico -l -u @ media: Ethernet autoselect (100baseTX <full-duplex>) # status: active plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500 lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 ppp0: flags=108010<POINTOPOINT,MULTICAST,NEEDSGIANT> mtu 1500 |
#vi /etc/ppp/options
|
#vi /etc/ppp/options
|
#ifconfig
em0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500 options=b<RXCSUM,TXCSUM,VLAN_MTU> ether 00:13:d4:b2:47:5c media: Ethernet autoselect status: no carrier xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> inet 192.168.15.21 netmask 0xffffff00 broadcast 192.168.15.255 inet 10.0.0.21 netmask 0xffffff00 broadcast 10.0.0.255 ether 00:04:76:a1:f2:5b media: Ethernet autoselect (100baseTX <full-duplex>) status: active plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500 lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 ppp0: flags=108010<POINTOPOINT,MULTICAST,NEEDSGIANT> mtu 1500 |
#vi /etc/ppp/options
|
#pppd
![]() pppd: local/remote LL address required for demand-dialling |
#vi /etc/ppp/options
|
#pppd
![]() # and a USER_PROCESS utmp entry with ut_user = "utmp_entry" # pppd: local/remote LL address required for demand-dialling # # userid is a valid user name from /etc/passwd, or "-" to not set # a login user id and keep the uid/euid root (needed for /bin/login) # # utmp_entry is what will appear in the "who" listing. Use "-" to not # set an utmp entry (a must for /bin/login), use "@" to set it to the # username entered. Maximum length is 8 characters. ... # username entered. Warning: if no "@" is given, the login_program has # no way to know what user name the user entered. # # SAMPLES: # Use this one with my Taylor-UUCP and Taylor-UUCP passwd files. # (Big advantage: tuucp can use the same passwd file for serial dial-in # and tcp dial-in [uucico running as in.uucpd]). Works from 1.05 up. # #U* uucp @ /usr/lib/uucp/uucico -l -u @ # |
#vi /etc/ppp/options
|
#cat /etc/ppp/options
38400 /dev/cuad0 lock debug noauth user user connect '/usr/bin/chat -f /etc/ppp/chat' 192.168.19.254:192.168.19.1 demand idle 60 ipcp-accept-remote ipcp-accept-local |
#vi /etc/ppp/options
|
#vi /etc/ppp/options
|
#cat /etc/ppp/options
192.168.19.254:192.168.19.1 38400 /dev/cuad0 lock debug noauth user user connect '/usr/bin/chat -f /etc/ppp/chat' demand idle 60 ipcp-accept-remote ipcp-accept-local |
#pppd
![]() pppd: local/remote LL address required for demand-dialling |
#man pppd
|
#vi /etc/ppp/options
|
#vi /etc/ppp/options
|
#ps aux | grep pppd
root 59319 0.0 0.0 1592 984 pb S+ 4:08PM 0:00.00 grep pppd |
#ps waux | grep pppd
root 59326 0.0 0.0 1592 984 pb S+ 4:08PM 0:00.00 grep pppd |
#pppd
![]() # and a USER_PROCESS utmp entry with ut_user = "utmp_entry" # pppd: local/remote LL address required for demand-dialling # # userid is a valid user name from /etc/passwd, or "-" to not set # a login user id and keep the uid/euid root (needed for /bin/login) # # utmp_entry is what will appear in the "who" listing. Use "-" to not # set an utmp entry (a must for /bin/login), use "@" to set it to the # username entered. Maximum length is 8 characters. ... # username entered. Warning: if no "@" is given, the login_program has # no way to know what user name the user entered. # # SAMPLES: # Use this one with my Taylor-UUCP and Taylor-UUCP passwd files. # (Big advantage: tuucp can use the same passwd file for serial dial-in # and tcp dial-in [uucico running as in.uucpd]). Works from 1.05 up. # #U* uucp @ /usr/lib/uucp/uucico -l -u @ # |
#vi /etc/ppp/options
|
#pppd 192.168.19.254:192.168.19.1
![]() # and a USER_PROCESS utmp entry with ut_user = "utmp_entry" # pppd: local/remote LL address required for demand-dialling # # userid is a valid user name from /etc/passwd, or "-" to not set # a login user id and keep the uid/euid root (needed for /bin/login) # # utmp_entry is what will appear in the "who" listing. Use "-" to not # set an utmp entry (a must for /bin/login), use "@" to set it to the # username entered. Maximum length is 8 characters. ... # username entered. Warning: if no "@" is given, the login_program has # no way to know what user name the user entered. # # SAMPLES: # Use this one with my Taylor-UUCP and Taylor-UUCP passwd files. # (Big advantage: tuucp can use the same passwd file for serial dial-in # and tcp dial-in [uucico running as in.uucpd]). Works from 1.05 up. # #U* uucp @ /usr/lib/uucp/uucico -l -u @ # |
192.168.19.254:192.168.19.1 38400 /dev/cuad0 lock debug noauth user user connect '/usr/bin/chat -f /etc/ppp/chat' demand idle 60 ipcp-accept-remote ipcp-accept-local
user * password *
58963
Время первой команды журнала | 15:48:01 2006-12- 1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 18:08:48 2006-12- 1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 13.86 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.00 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 1.28 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 1.31 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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