/l3/users/sasha-minsk/sl-voip-2016-03/asterisk3.unix.sl/user :1 :2 :3 |
|
$apt-cache
apt 1.0.9.8.2 for amd64 compiled on Sep 15 2015 21:44:33 Usage: apt-cache [options] command apt-cache [options] showpkg pkg1 [pkg2 ...] apt-cache [options] showsrc pkg1 [pkg2 ...] apt-cache is a low-level tool used to query information from APT's binary cache files Commands: gencaches - Build both the package and source cache showpkg - Show some general information for a single package showsrc - Show source records ... policy - Show policy settings Options: -h This help text. -p=? The package cache. -s=? The source cache. -q Disable progress indicator. -i Show only important deps for the unmet command. -c=? Read this configuration file -o=? Set an arbitrary configuration option, eg -o dir::cache=/tmp See the apt-cache(8) and apt.conf(5) manual pages for more information. |
$apt-cache state
E: Invalid operation state |
$apt-cache stat
E: Invalid operation stat |
$apt-cache search
E: You must give at least one search pattern |
$apt-cache_search
bash: apt-cache_search: command not found |
$apt-cache-search
bash: apt-cache-search: command not found |
$apt-cache stats
Total package names: 54141 (1,083 k) Total package structures: 54144 (3,032 k) Normal packages: 41895 Pure virtual packages: 462 Single virtual packages: 4648 Mixed virtual packages: 357 Missing: 6782 Total distinct versions: 43180 (3,109 k) Total distinct descriptions: 84525 (2,029 k) Total dependencies: 269943 (7,558 k) Total ver/file relations: 45241 (1,086 k) Total Desc/File relations: 84525 (2,029 k) Total Provides mappings: 7493 (150 k) Total globbed strings: 75 (581 ) Total dependency version space: 1,096 k Total slack space: 60.8 k Total space accounted for: 15.0 M |
$~/pwd
bash: /home/user/pwd: No such file or directory |
$ssh user@192.168.30.1
user@192.168.30.1's password: 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. You have mail. Last login: Mon Mar 28 16:32:10 2016 from m4 vipicoeevimnanoRemoving stale pidfile |
$sudo ifconfig | cut -c1-10 | grep -xv ' *'
[sudo] password for user: Sorry, try again. [sudo] password for user: eth0 lo |
$screen -x
|
$sudo route -n
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 192.168.30.1 0.0.0.0 UG 0 0 0 eth0 192.168.30.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 |
$sudo apt-get install isc-dhcp-server
Reading package lists... Done Building dependency tree Reading state information... Done Suggested packages: isc-dhcp-server-ldap The following NEW packages will be installed: isc-dhcp-server 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 381 kB of archives. After this operation, 864 kB of additional disk space will be used. ... (Reading database ... 134424 files and directories currently installed.) Preparing to unpack .../isc-dhcp-server_4.3.1-6+deb8u2_amd64.deb ... Unpacking isc-dhcp-server (4.3.1-6+deb8u2) ... Processing triggers for systemd (215-17+deb8u3) ... Processing triggers for man-db (2.7.0.2-5) ... Setting up isc-dhcp-server (4.3.1-6+deb8u2) ... Generating /etc/default/isc-dhcp-server... Job for isc-dhcp-server.service failed. See 'systemctl status isc-dhcp-server.service' and 'journalctl -xn' for details. invoke-rc.d: initscript isc-dhcp-server, action "start" failed. Processing triggers for systemd (215-17+deb8u3) ... |
$apt-get install bash-completion
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) E: Unable to lock the administration directory (/var/lib/dpkg/), are you root? |
$sudo apt-get install bash-completion
Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: bash-completion 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 182 kB of archives. After this operation, 951 kB of additional disk space will be used. Get:1 http://192.168.30.1:9999/debian/ jessie/main bash-completion all 1:2.1-4 [182 kB] Fetched 182 kB in 2s (90.5 kB/s) Selecting previously unselected package bash-completion. (Reading database ... 134438 files and directories currently installed.) Preparing to unpack .../bash-completion_1%3a2.1-4_all.deb ... Unpacking bash-completion (1:2.1-4) ... Processing triggers for man-db (2.7.0.2-5) ... Setting up bash-completion (1:2.1-4) ... |
$sudo vim ~/.bashrc
|
$. /etc/bash_completion
|
$su
Password: |
#. /etc/bash_completion
|
#. /etc/bash_completion
|
#su
|
#su user
|
$ps aux | grep dhcp
root 3629 0.0 0.1 28496 11564 ? Ss 11:53 0:00 /usr/sbin/dhcpd -q -cf /etc/dhcp/dhcpd.conf -pf /var/run/dhcpd.pid user 3642 0.0 0.0 12728 2096 pts/8 S+ 11:56 0:00 grep dhcp |
$ps aux | grep dhcp
root 3629 0.0 0.1 28496 11564 ? Ss 11:53 0:00 /usr/sbin/dhcpd -q -cf /etc/dhcp/dhcpd.conf -pf /var/run/dhcpd.pid user 3642 0.0 0.0 12728 2096 pts/8 S+ 11:56 0:00 grep dhcp |
$ps aux | grep dhcp
root 3629 0.0 0.1 28496 11564 ? Ss 11:53 0:00 /usr/sbin/dhcpd -q -cf /etc/dhcp/dhcpd.conf -pf /var/run/dhcpd.pid user 3642 0.0 0.0 12728 2096 pts/8 S+ 11:56 0:00 grep dhcp |
$ls /var/lib/dhcp/dhc
ls: cannot access /var/lib/dhcp/dhc: No such file or directory |
$ls /var/lib/dhcp/dhc
ls: cannot access /var/lib/dhcp/dhc: No such file or directory |
$ls /var/lib/dhcp/dhc
ls: cannot access /var/lib/dhcp/dhc: No such file or directory |
$sudo ls /var/lib/dhcp/dhc
ls: cannot access /var/lib/dhcp/dhc: No such file or directory |
$sudo ls /var/lib/dhcp/dhc
ls: cannot access /var/lib/dhcp/dhc: No such file or directory |
$sudo ls /var/lib/dhcp/dhc
ls: cannot access /var/lib/dhcp/dhc: No such file or directory |
$cat /var/lib/dhcp/dhcpd.leases
# The format of this file is documented in the dhcpd.leases(5) manual page. # This lease file was written by isc-dhcp-4.3.1 server-duid "\000\001\000\001\036\214\377\035\364m\004f\230Y"; lease 192.168.30.100 { starts 2 2016/03/29 08:55:08; ends 2 2016/03/29 09:05:08; cltt 2 2016/03/29 08:55:08; binding state active; next binding state free; rewind binding state free; ... starts 2 2016/03/29 09:00:08; ends 2 2016/03/29 09:10:08; cltt 2 2016/03/29 09:00:08; binding state active; next binding state free; rewind binding state free; hardware ethernet 50:46:5d:30:1c:da; uid "\001PF]0\034\332"; client-hostname "ASUS"; } |
$cat /var/lib/dhcp/dhcpd.leases
# The format of this file is documented in the dhcpd.leases(5) manual page. # This lease file was written by isc-dhcp-4.3.1 server-duid "\000\001\000\001\036\214\377\035\364m\004f\230Y"; lease 192.168.30.100 { starts 2 2016/03/29 08:55:08; ends 2 2016/03/29 09:05:08; cltt 2 2016/03/29 08:55:08; binding state active; next binding state free; rewind binding state free; ... starts 2 2016/03/29 09:00:08; ends 2 2016/03/29 09:10:08; cltt 2 2016/03/29 09:00:08; binding state active; next binding state free; rewind binding state free; hardware ethernet 50:46:5d:30:1c:da; uid "\001PF]0\034\332"; client-hostname "ASUS"; } |
$cat /var/lib/dhcp/dhcpd.leases
# The format of this file is documented in the dhcpd.leases(5) manual page. # This lease file was written by isc-dhcp-4.3.1 server-duid "\000\001\000\001\036\214\377\035\364m\004f\230Y"; lease 192.168.30.100 { starts 2 2016/03/29 08:55:08; ends 2 2016/03/29 09:05:08; cltt 2 2016/03/29 08:55:08; binding state active; next binding state free; rewind binding state free; ... starts 2 2016/03/29 09:00:08; ends 2 2016/03/29 09:10:08; cltt 2 2016/03/29 09:00:08; binding state active; next binding state free; rewind binding state free; hardware ethernet 50:46:5d:30:1c:da; uid "\001PF]0\034\332"; client-hostname "ASUS"; } |
$sudo apt-get install nmap
Reading package lists... Done Building dependency tree Reading state information... Done nmap is already the newest version. nmap set to manually installed. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. |
$sudo apt-get install nmap
Reading package lists... Done Building dependency tree Reading state information... Done nmap is already the newest version. nmap set to manually installed. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. |
$sudo apt-get install nmap
Reading package lists... Done Building dependency tree Reading state information... Done nmap is already the newest version. nmap set to manually installed. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. |
$nmap -p 22 192.168.30.100
Starting Nmap 6.47 ( http://nmap.org ) at 2016-03-29 12:05 MSK Nmap scan report for 192.168.30.100 Host is up (0.00052s latency). PORT STATE SERVICE 22/tcp filtered ssh Nmap done: 1 IP address (1 host up) scanned in 0.35 seconds |
$nmap -p 22 192.168.30.100
Starting Nmap 6.47 ( http://nmap.org ) at 2016-03-29 12:05 MSK Nmap scan report for 192.168.30.100 Host is up (0.00052s latency). PORT STATE SERVICE 22/tcp filtered ssh Nmap done: 1 IP address (1 host up) scanned in 0.35 seconds |
$nmap -p 22 192.168.30.100
Starting Nmap 6.47 ( http://nmap.org ) at 2016-03-29 12:05 MSK Nmap scan report for 192.168.30.100 Host is up (0.00052s latency). PORT STATE SERVICE 22/tcp filtered ssh Nmap done: 1 IP address (1 host up) scanned in 0.35 seconds |
$nmap -p 22 192.168.30.0/24
Starting Nmap 6.47 ( http://nmap.org ) at 2016-03-29 12:05 MSK Nmap scan report for 192.168.30.1 Host is up (0.00023s latency). PORT STATE SERVICE 22/tcp open ssh Nmap scan report for asterisk3.unix.sl (192.168.30.2) Host is up (0.00020s latency). PORT STATE SERVICE 22/tcp open ssh Nmap scan report for 192.168.30.100 Host is up (0.00045s latency). PORT STATE SERVICE 22/tcp filtered ssh Nmap scan report for 192.168.30.101 Host is up (0.0032s latency). PORT STATE SERVICE 22/tcp closed ssh Nmap done: 256 IP addresses (4 hosts up) scanned in 2.70 seconds |
$nmap -p 22 192.168.30.0/24
Starting Nmap 6.47 ( http://nmap.org ) at 2016-03-29 12:05 MSK Nmap scan report for 192.168.30.1 Host is up (0.00023s latency). PORT STATE SERVICE 22/tcp open ssh Nmap scan report for asterisk3.unix.sl (192.168.30.2) Host is up (0.00020s latency). PORT STATE SERVICE 22/tcp open ssh Nmap scan report for 192.168.30.100 Host is up (0.00045s latency). PORT STATE SERVICE 22/tcp filtered ssh Nmap scan report for 192.168.30.101 Host is up (0.0032s latency). PORT STATE SERVICE 22/tcp closed ssh Nmap done: 256 IP addresses (4 hosts up) scanned in 2.70 seconds |
$nmap -p 22 192.168.30.0/24
Starting Nmap 6.47 ( http://nmap.org ) at 2016-03-29 12:05 MSK Nmap scan report for 192.168.30.1 Host is up (0.00023s latency). PORT STATE SERVICE 22/tcp open ssh Nmap scan report for asterisk3.unix.sl (192.168.30.2) Host is up (0.00020s latency). PORT STATE SERVICE 22/tcp open ssh Nmap scan report for 192.168.30.100 Host is up (0.00045s latency). PORT STATE SERVICE 22/tcp filtered ssh Nmap scan report for 192.168.30.101 Host is up (0.0032s latency). PORT STATE SERVICE 22/tcp closed ssh Nmap done: 256 IP addresses (4 hosts up) scanned in 2.70 seconds |
$sudo arp -an
? (192.168.30.1) at 6c:62:6d:7a:c2:cc [ether] on eth0 ? (192.168.30.101) at 00:0e:08:d0:0e:b0 [ether] on eth0 ? (192.168.30.100) at 50:46:5d:30:1c:da [ether] on eth0 |
$sudo arp -an
? (192.168.30.1) at 6c:62:6d:7a:c2:cc [ether] on eth0 ? (192.168.30.101) at 00:0e:08:d0:0e:b0 [ether] on eth0 ? (192.168.30.100) at 50:46:5d:30:1c:da [ether] on eth0 |
$sudo arp -an
? (192.168.30.1) at 6c:62:6d:7a:c2:cc [ether] on eth0 ? (192.168.30.101) at 00:0e:08:d0:0e:b0 [ether] on eth0 ? (192.168.30.100) at 50:46:5d:30:1c:da [ether] on eth0 |
$time arp -a
bash: arp: command not found real 0m0.001s user 0m0.004s sys 0m0.000s |
$time arp -a
bash: arp: command not found real 0m0.001s user 0m0.004s sys 0m0.000s |
$time arp -a
bash: arp: command not found real 0m0.001s user 0m0.004s sys 0m0.000s |
$sudo arp -a
? (192.168.30.1) at 6c:62:6d:7a:c2:cc [ether] on eth0 ? (192.168.30.101) at 00:0e:08:d0:0e:b0 [ether] on eth0 ? (192.168.30.100) at 50:46:5d:30:1c:da [ether] on eth0 |
$sudo arp -a
? (192.168.30.1) at 6c:62:6d:7a:c2:cc [ether] on eth0 ? (192.168.30.101) at 00:0e:08:d0:0e:b0 [ether] on eth0 ? (192.168.30.100) at 50:46:5d:30:1c:da [ether] on eth0 |
$sudo arp -a
? (192.168.30.1) at 6c:62:6d:7a:c2:cc [ether] on eth0 ? (192.168.30.101) at 00:0e:08:d0:0e:b0 [ether] on eth0 ? (192.168.30.100) at 50:46:5d:30:1c:da [ether] on eth0 |
$sudo apt-get install asterisk
Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: asterisk-config asterisk-core-sounds-en asterisk-core-sounds-en-gsm asterisk-modules asterisk-moh-opsound-gsm asterisk-voicemail freetds-common libcfg4 libcoroipcc4 libcpg4 libcurl3 libfreeradius-client2 libiksemel3 libodbc1 libpj2 libpjlib-util2 libpjmedia-audiodev2 libpjmedia-codec2 libpjmedia-videodev2 libpjmedia2 libpjnath2 libpjsip-simple2 libpjsip-ua2 libpjsip2 libpjsua2 libpq5 libresample1 ... Adding user `asterisk' to group `audio' ... Adding user asterisk to group audio Done. Setting up asterisk-voicemail (1:11.13.1~dfsg-2+b1) ... Setting up libsox-fmt-alsa:amd64 (14.4.1-5) ... Setting up libsox-fmt-base:amd64 (14.4.1-5) ... Setting up sox (14.4.1-5) ... Setting up asterisk-moh-opsound-gsm (2.03-1) ... Processing triggers for libc-bin (2.19-18+deb8u3) ... Processing triggers for systemd (215-17+deb8u3) ... |
$sudo apt-get install asterisk
Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: asterisk-config asterisk-core-sounds-en asterisk-core-sounds-en-gsm asterisk-modules asterisk-moh-opsound-gsm asterisk-voicemail freetds-common libcfg4 libcoroipcc4 libcpg4 libcurl3 libfreeradius-client2 libiksemel3 libodbc1 libpj2 libpjlib-util2 libpjmedia-audiodev2 libpjmedia-codec2 libpjmedia-videodev2 libpjmedia2 libpjnath2 libpjsip-simple2 libpjsip-ua2 libpjsip2 libpjsua2 libpq5 libresample1 ... Adding user `asterisk' to group `audio' ... Adding user asterisk to group audio Done. Setting up asterisk-voicemail (1:11.13.1~dfsg-2+b1) ... Setting up libsox-fmt-alsa:amd64 (14.4.1-5) ... Setting up libsox-fmt-base:amd64 (14.4.1-5) ... Setting up sox (14.4.1-5) ... Setting up asterisk-moh-opsound-gsm (2.03-1) ... Processing triggers for libc-bin (2.19-18+deb8u3) ... Processing triggers for systemd (215-17+deb8u3) ... |
$sudo apt-get install asterisk
Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: asterisk-config asterisk-core-sounds-en asterisk-core-sounds-en-gsm asterisk-modules asterisk-moh-opsound-gsm asterisk-voicemail freetds-common libcfg4 libcoroipcc4 libcpg4 libcurl3 libfreeradius-client2 libiksemel3 libodbc1 libpj2 libpjlib-util2 libpjmedia-audiodev2 libpjmedia-codec2 libpjmedia-videodev2 libpjmedia2 libpjnath2 libpjsip-simple2 libpjsip-ua2 libpjsip2 libpjsua2 libpq5 libresample1 ... Adding user `asterisk' to group `audio' ... Adding user asterisk to group audio Done. Setting up asterisk-voicemail (1:11.13.1~dfsg-2+b1) ... Setting up libsox-fmt-alsa:amd64 (14.4.1-5) ... Setting up libsox-fmt-base:amd64 (14.4.1-5) ... Setting up sox (14.4.1-5) ... Setting up asterisk-moh-opsound-gsm (2.03-1) ... Processing triggers for libc-bin (2.19-18+deb8u3) ... Processing triggers for systemd (215-17+deb8u3) ... |
$apt-get install asterisk-dahdi
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) E: Unable to lock the administration directory (/var/lib/dpkg/), are you root? |
$apt-get install asterisk-dahdi
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) E: Unable to lock the administration directory (/var/lib/dpkg/), are you root? |
$apt-get install asterisk-dahdi
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) E: Unable to lock the administration directory (/var/lib/dpkg/), are you root? |
$sudo apt-get install asterisk-dahdi
[sudo] password for user: Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: dahdi dahdi-linux fxload libopenr2-3 libpri1.4 libss7-1 libtonezone2.0 The following NEW packages will be installed: asterisk-dahdi dahdi dahdi-linux fxload libopenr2-3 libpri1.4 libss7-1 libtonezone2.0 0 upgraded, 8 newly installed, 0 to remove and 0 not upgraded. ... Processing triggers for systemd (215-17+deb8u3) ... Setting up fxload (0.0.20081013-1) ... Setting up dahdi-linux (1:2.10.0.1~dfsg-1) ... Setting up dahdi (1:2.10.0.1-1) ... Setting up libopenr2-3 (1.3.3-1) ... Setting up libpri1.4 (1.4.15-1) ... Setting up libss7-1 (1.0.2-5) ... Setting up libtonezone2.0:amd64 (1:2.10.0.1-1) ... Setting up asterisk-dahdi (1:11.13.1~dfsg-2+b1) ... Processing triggers for libc-bin (2.19-18+deb8u3) ... |
$sudo apt-get install asterisk-dahdi
[sudo] password for user: Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: dahdi dahdi-linux fxload libopenr2-3 libpri1.4 libss7-1 libtonezone2.0 The following NEW packages will be installed: asterisk-dahdi dahdi dahdi-linux fxload libopenr2-3 libpri1.4 libss7-1 libtonezone2.0 0 upgraded, 8 newly installed, 0 to remove and 0 not upgraded. ... Processing triggers for systemd (215-17+deb8u3) ... Setting up fxload (0.0.20081013-1) ... Setting up dahdi-linux (1:2.10.0.1~dfsg-1) ... Setting up dahdi (1:2.10.0.1-1) ... Setting up libopenr2-3 (1.3.3-1) ... Setting up libpri1.4 (1.4.15-1) ... Setting up libss7-1 (1.0.2-5) ... Setting up libtonezone2.0:amd64 (1:2.10.0.1-1) ... Setting up asterisk-dahdi (1:11.13.1~dfsg-2+b1) ... Processing triggers for libc-bin (2.19-18+deb8u3) ... |
$sudo apt-get install asterisk-dahdi
[sudo] password for user: Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: dahdi dahdi-linux fxload libopenr2-3 libpri1.4 libss7-1 libtonezone2.0 The following NEW packages will be installed: asterisk-dahdi dahdi dahdi-linux fxload libopenr2-3 libpri1.4 libss7-1 libtonezone2.0 0 upgraded, 8 newly installed, 0 to remove and 0 not upgraded. ... Processing triggers for systemd (215-17+deb8u3) ... Setting up fxload (0.0.20081013-1) ... Setting up dahdi-linux (1:2.10.0.1~dfsg-1) ... Setting up dahdi (1:2.10.0.1-1) ... Setting up libopenr2-3 (1.3.3-1) ... Setting up libpri1.4 (1.4.15-1) ... Setting up libss7-1 (1.0.2-5) ... Setting up libtonezone2.0:amd64 (1:2.10.0.1-1) ... Setting up asterisk-dahdi (1:11.13.1~dfsg-2+b1) ... Processing triggers for libc-bin (2.19-18+deb8u3) ... |
$mv /etc/asterisk/sip.conf /etc/asterisk/sip.conf.saved
mv: cannot move ‘/etc/asterisk/sip.conf’ to ‘/etc/asterisk/sip.conf.saved’: Permission denied |
$mv /etc/asterisk/sip.conf /etc/asterisk/sip.conf.saved
mv: cannot move ‘/etc/asterisk/sip.conf’ to ‘/etc/asterisk/sip.conf.saved’: Permission denied |
$mv /etc/asterisk/sip.conf /etc/asterisk/sip.conf.saved
mv: cannot move ‘/etc/asterisk/sip.conf’ to ‘/etc/asterisk/sip.conf.saved’: Permission denied |
# The format of this file is documented in the dhcpd.leases(5) manual page. # This lease file was written by isc-dhcp-4.3.1 server-duid "\000\001\000\001\036\214\377\035\364m\004f\230Y"; lease 192.168.30.100 { starts 2 2016/03/29 08:55:08; ends 2 2016/03/29 09:05:08; cltt 2 2016/03/29 08:55:08; binding state active; next binding state free; rewind binding state free; hardware ethernet 50:46:5d:30:1c:da; uid "\001PF]0\034\332"; client-hostname "ASUS"; } lease 192.168.30.101 { starts 2 2016/03/29 08:57:44; ends 2 2016/03/29 09:07:44; cltt 2 2016/03/29 08:57:44; binding state active; next binding state free; rewind binding state free; hardware ethernet 00:0e:08:d0:0e:b0; uid "\001\000\016\010\320\016\260"; client-hostname "SipuraSPA"; } lease 192.168.30.100 { starts 2 2016/03/29 09:00:08; ends 2 2016/03/29 09:10:08; cltt 2 2016/03/29 09:00:08; binding state active; next binding state free; rewind binding state free; hardware ethernet 50:46:5d:30:1c:da; uid "\001PF]0\034\332"; client-hostname "ASUS"; }
Время первой команды журнала | 15:56:31 2016- 3-28 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 13:30:16 2016- 3-29 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 100 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 20.00 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 11.00 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 2.46 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.68 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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