/l3/users/dmitry.z/nt-voip/linux1.unix.nt/root :1 :2 :3 :4 |
|
#iptables
iptables v1.4.8: no command specified Try `iptables -h' or 'iptables --help' for more information. |
#iptables -h
iptables v1.4.8 Usage: iptables -[AD] chain rule-specification [options] iptables -I chain [rulenum] rule-specification [options] iptables -R chain rulenum rule-specification [options] iptables -D chain rulenum [options] iptables -[LS] [chain [rulenum]] [options] iptables -[FZ] [chain] [options] iptables -[NX] chain iptables -E old-chain-name new-chain-name iptables -P chain target [options] ... [!] --out-interface -o output name[+] network interface name ([+] for wildcard) --table -t table table to manipulate (default: `filter') --verbose -v verbose mode --line-numbers print line numbers when listing --exact -x expand numbers (display exact values) [!] --fragment -f match second or further fragments only --modprobe=<command> try to insert modules using this command --set-counters PKTS BYTES set the counter during insert/append [!] --version -V print package version. |
#iptables --table
iptables v1.4.8: option `--table' requires an argument Try `iptables -h' or 'iptables --help' for more information. |
#iptables -t
iptables v1.4.8: option `-t' requires an argument Try `iptables -h' or 'iptables --help' for more information. |
#iptables -l
iptables v1.4.8: option `-l' requires an argument Try `iptables -h' or 'iptables --help' for more information. |
#iptables --list
Chain INPUT (policy ACCEPT) target prot opt source destination Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination |
#ls
asterisk-festival.pl check-failed-regs.pl l3-agent l3-config l3script |
#ch
chage chat checksctp chfn chkdupexe chpasswd chsh chardet chattr checksendmail chgpasswd chmod chroot chvt charmap chcon cheese chgrp chown chrt |
#ch
chage chat checksctp chfn chkdupexe chpasswd chsh chardet chattr checksendmail chgpasswd chmod chroot chvt charmap chcon cheese chgrp chown chrt |
#ls
asterisk-festival.pl check-failed-regs.pl l3-agent l3-config l3script |
#/usr/local/bin/check-gailed-regs.pl
bash: /usr/local/bin/check-gailed-regs.pl: No such file or directory |
#ls -l
total 48 -rwxr-xr-x 1 root staff 702 Apr 25 17:14 asterisk-festival.pl -rw-r--r-- 1 root staff 1409 Apr 27 12:53 check-failed-regs.pl -rwxr-xr-x 1 root staff 33439 Apr 23 12:04 l3-agent -rwxr-xr-x 1 root staff 100 Apr 23 12:04 l3-config lrwxrwxrwx 1 root staff 9 Apr 23 12:04 l3script -> /bin/bash |
#chmod 755 check-failed-regs.pl
|
#chown root:root check-failed-regs.pl
|
#less check-gailed-regs.pl
|
#ls
asterisk-festival.pl check-failed-regs.pl l3-agent l3-config l3script |
#less check-failed-regs.pl
|
#check-failed-regs.pl
iptables: No chain/target/match by that name. iptables: No chain/target/match by that name. 192.168.20.1 blocked. 9 attempts. iptables: No chain/target/match by that name. 192.168.30.1 blocked. 1 attempts. |
#iptables --list
Chain INPUT (policy ACCEPT) target prot opt source destination Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination |
#check-failed-regs.pl
iptables: No chain/target/match by that name. iptables: No chain/target/match by that name. 192.168.20.1 blocked. 9 attempts. iptables: No chain/target/match by that name. 192.168.30.1 blocked. 1 attempts. |
#iptables -t -L
iptables v1.4.8: no command specified Try `iptables -h' or 'iptables --help' for more information. |
#iptables -L -n
Chain INPUT (policy ACCEPT) target prot opt source destination Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination |
#iptables -N asterisk
|
#iptables -I INPUT asterisk
iptables v1.4.8: Invalid rule number `asterisk' Try `iptables -h' or 'iptables --help' for more information. |
#iptables -I INPUT -j asterisk
|
#iptables -L -n
Chain INPUT (policy ACCEPT) target prot opt source destination asterisk all -- 0.0.0.0/0 0.0.0.0/0 Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination Chain asterisk (1 references) target prot opt source destination |
#check-failed-regs.pl
192.168.20.1 blocked. 9 attempts. 192.168.30.1 blocked. 1 attempts. |
#iptables -L -n
Chain INPUT (policy ACCEPT) target prot opt source destination asterisk all -- 0.0.0.0/0 0.0.0.0/0 Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination Chain asterisk (1 references) target prot opt source destination DROP all -- 192.168.30.1 0.0.0.0/0 DROP all -- 192.168.20.1 0.0.0.0/0 |
#iptables -L -n
Chain INPUT (policy ACCEPT) target prot opt source destination asterisk all -- 0.0.0.0/0 0.0.0.0/0 Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination Chain asterisk (1 references) target prot opt source destination DROP all -- 192.168.30.1 0.0.0.0/0 DROP all -- 192.168.20.1 0.0.0.0/0 |
#tail -f /var/lo
local/ lock/ log/ |
#tail -f /var/log/asterisk/messages
[Apr 27 13:00:47] NOTICE[7171] chan_sip.c: Registration from '<sip:1002@192.168.10.1>' failed for '192.168.10.10' - Wrong password [Apr 27 13:00:48] NOTICE[7171] chan_sip.c: Registration from '<sip:1002@192.168.10.1>' failed for '192.168.10.10' - Wrong password [Apr 27 13:01:25] NOTICE[7171] chan_sip.c: Registration from '<sip:1002@192.168.10.1>' failed for '192.168.10.10' - Wrong password [Apr 27 13:01:28] NOTICE[7171] chan_sip.c: Registration from '<sip:1002@192.168.10.1>' failed for '192.168.10.10' - Wrong password [Apr 27 13:01:30] NOTICE[7171] chan_sip.c: Registration from '<sip:1002@192.168.10.1>' failed for '192.168.10.10' - Wrong password [Apr 27 13:01:30] NOTICE[7171] chan_sip.c: Registration from '<sip:1002@192.168.10.1>' failed for '192.168.10.10' - Wrong password [Apr 27 13:01:31] NOTICE[7171] chan_sip.c: Registration from '<sip:1002@192.168.10.1>' failed for '192.168.10.10' - Wrong password [Apr 27 14:35:05] NOTICE[7171] chan_sip.c: Registration from '<sip:1002@192.168.10.1>' failed for '192.168.10.10' - Wrong password [Apr 27 14:35:06] NOTICE[7171] chan_sip.c: Registration from '<sip:1002@192.168.10.1>' failed for '192.168.10.10' - Wrong password [Apr 27 14:35:07] NOTICE[7171] chan_sip.c: Registration from '<sip:1002@192.168.10.1>' failed for '192.168.10.10' - Wrong password [Apr 27 14:36:41] NOTICE[7171] chan_sip.c: Registration from '<sip:1002@192.168.10.1>' failed for '192.168.10.10' - Wrong password ^C |
#apt-cache search etter
aaphoto - Auto Adjust Photo, automatic color correction of photos abcde - A Better CD Encoder qlo10k1 - ALSA ld10k1 utility antennavis - antenna radiation pattern visualization software anypaper - front-end for wallpapersetter libapache2-mod-upload-progress - upload progress support for the Apache web server apt-zip - Update a non-networked computer using apt and removable media aroarfw-dev - framework to build hardware with RoarAudio portocol support aroarfw-doc - framework to build hardware with RoarAudio portocol support (documentation) aspell - GNU Aspell spell-checker ... yodl-doc - Documenation for Your Own Document Language (Yodl) yodl - Your Own Document Language (Yodl) is a pre-document language zoomer - generate a video from a picture by zooming from one point to another bsdcpio - cpio(1) from FreeBSD, using libarchive bsdtar - tar(1) from FreeBSD, using libarchive libjsf-api-java - JavaServer Faces 2.0 Java EE web framework - API libjsf-impl-java - JavaServer Faces 2.0 Java EE web framework - Implementation libjsf-java-doc - Documentation for libjsf-api-java samba-dbg - Samba debugging symbols locales-all - Embedded GNU C Library: Precompiled locale data |
#apt-cache search ettercap
ettercap-common - Common support files and plugins for ettercap ettercap-gtk - Multipurpose sniffer/interceptor/logger for switched LAN ettercap - Multipurpose sniffer/interceptor/logger for switched LAN |
#apt-get install ettercap
Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: mysql-common libmysqlclient16 Use 'apt-get autoremove' to remove them. The following extra packages will be installed: ettercap-common The following NEW packages will be installed: ettercap ettercap-common ... Get:2 http://10.0.35.1/debian/ squeeze/main ettercap i386 1:0.7.3-2.1 [190 kB] Fetched 493 kB in 0s (10.8 MB/s) Selecting previously deselected package ettercap-common. (Reading database ... 147143 files and directories currently installed.) Unpacking ettercap-common (from .../ettercap-common_1%3a0.7.3-2.1_i386.deb) ... Selecting previously deselected package ettercap. Unpacking ettercap (from .../ettercap_1%3a0.7.3-2.1_i386.deb) ... Processing triggers for man-db ... Setting up ettercap-common (1:0.7.3-2.1) ... Setting up ettercap (1:0.7.3-2.1) ... |
#ettercap -M arp -T -L log /192.168.10.10/
ettercap NG-0.7.3 copyright 2001-2004 ALoR & NaGA Listening on eth0... (Ethernet) eth0 -> 00:0F:FE:7E:B9:2F 192.168.10.1 255.255.255.0 SSL dissection needs a valid 'redir_command_on' script in the etter.conf file Privileges dropped to UID 65534 GID 65534... 28 plugins 39 protocol dissectors 53 ports monitored 7587 mac vendor fingerprint 1698 tcp OS fingerprint ... Fri Apr 27 14:49:15 2012 TCP 192.168.10.10:55636 --> 192.168.10.1:22 | AP .5..J.......Ow.h..K-........><..L.3..T..ss.^....8D... h.B.#...A..r.. Fri Apr 27 14:49:15 2012 TCP 192.168.10.1:22 --> 192.168.10.10:55636 | AP ..fzaYS.L.i.|.;;.M......$%....$..U8.GLJc.5(. >J...F.b.+.,.. l(...... Fri Apr 27 14:49:15 2012 TCP 192.168.10.10:55636 --> 192.168.10.1:22 | A User requested a CTRL+C... (deprecated, next time use proper shutdown) |
#apt-get install openoffice.org
Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: mysql-common libmysqlclient16 Use 'apt-get autoremove' to remove them. The following extra packages will be installed: ca-certificates-java default-jre default-jre-headless gcj-4.4-base gcj-4.4-jre-lib java-common libaccess-bridge-java libaccess-bridge-java-jni libcommons-beanutils-java libcommons-collections3-java libcommons-compress-java libcommons-digester-java libcommons-logging-java libdb-je-java libdb4.7-java libdb4.7-java-gcj libgcj-bc ... update-alternatives: using /usr/lib/jvm/java-6-openjdk/jre/bin/pluginappletviewer to provide /usr/bin/pluginappletviewer (pluginappletviewer) in auto mode. update-alternatives: using /usr/lib/jvm/java-6-openjdk/jre/bin/policytool to provide /usr/bin/policytool (policytool) in auto mode. Setting up default-jre (1:1.6-40) ... Setting up libhsqldb-java (1.8.0.10-9) ... Setting up openoffice.org-base (1:3.2.1-11+squeeze4) ... Setting up openoffice.org-report-builder-bin (1:3.2.1-11+squeeze4) ... Setting up openoffice.org-officebean (1:3.2.1-11+squeeze4) ... Setting up openoffice.org-filter-mobiledev (1:3.2.1-11+squeeze4) ... Setting up openoffice.org (1:3.2.1-11+squeeze4) ... Processing triggers for menu ... |
#iptables -L -n
Chain INPUT (policy ACCEPT) target prot opt source destination asterisk-whitelist all -- 0.0.0.0/0 0.0.0.0/0 Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination Chain asterisk (0 references) target prot opt source destination ACCEPT all -- 192.168.30.1 0.0.0.0/0 ACCEPT all -- 192.168.20.1 0.0.0.0/0 DROP all -- 192.168.10.10 0.0.0.0/0 DROP all -- 192.168.30.1 0.0.0.0/0 DROP all -- 192.168.20.1 0.0.0.0/0 Chain asterisk-whitelist (1 references) target prot opt source destination |
#iptables -F
|
#sip reload
bash: sip: command not found |
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze4, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.6.2.9-2+squeeze4 currently running on linux1 (pid = 7127) ... -- Executing [1005@gr-all:4] Monitor("SIP/1005-0000000f", "wav,1005-1005-2012-04-27-16_20_08,m") in new stack -- Executing [1005@gr-all:5] Dial("SIP/1005-0000000f", "SIP/1005,30,tT") in new stack == Using SIP RTP CoS mark 5 == Using SIP VRTP CoS mark 6 -- Called 1005 -- SIP/1005-00000010 is ringing == Spawn extension (gr-all, 1005, 5) exited non-zero on 'SIP/1005-0000000f' linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#apt-get install tshark
Reading package lists... Done Building dependency tree Reading state information... Done tshark is already the newest version. The following packages were automatically installed and are no longer required: mysql-common libmysqlclient16 Use 'apt-get autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 9 not upgraded. |
#scp root@192.168.15.252:/usr/src/certified-asterisk-1.8.11-cert1.tar.gz /usr/scr
root@192.168.15.252's password: certified-asterisk-1.8.11-cert1.tar.gz 100% 24MB 12.1MB/s 00:02 |
#ls
acerhk-modules-2.6.32-5-686_0.5.35-8+2.6.32-41squeeze2_i386.deb linux-headers-2.6.32-5-common acerhk.tar.bz2 linux-kbuild-2.6.32 alsa-driver.tar.bz2 linux-wlan-ng.tar.bz2 alsa-modules-2.6.32-5-686_1.0.23+dfsg-2+2.6.32-41squeeze2_i386.deb lirc-modules.tar.bz2 cdfs-2.6.32-5-686_2.6.23-4+2.6.32-41squeeze2_i386.deb loop-aes.tar.bz2 cdfs.tar.bz2 mga-vid.tar.gz cloop-module-2.6.32-5-686_2.6.31.1.1+2.6.32-41squeeze2_i386.deb modules cloop.tar.bz2 ndiswrapper.tar.bz2 comedi.tar.bz2 openafs.tar.bz2 dahdi-modules-2.6.32-5-686_2.3.0.1+dfsg-2+2.6.32-41squeeze2_i386.deb openswan-modules.tar.bz2 dahdi.tar.bz2 qc-usb.tar.bz2 device3dfx.tar.gz rtai-source.tar.bz2 kernel-patches sysprof-module.tar.bz2 linux virtualbox-ose.tar.bz2 linux-headers-2.6.32-5-686 vpb-driver.tar.bz2 |
#tar --help
Usage: tar [OPTION...] [FILE]... GNU `tar' saves many files together into a single tape or disk archive, and can restore individual files from the archive. Examples: tar -cf archive.tar foo bar # Create archive.tar from files foo and bar. tar -tvf archive.tar # List all files in archive.tar verbosely. tar -xf archive.tar # Extract all files from archive.tar. Main operation mode: -A, --catenate, --concatenate append tar files to an archive -c, --create create a new archive ... shell-always c c-maybe escape locale clocale *This* tar defaults to: --format=gnu -f- -b20 --quoting-style=escape --rmt-command=/usr/sbin/rmt --rsh-command=/usr/bin/rsh Report bugs to <bug-tar@gnu.org>. |
#tar --usage
Usage: tar [-AcdrtuxGnSkUWOmpsMBiajJzZhPlRvwo?] [-g FILE] [-f ARCHIVE] [-F NAME] [-L NUMBER] [-b BLOCKS] [-H FORMAT] [-V TEXT] [-I PROG] [-C DIR] [-K MEMBER-NAME] [-N DATE-OR-FILE] [-T FILE] [-X FILE] [--catenate] [--concatenate] [--create] [--diff] [--compare] [--delete] [--append] [--list] [--test-label] [--update] [--extract] [--get] [--check-device] [--listed-incremental=FILE] [--incremental] [--ignore-failed-read] [--level=NUMBER] [--seek] [--no-check-device] [--no-seek] [--occurrence[=NUMBER]] [--sparse-version=MAJOR[.MINOR]] [--sparse] [--keep-old-files] [--keep-newer-files] [--no-overwrite-dir] [--overwrite] ... [--ignore-case] [--no-anchored] [--no-ignore-case] [--no-wildcards] [--no-wildcards-match-slash] [--wildcards] [--wildcards-match-slash] [--checkpoint[=NUMBER]] [--checkpoint-action=ACTION] [--index-file=FILE] [--check-links] [--no-quote-chars=STRING] [--quote-chars=STRING] [--quoting-style=STYLE] [--block-number] [--show-defaults] [--show-omitted-dirs] [--show-transformed-names] [--show-stored-names] [--totals[=SIGNAL]] [--utc] [--verbose] [--warning=KEYWORD] [--interactive] [--confirmation] [--help] [--restrict] [--usage] [--version] [FILE]... |
#man tar
|
#tar -xvz certified-asterisk-1.8.11-cert1.tar.gz
^C |
#tar -xvz certified-asterisk-1.8.11-cert1.tar.gz
^C |
#ls l
ls: cannot access l: No such file or directory |
#ls -l
total 15228 -rw-r--r-- 1 root root 29366 Apr 25 11:58 acerhk-modules-2.6.32-5-686_0.5.35-8+2.6.32-41squeeze2_i386.deb -rw-r--r-- 1 root root 28523 Jul 3 2009 acerhk.tar.bz2 -rw-r--r-- 1 root root 3582891 Oct 23 2010 alsa-driver.tar.bz2 -rw-r--r-- 1 root root 1999336 Apr 25 12:02 alsa-modules-2.6.32-5-686_1.0.23+dfsg-2+2.6.32-41squeeze2_i386.deb -rw-r--r-- 1 root root 23612 Apr 25 12:02 cdfs-2.6.32-5-686_2.6.23-4+2.6.32-41squeeze2_i386.deb -rw-r--r-- 1 root root 80578 Nov 26 2008 cdfs.tar.bz2 -rw-r--r-- 1 root root 29614 Apr 25 12:02 cloop-module-2.6.32-5-686_2.6.31.1.1+2.6.32-41squeeze2_i386.deb -rw-r--r-- 1 root root 28728 Jan 15 2010 cloop.tar.bz2 -rw-r--r-- 1 root root 941147 Jun 2 2009 comedi.tar.bz2 ... -rw-r--r-- 1 root root 15938 May 18 2010 mga-vid.tar.gz drwxr-xr-x 11 root root 4096 Oct 29 2010 modules -rw-r--r-- 1 root root 141942 Feb 14 2010 ndiswrapper.tar.bz2 -rw-r--r-- 1 root root 858234 Feb 9 2011 openafs.tar.bz2 -rw-r--r-- 1 root root 489970 Dec 24 19:14 openswan-modules.tar.bz2 -rw-r--r-- 1 root root 91234 Feb 4 2010 qc-usb.tar.bz2 -rw-r--r-- 1 root root 4475454 Jul 3 2010 rtai-source.tar.bz2 -rw-r--r-- 1 root root 6592 Jun 14 2010 sysprof-module.tar.bz2 -rw-r--r-- 1 root root 439650 Oct 13 2010 virtualbox-ose.tar.bz2 -rw-r--r-- 1 root root 68983 Jan 16 2011 vpb-driver.tar.bz2 |
#ls -l cer*
ls: cannot access cer*: No such file or directory |
#ls cer*
ls: cannot access cer*: No such file or directory |
#cd /usr/scr
bash: cd: /usr/scr: Not a directory |
#cd /usr/src
|
#ls
acerhk-modules-2.6.32-5-686_0.5.35-8+2.6.32-41squeeze2_i386.deb linux-headers-2.6.32-5-common acerhk.tar.bz2 linux-kbuild-2.6.32 alsa-driver.tar.bz2 linux-wlan-ng.tar.bz2 alsa-modules-2.6.32-5-686_1.0.23+dfsg-2+2.6.32-41squeeze2_i386.deb lirc-modules.tar.bz2 cdfs-2.6.32-5-686_2.6.23-4+2.6.32-41squeeze2_i386.deb loop-aes.tar.bz2 cdfs.tar.bz2 mga-vid.tar.gz cloop-module-2.6.32-5-686_2.6.31.1.1+2.6.32-41squeeze2_i386.deb modules cloop.tar.bz2 ndiswrapper.tar.bz2 comedi.tar.bz2 openafs.tar.bz2 dahdi-modules-2.6.32-5-686_2.3.0.1+dfsg-2+2.6.32-41squeeze2_i386.deb openswan-modules.tar.bz2 dahdi.tar.bz2 qc-usb.tar.bz2 device3dfx.tar.gz rtai-source.tar.bz2 kernel-patches sysprof-module.tar.bz2 linux virtualbox-ose.tar.bz2 linux-headers-2.6.32-5-686 vpb-driver.tar.bz2 |
#scp root@192.168.15.252:/usr/src/certified-asterisk-1.8.11-cert1.tar.gz /usr/scr/
root@192.168.15.252's password: /usr/scr/: Is a directory |
#scp root@192.168.15.252:/usr/src/certified-asterisk-1.8.11-cert1.tar.gz
usage: scp [-1246BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file] [-l limit] [-o ssh_option] [-P port] [-S program] [[user@]host1:]file1 ... [[user@]host2:]file2 |
#scp root@192.168.15.252:/usr/src/certified-asterisk-1.8.11-cert1.tar.gz /var/tmp
root@192.168.15.252's password: certified-asterisk-1.8.11-cert1.tar.gz 100% 24MB 12.1MB/s 00:02 |
#cd /var/tmp
|
#ls
asterisk asterisk.log cpu-temp.txt kiev22-ru.wav kiev-ru.wav kiev.wav asterisk-festival.pl certified-asterisk-1.8.11-cert1.tar.gz datacard-read-only kiev-ru.txt kiev.txt shadow |
#ls -l
total 27084 drwxr-xr-x 2 asterisk asterisk 4096 Apr 26 10:18 asterisk -rwxrwxrwx 1 asterisk asterisk 702 Apr 25 16:53 asterisk-festival.pl -rw-rw---- 1 asterisk asterisk 5 Apr 25 15:27 asterisk.log -rw-r--r-- 1 root root 25300385 Apr 27 16:30 certified-asterisk-1.8.11-cert1.tar.gz -rw-rw---- 1 asterisk asterisk 64 Apr 25 17:48 cpu-temp.txt drwxr-xr-x 4 root root 4096 Apr 26 17:32 datacard-read-only -rw-r--r-- 1 root root 1480452 Apr 25 16:24 kiev22-ru.wav -rw-r--r-- 1 root root 991 Apr 25 16:23 kiev-ru.txt -rw-r--r-- 1 root root 171888 Apr 25 16:16 kiev-ru.wav -rw-r--r-- 1 root root 321 Apr 25 16:05 kiev.txt -rw-r--r-- 1 root root 699254 Apr 25 16:05 kiev.wav -rw-r----- 1 root root 1194 Apr 25 15:32 shadow |
#tar -xvz certified-asterisk-1.8.11-cert1.tar.gz
^C^C |
#cd certified-asterisk-1.8.11-cert1/
|
#./configure
checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes ... checking arpa/nameser.h presence... yes checking for arpa/nameser.h... yes checking sys/io.h usability... yes checking sys/io.h presence... yes checking for sys/io.h... yes checking for tgetent in -ltermcap... no checking for tgetent in -ltinfo... no checking for initscr in -lcurses... no checking for initscr in -lncurses... no configure: error: *** termcap support not found (on modern systems, this typically means the ncurses development package is missing) |
#apt-get install ncurses-
ncurses-base ncurses-bin ncurses-hexedit ncurses-term |
#apt-get install ncurses-base
Reading package lists... Done Building dependency tree Reading state information... Done ncurses-base is already the newest version. The following packages were automatically installed and are no longer required: mysql-common libmysqlclient16 Use 'apt-get autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 9 not upgraded. |
#./configure
checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes ... checking arpa/nameser.h presence... yes checking for arpa/nameser.h... yes checking sys/io.h usability... yes checking sys/io.h presence... yes checking for sys/io.h... yes checking for tgetent in -ltermcap... no checking for tgetent in -ltinfo... no checking for initscr in -lcurses... no checking for initscr in -lncurses... no configure: error: *** termcap support not found (on modern systems, this typically means the ncurses development package is missing) |
#apt-get install ncurses-bin
Reading package lists... Done Building dependency tree Reading state information... Done ncurses-bin is already the newest version. The following packages were automatically installed and are no longer required: mysql-common libmysqlclient16 Use 'apt-get autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 9 not upgraded. |
#./configure
checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes ... checking arpa/nameser.h presence... yes checking for arpa/nameser.h... yes checking sys/io.h usability... yes checking sys/io.h presence... yes checking for sys/io.h... yes checking for tgetent in -ltermcap... no checking for tgetent in -ltinfo... no checking for initscr in -lcurses... no checking for initscr in -lncurses... no configure: error: *** termcap support not found (on modern systems, this typically means the ncurses development package is missing) |
#apt-get install libnc
libncap44 libncbi6-dev libncurses5-dbg libncurses-ruby1.8 libncursesw5-dev libncap-dev libncp libncurses5-dev libncurses-ruby1.9.1 libncbi6 libncp-dev libncurses-gst libncursesw5 libncbi6-dbg libncurses5 libncurses-ruby libncursesw5-dbg |
#apt-get install libncurses
libncurses5 libncurses5-dev libncurses-ruby libncurses-ruby1.9.1 libncursesw5-dbg libncurses5-dbg libncurses-gst libncurses-ruby1.8 libncursesw5 libncursesw5-dev |
#apt-get install libncurses
libncurses5 libncurses5-dev libncurses-ruby libncurses-ruby1.9.1 libncursesw5-dbg libncurses5-dbg libncurses-gst libncurses-ruby1.8 libncursesw5 libncursesw5-dev |
#apt-get install libncurses5
libncurses5 libncurses5-dbg libncurses5-dev |
#apt-get install libncurses5
libncurses5 libncurses5-dbg libncurses5-dev |
#apt-get install libncurses5-d
libncurses5-dbg libncurses5-dev |
#apt-get install libncurses5-dev
Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: mysql-common libmysqlclient16 Use 'apt-get autoremove' to remove them. The following NEW packages will be installed: libncurses5-dev 0 upgraded, 1 newly installed, 0 to remove and 9 not upgraded. Need to get 1,597 kB of archives. After this operation, 6,685 kB of additional disk space will be used. Get:1 http://10.0.35.1/debian/ squeeze/main libncurses5-dev i386 5.7+20100313-5 [1,597 kB] Fetched 1,597 kB in 0s (11.5 MB/s) Selecting previously deselected package libncurses5-dev. (Reading database ... 152524 files and directories currently installed.) Unpacking libncurses5-dev (from .../libncurses5-dev_5.7+20100313-5_i386.deb) ... Processing triggers for man-db ... Setting up libncurses5-dev (5.7+20100313-5) ... |
#./configure
checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes ... checking for initscr in -lcurses... yes checking curses.h usability... yes checking curses.h presence... yes checking for curses.h... yes checking for initscr in -lncurses... yes checking for curses.h... (cached) yes checking for xml2-config... no configure: *** XML documentation will not be available because the 'libxml2' development package is missing. configure: *** Please run the 'configure' script with the '--disable-xmldoc' parameter option configure: *** or install the 'libxml2' development package. |
#make menu condif
make: -F.: Command not found /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - make: *** No rule to make target `menu'. Stop. |
#make menu config
make: -F.: Command not found /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - make: *** No rule to make target `menu'. Stop. |
#make menuconfig
make: -F.: Command not found /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - /bin/sh: Illegal option - **** **** The configure script must be executed before running 'make'. **** Please run "./configure". **** make: *** [makeopts] Error 1 |
#./configure --disable-xmldoc
checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes ... $$$$$ $$$ $$$$7. $$ (TM) $$$$$$$. .7$$$$$$ $$ $$$$$$$$$$$$7$$$$$$$$$.$$$$$$ $$$$$$$$$$$$$$$$. configure: Package configured for: configure: OS type : linux-gnu configure: Host CPU : i686 configure: build-cpu:vendor:os: i686 : pc : linux-gnu : configure: host-cpu:vendor:os: i686 : pc : linux-gnu : |
#make menuconfig
Press 'h' for help. Add-ons (See README-addons.txt) Applications Bridging Modules Call Detail Recording Channel Event Logging Channel Drivers Codec Translators Format Interpreters Dialplan Functions ... Compiler Flags Voicemail Build Options Utilities ---> AGI Samples Module Embedding Core Sound Packages Music On Hold File Packages Extras Sound Packages menuselect changes NOT saved! make[1]: Leaving directory `/var/tmp/certified-asterisk-1.8.11-cert1' |
#make
menuselect/menuselect --check-deps menuselect.makeopts menuselect/menuselect --check-deps menuselect.makeopts Generating embedded module rules ... [CC] astcanary.c -> astcanary.o [LD] astcanary.o -> astcanary [CC] chan_agent.c -> chan_agent.o [LD] chan_agent.o -> chan_agent.so [CC] chan_bridge.c -> chan_bridge.o [LD] chan_bridge.o -> chan_bridge.so [CC] chan_iax2.c -> chan_iax2.o ... [CC] recno/rec_utils.c -> recno/rec_utils.o [AR] hash/hash.o hash/hash_bigkey.o hash/hash_buf.o hash/hash_func.o hash/hash_log2.o hash/hash_page.o hash/ndbm.o btree/bt_close.o btree/bt_conv.o btree/bt_debug.o btree/bt_delete.o btree/bt_get.o btree/bt_open.o btree/bt_overflow.o btree/bt_page.o btree/bt_put.o btree/bt_search.o btree/bt_seq.o btree/bt_split.o btree/bt_utils.o db/db.o mpool/mpool.o recno/rec_close.o recno/rec_delete.o recno/ [LD] abstract_jb.o acl.o alaw.o aoc.o app.o ast_expr2.o ast_expr2f.o asterisk.o astfd.o astmm.o astobj2.o audiohook.o autochan.o autoservice.o bridging.o callerid.o ccss.o cdr.o cel.o channel.o chanvars.o cli.o config.o custom_control_frame.o data.o datastore.o db.o devicestate.o dial.o dns.o dnsmgr.o dsp.o enum.o event.o features.o file.o fixedjitterbuf.o frame.o framehook.o fskmodem.o global_ Building Documentation For: channels pbx apps codecs formats cdr cel bridges funcs tests main res addons +--------- Asterisk Build Complete ---------+ + Asterisk has successfully been built, and + + can be installed by running: + + + + make install + +-------------------------------------------+ |
#make install
/usr/bin/install -c -d "/usr/lib/asterisk/modules" /usr/bin/install -c -d "/usr/sbin" /usr/bin/install -c -d "/etc/asterisk" /usr/bin/install -c -d "/var/run/asterisk" /usr/bin/install -c -d "/var/spool/asterisk" /usr/bin/install -c -d "/var/spool/asterisk/dictate" /usr/bin/install -c -d "/var/spool/asterisk/meetme" /usr/bin/install -c -d "/var/spool/asterisk/monitor" /usr/bin/install -c -d "/var/spool/asterisk/system" /usr/bin/install -c -d "/var/spool/asterisk/tmp" ... res_crypto.so res_curl.so res_http_post.so res_jabber.so res_odbc.so res_phoneprov.so res_smdi.so res_snmp.so res_timing_pthread.so WARNING WARNING WARNING |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#asterisk -rvvv
Asterisk 1.8.11-cert1, Copyright (C) 1999 - 2012 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.8.11-cert1 currently running on linux1 (pid = 6033) Verbosity was 0 and is now 3 == Using SIP RTP CoS mark 5 [Apr 27 16:40:25] WARNING[6057]: chan_sip.c:9230 process_sdp: Matched device setup to use SRTP, but request was not! linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#make menuconfig
************************************************** Asterisk Module and Build Option Selection ************************************************** Press 'h' for help. --- core --- [*] res_agi [*] res_calendar XXX res_calendar_caldav XXX res_calendar_ews XXX res_calendar_exchange ... [*] res_clioriginate XXX res_config_curl XXX res_config_odbc [*] res_convert XXX res_crypto ... More ... File format conversion CLI command Depends on: curl(E)E) res_odbc(M) Support Level: core |
#apt-get install libsrtp0-dev
Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: mysql-common libmysqlclient16 Use 'apt-get autoremove' to remove them. The following NEW packages will be installed: libsrtp0-dev 0 upgraded, 1 newly installed, 0 to remove and 9 not upgraded. Need to get 84.2 kB of archives. After this operation, 385 kB of additional disk space will be used. Get:1 http://10.0.35.1/debian/ squeeze/main libsrtp0-dev i386 1.4.4~dfsg-6 [84.2 kB] Fetched 84.2 kB in 0s (7,955 kB/s) Selecting previously deselected package libsrtp0-dev. (Reading database ... 153577 files and directories currently installed.) Unpacking libsrtp0-dev (from .../libsrtp0-dev_1.4.4~dfsg-6_i386.deb) ... Setting up libsrtp0-dev (1.4.4~dfsg-6) ... |
#./configure --disable-xmldoc
checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes ... $$$$$ $$$ $$$$7. $$ (TM) $$$$$$$. .7$$$$$$ $$ $$$$$$$$$$$$7$$$$$$$$$.$$$$$$ $$$$$$$$$$$$$$$$. configure: Package configured for: configure: OS type : linux-gnu configure: Host CPU : i686 configure: build-cpu:vendor:os: i686 : pc : linux-gnu : configure: host-cpu:vendor:os: i686 : pc : linux-gnu : |
#make menuconfig
Press 'h' for help. Add-ons (See README-addons.txt) Applications Bridging Modules Call Detail Recording Channel Event Logging Channel Drivers Codec Translators Format Interpreters Dialplan Functions ... Compiler Flags Voicemail Build Options Utilities AGI Samples Module Embedding Core Sound Packages Music On Hold File Packages Extras Sound Packages menuselect changes NOT saved! make[1]: Leaving directory `/var/tmp/certified-asterisk-1.8.11-cert1' |
#make
CC="cc" CXX="" LD="" AR="" RANLIB="" CFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" makeopts make[1]: Entering directory `/var/tmp/certified-asterisk-1.8.11-cert1/menuselect' make[1]: `makeopts' is up to date. make[1]: Leaving directory `/var/tmp/certified-asterisk-1.8.11-cert1/menuselect' menuselect/menuselect --check-deps menuselect.makeopts menuselect/menuselect --check-deps menuselect.makeopts Generating embedded module rules ... [CC] chan_agent.c -> chan_agent.o [LD] chan_agent.o -> chan_agent.so [CC] chan_bridge.c -> chan_bridge.o ... [CC] version.c -> version.o [CC] xml.c -> xml.o [CC] xmldoc.c -> xmldoc.o [LD] abstract_jb.o acl.o alaw.o aoc.o app.o ast_expr2.o ast_expr2f.o asterisk.o astfd.o astmm.o astobj2.o audiohook.o autochan.o autoservice.o bridging.o callerid.o ccss.o cdr.o cel.o channel.o chanvars.o cli.o config.o custom_control_frame.o data.o datastore.o db.o devicestate.o dial.o dns.o dnsmgr.o dsp.o enum.o event.o features.o file.o fixedjitterbuf.o frame.o framehook.o fskmodem.o global_ +--------- Asterisk Build Complete ---------+ + Asterisk has successfully been built, and + + can be installed by running: + + + + make install + +-------------------------------------------+ |
#make install
CC="cc" CXX="" LD="" AR="" RANLIB="" CFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" makeopts make[1]: Entering directory `/var/tmp/certified-asterisk-1.8.11-cert1/menuselect' make[1]: `makeopts' is up to date. make[1]: Leaving directory `/var/tmp/certified-asterisk-1.8.11-cert1/menuselect' /usr/bin/install -c -d "/usr/lib/asterisk/modules" /usr/bin/install -c -d "/usr/sbin" /usr/bin/install -c -d "/etc/asterisk" /usr/bin/install -c -d "/var/run/asterisk" /usr/bin/install -c -d "/var/spool/asterisk" /usr/bin/install -c -d "/var/spool/asterisk/dictate" ... res_crypto.so res_curl.so res_http_post.so res_jabber.so res_odbc.so res_phoneprov.so res_smdi.so res_snmp.so res_timing_pthread.so WARNING WARNING WARNING |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#asterisk -rvvv
Asterisk 1.8.11-cert1, Copyright (C) 1999 - 2012 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.8.11-cert1 currently running on linux1 (pid = 18714) ... == Parsing '/etc/asterisk/sip.conf': == Found == Parsing '/etc/asterisk/users.conf': == Found [Apr 27 16:49:55] WARNING[18738]: chan_sip.c:29141 reload_config: No valid transports available, falling back to 'udp'. == Using SIP CoS mark 4 == Parsing '/etc/asterisk/sip_notify.conf': == Found == Using SIP RTP CoS mark 5 [Apr 27 16:50:03] WARNING[18738]: chan_sip.c:9230 process_sdp: Matched device setup to use SRTP, but request was not! linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#asterisk -rvvv
Asterisk 1.8.11-cert1, Copyright (C) 1999 - 2012 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.8.11-cert1 currently running on linux1 (pid = 18797) ... 1001 (Unspecified) D N 0 Unmonitored 1002/1002 192.168.10.10 D N 40682 Unmonitored 1005/1005 192.168.10.100 D N 5060 Unmonitored 3 sip peers [Monitored: 0 online, 0 offline Unmonitored: 2 online, 1 offline] -- Hungup 'IAX2/kiev-1068' == Spawn extension (gr-all, 4001, 1) exited non-zero on 'IAX2/livorno-3743' -- Hungup 'IAX2/livorno-3743' linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
Время первой команды журнала | 13:17:22 2012- 4-27 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 15:51:29 2012- 4-27 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 96 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 28.12 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 2.08 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 1.78 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.90 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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