/l3/users/kolya/nt-lnet-2006-06-26/linux2.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 |
|
#vi xorg.conf
77,78c77,78 < HorizSync 20-100 < VertRefresh 30-200 --- > HorizSync 40-80 > VertRefresh 60-150 |
#vi xorg.conf
77,78c77,78 < HorizSync 40-80 < VertRefresh 60-150 --- > HorizSync 40-60 > VertRefresh 60-80 |
#ls
app-defaults rgb.txt xinit Xsession XvMCConfig default-display-manager X xorg.conf Xsession.d Xwrapper.config fonts xdm Xresources Xsession.options |
#dmesg
NET: Registered protocol family 8 NET: Registered protocol family 20 ACPI: (supports S0 S1 S4 S5) RAMDISK: cramfs filesystem found at block 0 RAMDISK: Loading 4716 blocks [1 disk] into ram disk... done. VFS: Mounted root (cramfs filesystem) readonly. Freeing unused kernel memory: 168k freed vesafb: probe of vesafb0 failed with error -6 NET: Registered protocol family 1 Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2 ... agpgart: Putting AGP V2 device at 0000:01:00.0 into 1x mode CSLIP: code copyright 1989 Regents of the University of California PPP generic driver version 2.4.2 PPP BSD Compression module registered PPP Deflate Compression module registered GRE over IPv4 tunneling driver eth0: Setting promiscuous mode. device eth0 entered promiscuous mode device eth0 left promiscuous mode SCSI subsystem initialized |
#apt-get install minicom
Reading package lists... Done Building dependency tree... Done Recommended packages: lrzsz The following NEW packages will be installed minicom 0 upgraded, 1 newly installed, 0 to remove and 4 not upgraded. Need to get 276kB of archives. After unpacking 901kB of additional disk space will be used. Get: 1 http://debian.org.ua testing/main minicom 2.1-10 [276kB] Fetched 276kB in 2s (127kB/s) Selecting previously deselected package minicom. (Reading database ... 75805 files and directories currently installed.) Unpacking minicom (from .../minicom_2.1-10_i386.deb) ... Setting up minicom (2.1-10) ... |
#nmap 195.95.210.89
Starting Nmap 4.10 ( http://www.insecure.org/nmap/ ) at 2006-06-30 11:18 EEST RTTVAR has grown to over 2.3 seconds, decreasing to 2.0 RTTVAR has grown to over 2.3 seconds, decreasing to 2.0 RTTVAR has grown to over 2.3 seconds, decreasing to 2.0 RTTVAR has grown to over 2.3 seconds, decreasing to 2.0 RTTVAR has grown to over 2.3 seconds, decreasing to 2.0 RTTVAR has grown to over 2.3 seconds, decreasing to 2.0 RTTVAR has grown to over 2.3 seconds, decreasing to 2.0 RTTVAR has grown to over 2.3 seconds, decreasing to 2.0 RTTVAR has grown to over 2.3 seconds, decreasing to 2.0 RTTVAR has grown to over 2.3 seconds, decreasing to 2.0 RTTVAR has grown to over 2.3 seconds, decreasing to 2.0 RTTVAR has grown to over 2.3 seconds, decreasing to 2.0 RTTVAR has grown to over 2.3 seconds, decreasing to 2.0 RTTVAR has grown to over 2.3 seconds, decreasing to 2.0 RTTVAR has grown to over 2.3 seconds, decreasing to 2.0 RTTVAR has grown to over 2.3 seconds, decreasing to 2.0 caught SIGINT signal, cleaning up |
#scree -x
-------------------------------------------------------------------------------- Aborted because of window size change. bash: scree: command not found |
#minicom -s
ââââââââââââââââââââââââââââââââââââââââââââââââ â A - Serial Device : /dev/tt0 â â â C - Callin Program : â âââââââââââââââââââââââââ â E - Bps/Par/Bits : 38400 8N1 â â â â F - Hardware Flow Control : Yes â â Configuration saved â â Serial port setup ol : No â ... Screen and keyboard setting? â â Save setup as dfl ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ â â Save setup as.. â â â â â Exit â â Exit from Minicom â ââââââââââââââââââââââââââââ |
#banner hello
[root@linux2:~]# banner hello bash: banner: command not found [root@linux2:~]# apt-get install banner Reading package lists... Done Building dependency tree... Done E: Couldn't find package banner [root@linux2:~]# ap bash: banner: command not found |
#apt-get install banner
Reading package lists... Done Building dependency tree... Done E: Couldn't find package banner |
#apt-cache search banner
bsdmainutils - collection of more utilities from FreeBSD doscan - port scanner for discovering services on large networks ezpublish-src - CMS for e-commerce, e-publishing and intranets freetype1-tools - Bundled tests, demos and tools for FreeType 1 libapache-mod-layout - Apache web page content wrapper libapache2-mod-layout - Apache2 web page content wrapper libroxen-adbanner - Banner rotation module for the Roxen Challenger web server libroxen-floatingcode - FLOAT tag module for the Roxen Challenger web server libroxen-randomfile - File randomizer module for the Roxen Challenger web server linuxlogo - Color ANSI System Logo lprfax - Utility to allow printing to a fax modem nast - packet sniffer and lan analyzer privoxy - Privacy enhancing HTTP Proxy pvpgn - Gaming server that emulates Battle.net(R) raccess - Security Tool to audit remote systems sysvbanner - System-V banner clone xbanner - Beautify your X login screen |
#apt-get install sysvbanner
Selecting previously deselected package sysvbanner. (Reading database ... 75871 files and directories currently installed.) Unpacking sysvbanner (from .../sysvbanner_1.0-12_i386.deb) ... Setting up sysvbanner (1.0-12) ... [root@linux2:~]# Reading package lists... Done Building dependency tree... Done The following NEW packages will be installed sysvbanner 0 upgraded, 1 newly installed, 0 to remove and 4 not upgraded. Need to get 5420B of archives. After unpacking 32.8kB of additional disk space will be used. Get: 1 http://debian.org.ua testing/main sysvbanner 1.0-12 [5420B] Fetched 5420B in 0s (36.3kB/s) Selecting previously deselected package sysvbanner. (Reading database ... 75871 files and directories currently installed.) Unpacking sysvbanner (from .../sysvbanner_1.0-12_i386.deb) ... Setting up sysvbanner (1.0-12) ... |
#ls /dev/tty*
/dev/tty4 /dev/ttyACM3 /dev/ttyda /dev/ttyqe /dev/ttytd /dev/ttyw1 /dev/ttyz5 /dev/tty40 /dev/ttyACM4 /dev/ttydb /dev/ttyqf /dev/ttyte /dev/ttyw2 /dev/ttyz6 /dev/tty41 /dev/ttyACM5 /dev/ttydc /dev/ttyr0 /dev/ttytf /dev/ttyw3 /dev/ttyz7 /dev/tty42 /dev/ttyACM6 /dev/ttydd /dev/ttyr1 /dev/ttyu0 /dev/ttyw4 /dev/ttyz8 /dev/tty43 /dev/ttyACM7 /dev/ttyde /dev/ttyr2 /dev/ttyu1 /dev/ttyw5 /dev/ttyz9 /dev/tty44 /dev/ttyACM8 /dev/ttydf /dev/ttyr3 /dev/ttyu2 /dev/ttyw6 /dev/ttyza /dev/tty45 /dev/ttyACM9 /dev/ttye0 /dev/ttyr4 /dev/ttyu3 /dev/ttyw7 /dev/ttyzb /dev/tty46 /dev/ttyad /dev/ttye1 /dev/ttyr5 /dev/ttyu4 /dev/ttyw8 /dev/ttyzc /dev/tty47 /dev/ttyae /dev/ttye2 /dev/ttyr6 /dev/ttyu5 /dev/ttyw9 /dev/ttyzd /dev/tty48 /dev/ttyaf /dev/ttye3 /dev/ttyr7 /dev/ttyu6 /dev/ttywa /dev/ttyze /dev/tty49 /dev/ttyb0 /dev/ttye4 /dev/ttyr8 /dev/ttyu7 /dev/ttywb /dev/ttyzf /dev/tty5 /dev/ttyb1 /dev/ttye5 /dev/ttyr9 /dev/ttyu8 /dev/ttywc /dev/tty50 /dev/ttyb2 /dev/ttye6 /dev/ttyra /dev/ttyu9 /dev/ttywd /dev/tty51 /dev/ttyb3 /dev/ttye7 /dev/ttyrb /dev/ttyua /dev/ttywe /dev/tty52 /dev/ttyb4 /dev/ttye8 /dev/ttyrc /dev/ttyub /dev/ttywf /dev/tty53 /dev/ttyb5 /dev/ttye9 /dev/ttyrd /dev/ttyuc /dev/ttyx0 /dev/tty54 /dev/ttyb6 /dev/ttyea /dev/ttyre /dev/ttyud /dev/ttyx1 |
#apt-get install mgetty
[root@linux2:~]# Reading package lists... Done Building dependency tree... Done Suggested packages: mgetty-fax The following NEW packages will be installed mgetty 0 upgraded, 1 newly installed, 0 to remove and 4 not upgraded. Need to get 173kB of archives. After unpacking 401kB of additional disk space will be used. Get: 1 http://debian.org.ua testing/main mgetty 1.1.35-2 [173kB] Fetched 173kB in 1s (109kB/s) Selecting previously deselected package mgetty. (Reading database ... 75876 files and directories currently installed.) Unpacking mgetty (from .../mgetty_1.1.35-2_i386.deb) ... Setting up mgetty (1.1.35-2) ... |
#vi /etc/inittab
68c68 < #T3:23:respawn:/sbin/mgetty -x0 -s 57600 ttyS3 --- > T0:23:respawn:/sbin/mgetty -x0 -s 57600 ttyS0 |
#init q
|
#vi /etc/mgetty/
|
#vi /etc/mgetty/mgetty.config
|
#vi /etc/inittab
68c68 < T0:23:respawn:/sbin/mgetty -x0 -s 57600 ttyS0 --- > #T0:23:respawn:/sbin/mgetty -x0 -s 57600 ttyS0 |
#init q
|
#minicom
Welcome to minicom 2.1 OPTIONS: History Buffer, F-key Macros, Search History Buffer, I18n Compiled on Nov 4 2005, 18:10:30. Press CTRL-A Z for help on special keys CTRL-A Z for help | 38400 8N1 | NOR | Minicom 2.1 | VT102 | Offline |
#minicom -s
Welcome to minicom 2.1 OPTIONS: History Buffer, F-key Macros, Search History Buffer, I18n Compiled on Nov 4 2005, 18:10:30. Press CTRL-A Z for help on special keys OK atc10=00 OK atd230 RINGING CONNECT 33600/ARQ/V34/LAPM CTRL-A Z for help | 38400 8N1 | NOR | Minicom 2.1 | VT102 | Offline |
#cd /etc/mgetty/
x A - Serial Device : /dev/ttyS0 x x C - Callin Program : x lqqqqqqqqqqqqqqqqqqqqqqqk x E - Bps/Par/Bits : 38400 8N1 x x x x F - Hardware Flow Control : Yes x x G - Sof Serial port setup x x Modem and dialing x x Chan Screen and keyboard x mqqqqqqqq Save setup as dfl qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj Save setup as.. |
#ls
dialin.config login.config mgetty.config |
#vi mgetty.config
46c46 < #port ttyS0 --- > port ttyS0 48c48 < # data-only y --- > data-only y |
#vi mgetty.config
|
#tail /var/log/m
mail.err mail.info mail.log mail.warn messages mgetty/ |
#tail /var/log/m
mail.err mail.info mail.log mail.warn messages mgetty/ |
#vi mgetty.config
|
#man mgetty
|
#vi /etc/inittab
|
#ssh clint@192.168.15.15
individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. eto motd.tail No mail. Last login: Fri Jun 30 09:29:49 2006 clint~$ ps aux | grep mgetty root 4279 0.0 0.0 1756 664 ? Ss 10:10 0:00 /sbin/mgetty -x0 -s 57600 ttyS0 clint 4368 0.0 0.0 3952 852 pts/4 S+ 10:14 0:00 grep mgetty clint~$ sudo kill 4279 clint~$ ps aux | grep mgetty root 4370 0.5 0.0 1760 680 ? Ss 10:14 0:00 /sbin/mgetty -x9 -s 57600 -m "" ATC10=0 OK ttyS0 clint 4372 0.0 0.0 3768 580 pts/4 R+ 10:14 0:00 grep mgetty clint~$ exit logout Connection to 192.168.15.15 closed. |
#minicom -s
: E749: empty buffer : E749: empty buffer :q user@sergix:~$ exit logout ATC10=0 OK ath OK Online 00:01 |
#less /etc/mgetty/login.config
|
#vi /etc/ppp/pap-secrets
|
#vi /etc/ppp/options.ttyS0
|
#vi /etc/ppp/options
|
#ssh clint@192.168.15.15
197 # authentication purposes (overrides the name option). 198 #usehostname 199 200 # Set the assumed name of the remote system for authentication purposes 201 # to <n>. 202 #remotename <n> 203 204 # Add an entry to this system's ARP [Address Resolution Protocol] 205 # table with the IP address of the peer and the Ethernet address of this 206 # system. 207 proxyarp 208 209 # Use the system password database for authenticating the peer using 210 # PAP. Note: mgetty already provides this option. If this is specified 211 # then dialin from users using a script under Linux to fire up ppp wont work. 212 # login 213 213,0-1 56% |
#ps aux | grep mgetty
root 5428 0.0 0.0 3340 616 pts/10 R+ 10:31 0:00 grep mgetty |
#ps waux | grep mgetty
root 5435 0.0 0.0 3340 620 pts/10 S+ 10:31 0:00 grep mgetty |
#r
ââââââââââââââââââââââââââââââââââââââââââââââââ â A - Serial Device : /dev/tt0 â â â C - Callin Program : â âââââââââââââââââââââââââ â E - Bps/Par/Bits : 38400 8N1 â â â â F - Hardware Flow Control : Yes â â Configuration saved â â Serial port setup ol : No â ... â Save setup as dfl ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ â â Save setup as.. â â â â â Exit â â Exit from Minicom â ââââââââââââââââââââââââââââ bash: r: command not found |
#rm /etc/ppp/options.ttyS0
|
#vi /etc/ppp/options
|
#vi /etc/ppp/pap-secrets
|
#vi /etc/ppp/pap-secrets
43c43 < --- > user * password * |
#minicom
Welcome to minicom 2.1 OPTIONS: History Buffer, F-key Macros, Search History Buffer, I18n Compiled on Nov 4 2005, 18:10:30. Press CTRL-A Z for help on special keys AT S7=45 S0=0 L1 V1 X4 &c1 E1 Q0 OK atd230 CONNECT 33600/ARQ CTRL-A Z for help | 57600 8N1 | NOR | Minicom 2.1 | VT102 | Offline |
#minicom
Welcome to minicom 2.1 OPTIONS: History Buffer, F-key Macros, Search History Buffer, I18n Compiled on Nov 4 2005, 18:10:30. Press CTRL-A Z for help on special keys Debian GNU/Linux ttyS0 57600 (33600/ARQ/V34/LAPM/V42BIS) . OK atc10=0 OK atd230 RINGING CONNECT 33600/ARQ/V34/LAPM/V42BIS CTRL-A Z for help | 57600 8N1 | NOR | Minicom 2.1 | VT102 | Online 00:00 |
#pppd nodetach debug /dev/ttyS0 38400
└──────────────────────────┘ using channel 1 Using interface ppp0 Connect: ppp0 <--> /dev/ttyS0 sent [LCP ConfReq id=0x1 <asyncmap 0x0> <auth pap> <magic 0x8be443c> <pcomp> <accomp>] sent [LCP ConfReq id=0x1 <asyncmap 0x0> <auth pap> <magic 0x8be443c> <pcomp> <accomp>] sent [LCP ConfReq id=0x1 <asyncmap 0x0> <auth pap> <magic 0x8be443c> <pcomp> <accomp>] sent [LCP ConfReq id=0x1 <asyncmap 0x0> <auth pap> <magic 0x8be443c> <pcomp> <accomp>] sent [LCP ConfReq id=0x1 <asyncmap 0x0> <auth pap> <magic 0x8be443c> <pcomp> <accomp>] sent [LCP ConfReq id=0x1 <asyncmap 0x0> <auth pap> <magic 0x8be443c> <pcomp> <accomp>] sent [LCP ConfReq id=0x1 <asyncmap 0x0> <auth pap> <magic 0x8be443c> <pcomp> <accomp>] sent [LCP ConfReq id=0x1 <asyncmap 0x0> <auth pap> <magic 0x8be443c> <pcomp> <accomp>] sent [LCP ConfReq id=0x1 <asyncmap 0x0> <auth pap> <magic 0x8be443c> <pcomp> <accomp>] sent [LCP ConfReq id=0x1 <asyncmap 0x0> <auth pap> <magic 0x8be443c> <pcomp> <accomp>] LCP: timeout sending Config-Requests Connection terminated. Modem hangup |
#vi /etc/ppp/options
|
#minicom -s
OPTIONS: History Buffer, F-key Macros, Search History Buffer, I18n Compiled on Nov 4 2005, 18:10:30. Press CTRL-A Z for help on special keys AT S7=45 S0=0 L1 V1 X4 &c1 E1 Q0 OK Debian GNU/Linux ttyS0 57600 (33600/ARQ/V34/LAPM/V42BIS) . NO CARRIER atc10=0 OK atd230 RINGING CONNECT 33600/ARQ/V34/LAPM/V42BIS CTRL-A Z for help | 57600 8N1 | NOR | Minicom 2.1 | VT102 | Online 00:00 |
#pppd nodetach debug /dev/ttyS0 57600
using channel 2 Using interface ppp0 Connect: ppp0 <--> /dev/ttyS0 sent [LCP ConfReq id=0x1 <asyncmap 0x0> <auth pap> <magic 0x2a28c06d> <pcomp> <accomp>] rcvd [LCP ConfReq id=0x1 <asyncmap 0x0> <auth chap MD5> <magic 0x50252ff4> <pcomp> <accomp>] sent [LCP ConfNak id=0x1 <auth pap>] rcvd [LCP ConfReq id=0x2 <asyncmap 0x0> <auth pap> <magic 0x50252ff4> <pcomp> <accomp>] sent [LCP ConfAck id=0x2 <asyncmap 0x0> <auth pap> <magic 0x50252ff4> <pcomp> <accomp>] sent [LCP ConfReq id=0x1 <asyncmap 0x0> <auth pap> <magic 0x2a28c06d> <pcomp> <accomp>] rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <auth pap> <magic 0x2a28c06d> <pcomp> <accomp>] ... Script /etc/ppp/ip-up started (pid 5701) Script /etc/ppp/ip-up finished (pid 5701), status = 0x0 Terminating on signal 2 Connect time 10.0 minutes. Sent 756 bytes, received 756 bytes. Script /etc/ppp/ip-down started (pid 5778) sent [LCP TermReq id=0x2 "User request"] Script /etc/ppp/ip-down finished (pid 5778), status = 0x0 rcvd [LCP TermAck id=0x2] Connection terminated. |
#vi /etc/ppp/chat
|
#man chat
|
#which chat
ââââââââââââââââââââââââââââââââââââââââââââââââ â A - Serial Device : /dev/tt0 â â â C - Callin Program : â âââââââââââââââââââââââââ â E - Bps/Par/Bits : 38400 8N1 â â â â F - Hardware Flow Control : Yes â â Configuration saved â â Serial port setup ol : No â ... â Save setup as dfl ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ â â Save setup as.. â â â â â Exit â â Exit from Minicom â ââââââââââââââââââââââââââââ /usr/sbin/chat |
#vi /etc/ppp/options
348a349,350 > connect "/usr/sbin/chat -f /etc/ppp/chat" > |
#pppd nodetach debug /dev/ttyS0 57600
Deflate (15) compression enabled rcvd [IPCP ConfNak id=0x1 <addr 192.168.15.33>] sent [IPCP ConfReq id=0x2 <compress VJ 0f 01> <addr 192.168.15.33>] rcvd [IPCP ConfAck id=0x2 <compress VJ 0f 01> <addr 192.168.15.33>] found interface eth0 for proxy arp local IP address 192.168.15.33 remote IP address 192.168.15.32 Script /etc/ppp/ip-up started (pid 5879) Script /etc/ppp/ip-up finished (pid 5879), status = 0x0 Terminating on signal 2 Connect time 0.1 minutes. Sent 0 bytes, received 0 bytes. Script /etc/ppp/ip-down started (pid 5886) sent [LCP TermReq id=0x2 "User request"] rcvd [LCP TermAck id=0x2] Connection terminated. Script /etc/ppp/ip-down finished (pid 5886), status = 0x0 |
#pppd /dev/ttyS0 57600
|
#ifconfig ppp0
ââââââââââââââââââââââââââââââââââââââââââââââââ â A - Serial Device : /dev/tt0 â â â C - Callin Program : â âââââââââââââââââââââââââ â E - Bps/Par/Bits : 38400 8N1 â â â â F - Hardware Flow Control : Yes â â Configuration saved â â Serial port setup ol : No â ... â Save setup as dfl ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ â â Save setup as.. â â â â â Exit â â Exit from Minicom â ââââââââââââââââââââââââââââ ppp0: error fetching interface information: Device not found |
#ifconfig ppp0
ppp0 Link encap:Point-to-Point Protocol POINTOPOINT NOARP MULTICAST MTU:1500 Metric:1 RX packets:0 errors:1 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:3 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) |
#ifconfig ppp0
â Serial port setup ol : No â â â Modem and dialing â tion]âââââââ âââââââââââââââââââââââââ Screen and keyboard setting? â â Save setup as dfl ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ â â Save setup as.. â â â â â Exit â â Exit from Minicom â ââââââââââââââââââââââââââââ ppp0 Link encap:Point-to-Point Protocol inet addr:192.168.15.33 P-t-P:192.168.15.32 Mask:255.255.255.255 UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1 RX packets:5 errors:1 dropped:0 overruns:0 frame:0 TX packets:5 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:3 RX bytes:72 (72.0 b) TX bytes:78 (78.0 b) |
#ifconfig ppp0 down
ââââââââââââââââââââââââââââââââââââââââââââââââ â A - Serial Device : /dev/tt0 â â â C - Callin Program : â âââââââââââââââââââââââââ â E - Bps/Par/Bits : 38400 8N1 â â â â F - Hardware Flow Control : Yes â â Configuration saved â â Serial port setup ol : No â ... Screen and keyboard setting? â â Save setup as dfl ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ â â Save setup as.. â â â â â Exit â â Exit from Minicom â ââââââââââââââââââââââââââââ |
#ifconfig ppp0
ppp0 Link encap:Point-to-Point Protocol inet addr:192.168.15.33 P-t-P:192.168.15.32 Mask:255.255.255.255 POINTOPOINT NOARP MULTICAST MTU:1500 Metric:1 RX packets:5 errors:1 dropped:0 overruns:0 frame:0 TX packets:5 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:3 RX bytes:72 (72.0 b) TX bytes:78 (78.0 b) |
#ifconfig ppp0 up
ââââââââââââââââââââââââââââââââââââââââââââââââ â A - Serial Device : /dev/tt0 â â â C - Callin Program : â âââââââââââââââââââââââââ â E - Bps/Par/Bits : 38400 8N1 â â â â F - Hardware Flow Control : Yes â â Configuration saved â â Serial port setup ol : No â ... Screen and keyboard setting? â â Save setup as dfl ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ â â Save setup as.. â â â â â Exit â â Exit from Minicom â ââââââââââââââââââââââââââââ |
#ifconfig ppp0
ppp0 Link encap:Point-to-Point Protocol inet addr:192.168.15.33 P-t-P:192.168.15.32 Mask:255.255.255.255 UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1 RX packets:5 errors:1 dropped:0 overruns:0 frame:0 TX packets:5 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:3 RX bytes:72 (72.0 b) TX bytes:78 (78.0 b) |
#ls /var/run/
â F - Hardware Flow Control : Yes â â Configuration saved â â Serial port setup ol : No â â â Modem and dialing â tion]âââââââ âââââââââââââââââââââââââ Screen and keyboard setting? â â Save setup as dfl ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ â â ... â Exit â â Exit from Minicom â ââââââââââââââââââââââââââââ apache.pid dirmngr klogd.pid ppp0.pid sshd xdmctl arpwatch-eth0.pid dirmngr.pid lpd.pid pppconfig sshd.pid xinetd.pid arpwatch-eth1.pid exim4 mgetty.pid.ttyS0 pppd2.tdb sudo atd.pid gpm.pid motd rpc.statd.pid syslogd.pid crond.pid identd named.pid screen usb crond.reboot john ndc sendmail utmp dbus kdm.pid popa3d.pid squid.pid xauth |
#cat /var/run/ppp0.pid
5912 |
#kill 5912
ââââââââââââââââââââââââââââââââââââââââââââââââ â A - Serial Device : /dev/tt0 â â â C - Callin Program : â âââââââââââââââââââââââââ â E - Bps/Par/Bits : 38400 8N1 â â â â F - Hardware Flow Control : Yes â â Configuration saved â â Serial port setup ol : No â ... Screen and keyboard setting? â â Save setup as dfl ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ â â Save setup as.. â â â â â Exit â â Exit from Minicom â ââââââââââââââââââââââââââââ |
#vi /etc/ppp/options
351c351,352 < --- > idle 60 > demand |
#pppd /dev/ttyS0 57600
ââââââââââââââââââââââââââââââââââââââââââââââââ â A - Serial Device : /dev/tt0 â â â C - Callin Program : â âââââââââââââââââââââââââ â E - Bps/Par/Bits : 38400 8N1 â â â â F - Hardware Flow Control : Yes â â Configuration saved â â Serial port setup ol : No â ... Screen and keyboard setting? â â Save setup as dfl ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ â â Save setup as.. â â â â â Exit â â Exit from Minicom â ââââââââââââââââââââââââââââ |
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:04:79:67:96:71 inet addr:192.168.15.2 Bcast:192.168.15.255 Mask:255.255.255.0 inet6 addr: fe80::204:79ff:fe67:9671/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:21456 errors:0 dropped:0 overruns:0 frame:0 TX packets:18943 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:4373389 (4.1 MiB) TX bytes:3237820 (3.0 MiB) Interrupt:209 Base address:0xdc00 lo Link encap:Local Loopback ... TX packets:1762 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:2295549 (2.1 MiB) TX bytes:2295549 (2.1 MiB) ppp0 Link encap:Point-to-Point Protocol inet addr:192.168.15.2 P-t-P:10.112.112.112 Mask:255.255.255.255 UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:3 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) |
#ping 10.112.112.112
â C - Callin Program : â âââââââââââââââââââââââââ â E - Bps/Par/Bits : 38400 8N1 â â â â F - Hardware Flow Control : Yes â â Configuration saved â â Serial port setup ol : No â â â Modem and dialing â tion]âââââââ âââââââââââââââââââââââââ ... â â Save setup as.. â â â â â Exit â â Exit from Minicom â ââââââââââââââââââââââââââââ PING 10.112.112.112 (10.112.112.112) 56(84) bytes of data. --- 10.112.112.112 ping statistics --- 35 packets transmitted, 0 received, 100% packet loss, time 33996ms |
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:04:79:67:96:71 inet addr:192.168.15.2 Bcast:192.168.15.255 Mask:255.255.255.0 inet6 addr: fe80::204:79ff:fe67:9671/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:21541 errors:0 dropped:0 overruns:0 frame:0 TX packets:19027 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:4379888 (4.1 MiB) TX bytes:3256771 (3.1 MiB) Interrupt:209 Base address:0xdc00 lo Link encap:Local Loopback ... TX packets:1766 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:2295967 (2.1 MiB) TX bytes:2295967 (2.1 MiB) ppp0 Link encap:Point-to-Point Protocol inet addr:192.168.15.33 P-t-P:192.168.15.32 Mask:255.255.255.255 UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1 RX packets:5 errors:1 dropped:0 overruns:0 frame:0 TX packets:7 errors:0 dropped:24 overruns:0 carrier:0 collisions:0 txqueuelen:3 RX bytes:72 (72.0 b) TX bytes:246 (246.0 b) |
#vi /etc/ppp/options
352a353 > :192.168.15.32 |
#kill `cat /var/run/ppp0.pid `
ââââââââââââââââââââââââââââââââââââââââââââââââ â A - Serial Device : /dev/tt0 â â â C - Callin Program : â âââââââââââââââââââââââââ â E - Bps/Par/Bits : 38400 8N1 â â â â F - Hardware Flow Control : Yes â â Configuration saved â â Serial port setup ol : No â ... Screen and keyboard setting? â â Save setup as dfl ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ â â Save setup as.. â â â â â Exit â â Exit from Minicom â ââââââââââââââââââââââââââââ |
#pppd /dev/ttyS0 57600
|
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:04:79:67:96:71 inet addr:192.168.15.2 Bcast:192.168.15.255 Mask:255.255.255.0 inet6 addr: fe80::204:79ff:fe67:9671/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:22049 errors:0 dropped:0 overruns:0 frame:0 TX packets:19464 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:4418640 (4.2 MiB) TX bytes:3329386 (3.1 MiB) Interrupt:209 Base address:0xdc00 lo Link encap:Local Loopback ... TX packets:1770 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:2296385 (2.1 MiB) TX bytes:2296385 (2.1 MiB) ppp0 Link encap:Point-to-Point Protocol inet addr:192.168.15.2 P-t-P:192.168.15.32 Mask:255.255.255.255 UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:3 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) |
#ping 192.168.15.32
64 bytes from 192.168.15.32: icmp_seq=33 ttl=64 time=108 ms 64 bytes from 192.168.15.32: icmp_seq=34 ttl=64 time=109 ms 64 bytes from 192.168.15.32: icmp_seq=35 ttl=64 time=106 ms 64 bytes from 192.168.15.32: icmp_seq=36 ttl=64 time=110 ms 64 bytes from 192.168.15.32: icmp_seq=37 ttl=64 time=108 ms 64 bytes from 192.168.15.32: icmp_seq=38 ttl=64 time=107 ms 64 bytes from 192.168.15.32: icmp_seq=39 ttl=64 time=105 ms 64 bytes from 192.168.15.32: icmp_seq=40 ttl=64 time=104 ms 64 bytes from 192.168.15.32: icmp_seq=41 ttl=64 time=104 ms 64 bytes from 192.168.15.32: icmp_seq=42 ttl=64 time=104 ms 64 bytes from 192.168.15.32: icmp_seq=43 ttl=64 time=106 ms 64 bytes from 192.168.15.32: icmp_seq=44 ttl=64 time=105 ms 64 bytes from 192.168.15.32: icmp_seq=45 ttl=64 time=107 ms --- 192.168.15.32 ping statistics --- 45 packets transmitted, 19 received, 57% packet loss, time 44021ms rtt min/avg/max/mdev = 104.987/108.893/129.970/5.351 ms |
#ping -s 1000 192.168.15.32
│ Exit from Minicom │ └──────────────────────────┘ PING 192.168.15.32 (192.168.15.32) 1000(1028) bytes of data. 1008 bytes from 192.168.15.32: icmp_seq=1 ttl=64 time=280 ms 1008 bytes from 192.168.15.32: icmp_seq=2 ttl=64 time=115 ms 1008 bytes from 192.168.15.32: icmp_seq=3 ttl=64 time=120 ms 1008 bytes from 192.168.15.32: icmp_seq=4 ttl=64 time=120 ms 1008 bytes from 192.168.15.32: icmp_seq=5 ttl=64 time=116 ms 1008 bytes from 192.168.15.32: icmp_seq=6 ttl=64 time=114 ms 1008 bytes from 192.168.15.32: icmp_seq=7 ttl=64 time=121 ms 1008 bytes from 192.168.15.32: icmp_seq=8 ttl=64 time=116 ms 1008 bytes from 192.168.15.32: icmp_seq=9 ttl=64 time=115 ms 1008 bytes from 192.168.15.32: icmp_seq=10 ttl=64 time=118 ms --- 192.168.15.32 ping statistics --- 10 packets transmitted, 10 received, 0% packet loss, time 9017ms rtt min/avg/max/mdev = 114.808/134.014/280.068/48.734 ms |
#ping -s 500 192.168.15.32
│ Exit │ │ Exit from Minicom │ └──────────────────────────┘ PING 192.168.15.32 (192.168.15.32) 500(528) bytes of data. 508 bytes from 192.168.15.32: icmp_seq=1 ttl=64 time=114 ms 508 bytes from 192.168.15.32: icmp_seq=2 ttl=64 time=116 ms 508 bytes from 192.168.15.32: icmp_seq=3 ttl=64 time=113 ms 508 bytes from 192.168.15.32: icmp_seq=4 ttl=64 time=111 ms 508 bytes from 192.168.15.32: icmp_seq=5 ttl=64 time=111 ms 508 bytes from 192.168.15.32: icmp_seq=6 ttl=64 time=116 ms 508 bytes from 192.168.15.32: icmp_seq=7 ttl=64 time=116 ms 508 bytes from 192.168.15.32: icmp_seq=8 ttl=64 time=113 ms 508 bytes from 192.168.15.32: icmp_seq=9 ttl=64 time=111 ms --- 192.168.15.32 ping statistics --- 9 packets transmitted, 9 received, 0% packet loss, time 8007ms rtt min/avg/max/mdev = 111.670/114.280/116.984/2.132 ms |
#ping -s 2500 192.168.15.32
PING 192.168.15.32 (192.168.15.32) 2500(2528) bytes of data. 2508 bytes from 192.168.15.32: icmp_seq=1 ttl=64 time=155 ms 2508 bytes from 192.168.15.32: icmp_seq=2 ttl=64 time=140 ms 2508 bytes from 192.168.15.32: icmp_seq=3 ttl=64 time=141 ms 2508 bytes from 192.168.15.32: icmp_seq=4 ttl=64 time=126 ms 2508 bytes from 192.168.15.32: icmp_seq=5 ttl=64 time=125 ms 2508 bytes from 192.168.15.32: icmp_seq=6 ttl=64 time=128 ms --- 192.168.15.32 ping statistics --- 6 packets transmitted, 6 received, 0% packet loss, time 5006ms rtt min/avg/max/mdev = 125.974/136.692/155.461/10.543 ms |
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:04:79:67:96:71 inet addr:192.168.15.2 Bcast:192.168.15.255 Mask:255.255.255.0 inet6 addr: fe80::204:79ff:fe67:9671/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:22565 errors:0 dropped:0 overruns:0 frame:0 TX packets:19936 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:4457046 (4.2 MiB) TX bytes:3405311 (3.2 MiB) Interrupt:209 Base address:0xdc00 lo Link encap:Local Loopback ... TX packets:1778 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:2297221 (2.1 MiB) TX bytes:2297221 (2.1 MiB) ppp0 Link encap:Point-to-Point Protocol inet addr:192.168.15.33 P-t-P:192.168.15.32 Mask:255.255.255.255 UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1 RX packets:55 errors:1 dropped:0 overruns:0 frame:0 TX packets:57 errors:0 dropped:25 overruns:0 carrier:0 collisions:0 txqueuelen:3 RX bytes:31988 (31.2 KiB) TX bytes:32162 (31.4 KiB) |
#nmap 195.95.210.89
ââââââââââââââââââââââââââââââââââââââââââââââââ â A - Serial Device : /dev/tt0 â â â C - Callin Program : â âââââââââââââââââââââââââ â E - Bps/Par/Bits : 38400 8N1 â â â â F - Hardware Flow Control : Yes â â Configuration saved â â Serial port setup ol : No â ... Save setup as dfl ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ â â Save setup as.. â â â â â Exit â â Exit from Minicom â ââââââââââââââââââââââââââââ Starting Nmap 4.10 ( http://www.insecure.org/nmap/ ) at 2006-06-30 11:44 EEST caught SIGINT signal, cleaning up |
#ping google.com.ua
PING google.com.ua (216.239.39.99) 56(84) bytes of data. 64 bytes from 216.239.39.99: icmp_seq=1 ttl=234 time=325 ms --- google.com.ua ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 325.173/325.173/325.173/0.000 ms |
#nmap 216.239.39.99
Starting Nmap 4.10 ( http://www.insecure.org/nmap/ ) at 2006-06-30 11:26 EEST RTTVAR has grown to over 2.3 seconds, decreasing to 2.0 RTTVAR has grown to over 2.3 seconds, decreasing to 2.0 caught SIGINT signal, cleaning up |
#telnet 195.95.210.89 25
Trying 195.95.210.89... telnet: Unable to connect to remote host: Connection refused |
#telnet 195.95.210.89 80
Trying 195.95.210.89... Connected to 195.95.210.89. Escape character is '^]'. ^] telnet> q Connection closed. |
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:04:79:67:96:71 inet addr:192.168.15.2 Bcast:192.168.15.255 Mask:255.255.255.0 inet6 addr: fe80::204:79ff:fe67:9671/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:35619 errors:0 dropped:0 overruns:0 frame:0 TX packets:35347 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:13957494 (13.3 MiB) TX bytes:10912049 (10.4 MiB) Interrupt:209 Base address:0xdc00 lo Link encap:Local Loopback ... TX packets:3018 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:4527689 (4.3 MiB) TX bytes:4527689 (4.3 MiB) ppp0 Link encap:Point-to-Point Protocol inet addr:192.168.15.33 P-t-P:192.168.15.32 Mask:255.255.255.255 UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1 RX packets:55 errors:1 dropped:0 overruns:0 frame:0 TX packets:57 errors:0 dropped:25 overruns:0 carrier:0 collisions:0 txqueuelen:3 RX bytes:31988 (31.2 KiB) TX bytes:32162 (31.4 KiB) |
#cat /etc/ppp/chat
â E - Bps/Par/Bits : 38400 8N1 â â â â F - Hardware Flow Control : Yes â â Configuration saved â â Serial port setup ol : No â â â Modem and dialing â tion]âââââââ âââââââââââââââââââââââââ Screen and keyboard setting? â â ... â â â Exit â â Exit from Minicom â ââââââââââââââââââââââââââââ "" ATC10=0 OK ATD230 CONNECT "" |
#vi /etc/inittab
|
#evolution
Xlib: connection to ":0.0" refused by server Xlib: Invalid MIT-MAGIC-COOKIE-1 key (evolution-2.6:7417): Gtk-WARNING **: cannot open display: |
#ssh root@m01
ââââââââââââââââââââââââââââââââââââââââââââââââ â A - Serial Device : /dev/tt0 â â â C - Callin Program : â âââââââââââââââââââââââââ â E - Bps/Par/Bits : 38400 8N1 â â â â F - Hardware Flow Control : Yes â â Configuration saved â â Serial port setup ol : No â ... â Save setup as dfl ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ â â Save setup as.. â â â â â Exit â â Exit from Minicom â ââââââââââââââââââââââââââââ ssh: connect to host m01 port 22: Connection refused |
#ssh root@192.168.15.22
|
#ssh root@192.168.15.1
ssh: connect to host 192.168.15.1 port 22: Connection refused |
#ssh root@192.168.15.1
ââââââââââââââââââââââââââââââââââââââââââââââââ â A - Serial Device : /dev/tt0 â â â C - Callin Program : â âââââââââââââââââââââââââ â E - Bps/Par/Bits : 38400 8N1 â â â â F - Hardware Flow Control : Yes â â Configuration saved â â Serial port setup ol : No â ... â Save setup as dfl ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ â â Save setup as.. â â â â â Exit â â Exit from Minicom â ââââââââââââââââââââââââââââ ssh: connect to host 192.168.15.1 port 22: Connection refused |
#ssh root@m01
Modem and dialing â tion]âââââââ âââââââââââââââââââââââââ Screen and keyboard setting? â â Save setup as dfl ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ â â Save setup as.. â â â â â Exit â â Exit from Minicom â ââââââââââââââââââââââââââââ Last login: Thu Jun 29 16:38:51 2006 Linux linux1.unix.nt 2.6.8-2-686-smp #1 SMP Mon Jan 24 02:32:52 EST 2005 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. |
#less /etc/inittab
|
#ps aux | grep mgetty
root 6515 0.0 0.0 1796 692 ? Ss 12:24 0:00 /sbin/mgetty -x0 -s 57600 ttyS0 root 6543 0.0 0.0 3640 780 pts/5 S+ 12:24 0:00 grep mgetty |
#ps aux | grep mget
ââââââââââââââââââââââââââââââââââââââââââââââââ â A - Serial Device : /dev/tt0 â â â C - Callin Program : â âââââââââââââââââââââââââ â E - Bps/Par/Bits : 38400 8N1 â â â â F - Hardware Flow Control : Yes â â Configuration saved â â Serial port setup ol : No â ... â Save setup as dfl ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ â â Save setup as.. â â â â â Exit â â Exit from Minicom â ââââââââââââââââââââââââââââ root 7126 0.0 0.0 3640 772 pts/5 R+ 12:50 0:00 grep mget |
#tail /var/log/messages
Jun 30 11:49:12 linux1 -- MARK -- Jun 30 12:09:12 linux1 -- MARK -- Jun 30 12:19:43 linux1 kernel: CSLIP: code copyright 1989 Regents of the University of California Jun 30 12:19:43 linux1 kernel: PPP generic driver version 2.4.2 Jun 30 12:21:49 linux1 kernel: ip_tables: (C) 2000-2002 Netfilter core team Jun 30 12:40:46 linux1 pppd[6893]: pppd 2.4.4b1 started by a_ppp, uid 0 Jun 30 12:40:46 linux1 pppd[6893]: Using interface ppp0 Jun 30 12:40:46 linux1 pppd[6893]: local IP address 192.168.15.1 Jun 30 12:40:46 linux1 pppd[6893]: remote IP address 10.112.112.112 Jun 30 12:45:49 linux1 pppd[6893]: Hangup (SIGHUP) |
â E - Bps/Par/Bits : 38400 8N1 â â â â F - Hardware Flow Control : Yes â â Configuration saved â â Serial port setup ol : No â â â Modem and dialing â tion]âââââââ âââââââââââââââââââââââââ Screen and keyboard setting? â â Save setup as dfl ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ â â Save setup as.. â â â â â Exit â â Exit from Minicom â ââââââââââââââââââââââââââââ "" ATC10=0 OK ATD230 CONNECT ""
5912
Время первой команды журнала | 09:39:58 2006- 6-30 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 12:50:57 2006- 6-30 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 15.84 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 3.96 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 3.18 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.53 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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