/l3/users/torero/asteriks-torero/debian/root :1 :2 :3 :4 |
|
#pkill -1 l3-agent
|
#dpkg -l
Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Architecture Description +++-==============-============-============-================================= ii accountsservic 0.6.21-8 amd64 query and manipulate user account ii acl 2.2.51-8 amd64 Access control list utilities ii acpi 1.6-1 amd64 displays information on ACPI devi ii acpi-support-b 0.140-5 all scripts for handling base ACPI ev ii acpid 1:2.0.16-1+d amd64 Advanced Configuration and Power ... ii xserver-xorg-v 1:12.0.2-1+b amd64 X.Org X server -- VMware display ii xserver-xorg-v 1:1.2.4-2+b3 amd64 X.Org X server -- Voodoo display ii xulrunner-17.0 17.0.9esr-1~ amd64 XUL + XPCOM application runner ii xz-utils 5.1.1alpha+2 amd64 XZ-format compression utilities ii yelp 3.4.2-1+b1 amd64 Help browser for GNOME ii yelp-xsl 3.4.2-1 all XSL stylesheets for the yelp help ii zeitgeist-core 0.9.0.1-1 amd64 event logging framework - engine ii zenity 3.4.0-2 amd64 Display graphical dialog boxes fr ii zenity-common 3.4.0-2 all Display graphical dialog boxes fr ii zlib1g:amd64 1:1.2.7.dfsg amd64 compression library - runtime |
#dpkg -l | wc -l
1422 |
#apt-cache search asterisk
asterisk - Open Source Private Branch Exchange (PBX) asterisk-config - Configuration files for Asterisk asterisk-dahdi - DAHDI devices support for the Asterisk PBX asterisk-dbg - Debugging symbols for Asterisk asterisk-dev - Development files for Asterisk asterisk-doc - Source code documentation for Asterisk asterisk-mobile - Bluetooth phone support for the Asterisk PBX asterisk-modules - loadable modules for the Asterisk PBX asterisk-mp3 - MP3 playback support for the Asterisk PBX asterisk-mysql - MySQL database protocol support for the Asterisk PBX ... linphone-dbg - Debugging symbols for linphone and its libraries op-panel - switchboard type application for the Asterisk PBX libopenr2-3 - MFC/R2 (telephony) call setup library python-asterisk - Asterisk Manager API interface module for Python libsipwitch-dev - secure peer-to-peer SIP VoIP server - development files libsipwitch1 - secure peer-to-peer SIP VoIP server - development files libsipwitch1-dbg - secure peer-to-peer SIP VoIP server - development files sipwitch - secure peer-to-peer VoIP server for the SIP protocol sipwitch-cgi - secure peer-to-peer SIP VoIP server - CGI XML-RPC interface python-starpy - Asterisk (AMI) protocols for Twisted Python |
#apt-cache search asterisk | wc -l
67 |
#. /etc/bash_completion
|
#apt
apt-cache aptitude-create-state-bundle apt-cdrom aptitude-curses apt-config aptitude-run-state-bundle apt-extracttemplates apt-key apt-ftparchive apt-mark apt-get apt-sortpkgs aptitude |
#apt-get install as
Display all 146 possibilities? (y or n) |
#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 autopoint debhelper freetds-common gettext git git-man html2text intltool-debian libcurl3 liberror-perl libgettextpo0 libiksemel3 libmail-sendmail-perl libodbc1 libpq5 libradiusclient-ng2 libresample1 libsaclm3 libsaevt3 libsensors4 libsnmp-base libsnmp15 libsox-fmt-alsa libsox-fmt-base libsox2 ... Failed to fetch http://192.168.15.254:9999/debian/pool/main/libm/libmail-sendmail-perl/libmail-sendmail-perl_0.79.16-1_all.deb Connection failed Failed to fetch http://192.168.15.254:9999/debian/pool/main/s/sox/libsox2_14.4.0-3_amd64.deb Connection failed Failed to fetch http://192.168.15.254:9999/debian/pool/main/s/sox/libsox-fmt-alsa_14.4.0-3_amd64.deb Connection failed Failed to fetch http://192.168.15.254:9999/debian/pool/main/s/sox/libsox-fmt-base_14.4.0-3_amd64.deb Connection failed Failed to fetch http://192.168.15.254:9999/debian/pool/main/m/module-assistant/module-assistant_0.11.4_all.deb Connection failed Failed to fetch http://192.168.15.254:9999/debian/pool/main/r/rsync/rsync_3.0.9-4_amd64.deb Connection failed Failed to fetch http://192.168.15.254:9999/debian/pool/main/s/sox/sox_14.4.0-3_amd64.deb Connection failed Failed to fetch http://192.168.15.254:9999/debian/pool/main/v/vpb-driver/vpb-driver-source_4.2.55-1_all.deb Connection failed Failed to fetch http://192.168.15.254:9999/debian/pool/main/a/asterisk-moh-opsound/asterisk-moh-opsound-gsm_2.03-1_all.deb Connection failed E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing? |
#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 autopoint debhelper freetds-common gettext git git-man html2text intltool-debian libcurl3 liberror-perl libgettextpo0 libiksemel3 libmail-sendmail-perl libodbc1 libpq5 libradiusclient-ng2 libresample1 libsaclm3 libsaevt3 libsensors4 libsnmp-base libsnmp15 libsox-fmt-alsa libsox-fmt-base libsox2 ... Failed to fetch http://192.168.15.254:9999/debian/pool/main/libm/libmail-sendmail-perl/libmail-sendmail-perl_0.79.16-1_all.deb Connection failed Failed to fetch http://192.168.15.254:9999/debian/pool/main/s/sox/libsox2_14.4.0-3_amd64.deb Connection failed Failed to fetch http://192.168.15.254:9999/debian/pool/main/s/sox/libsox-fmt-alsa_14.4.0-3_amd64.deb Connection failed Failed to fetch http://192.168.15.254:9999/debian/pool/main/s/sox/libsox-fmt-base_14.4.0-3_amd64.deb Connection failed Failed to fetch http://192.168.15.254:9999/debian/pool/main/m/module-assistant/module-assistant_0.11.4_all.deb Connection failed Failed to fetch http://192.168.15.254:9999/debian/pool/main/r/rsync/rsync_3.0.9-4_amd64.deb Connection failed Failed to fetch http://192.168.15.254:9999/debian/pool/main/s/sox/sox_14.4.0-3_amd64.deb Connection failed Failed to fetch http://192.168.15.254:9999/debian/pool/main/v/vpb-driver/vpb-driver-source_4.2.55-1_all.deb Connection failed Failed to fetch http://192.168.15.254:9999/debian/pool/main/a/asterisk-moh-opsound/asterisk-moh-opsound-gsm_2.03-1_all.deb Connection failed E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing? |
#apt-get install asterisk /y
Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package |
#apt-get install asterisk -y
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 autopoint debhelper freetds-common gettext git git-man html2text intltool-debian libcurl3 liberror-perl libgettextpo0 libiksemel3 libmail-sendmail-perl libodbc1 libpq5 libradiusclient-ng2 libresample1 libsaclm3 libsaevt3 libsensors4 libsnmp-base libsnmp15 libsox-fmt-alsa libsox-fmt-base libsox2 libsqlite0 libsrtp0 libsybdb5 libsys-hostname-long-perl libvpb0 module-assistant po-debconf rsync sox ... Failed to fetch http://192.168.15.254:9999/debian/pool/main/libm/libmail-sendmail-perl/libmail-sendmail-perl_0.79.16-1_all.deb Connection failed Failed to fetch http://192.168.15.254:9999/debian/pool/main/s/sox/libsox2_14.4.0-3_amd64.deb Connection failed Failed to fetch http://192.168.15.254:9999/debian/pool/main/s/sox/libsox-fmt-alsa_14.4.0-3_amd64.deb Connection failed Failed to fetch http://192.168.15.254:9999/debian/pool/main/s/sox/libsox-fmt-base_14.4.0-3_amd64.deb Connection failed Failed to fetch http://192.168.15.254:9999/debian/pool/main/m/module-assistant/module-assistant_0.11.4_all.deb Connection failed Failed to fetch http://192.168.15.254:9999/debian/pool/main/r/rsync/rsync_3.0.9-4_amd64.deb Connection failed Failed to fetch http://192.168.15.254:9999/debian/pool/main/s/sox/sox_14.4.0-3_amd64.deb Connection failed Failed to fetch http://192.168.15.254:9999/debian/pool/main/v/vpb-driver/vpb-driver-source_4.2.55-1_all.deb Connection failed Failed to fetch http://192.168.15.254:9999/debian/pool/main/a/asterisk-moh-opsound/asterisk-moh-opsound-gsm_2.03-1_all.deb Connection failed E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing? |
#telnet
l3script: telnet: command not found |
#apt-get install telnet
Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: telnet 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 71.8 kB of archives. After this operation, 205 kB of additional disk space will be used. Err http://192.168.15.254/debian/ wheezy/main telnet amd64 0.17-36 Connection failed Failed to fetch http://192.168.15.254:9999/debian/pool/main/n/netkit-telnet/telnet_0.17-36_amd64.deb Connection failed E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing? |
#apt-get install telnet
Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: telnet 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 71.8 kB of archives. After this operation, 205 kB of additional disk space will be used. Err http://192.168.15.254/debian/ wheezy/main telnet amd64 0.17-36 Connection failed Failed to fetch http://192.168.15.254:9999/debian/pool/main/n/netkit-telnet/telnet_0.17-36_amd64.deb Connection failed E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing? |
#ck
ckbcomp ck-launch-session ck-log-system-restart ck-log-system-stop ck-history ck-list-sessions ck-log-system-start cksum |
#dpkg -L asterisk | less
|
#dpkg -l asterisk -l modules
Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Architecture Description +++-===================-==============-==============-=========================================== ii asterisk 1:1.8.13.1~dfs amd64 Open Source Private Branch Exchange (PBX) dpkg-query: no packages found matching -l dpkg-query: no packages found matching modules |
#dpkg -L asterisk -l modules
/. /usr /usr/share /usr/share/lintian /usr/share/lintian/overrides /usr/share/lintian/overrides/asterisk /usr/share/doc /usr/share/doc/asterisk /usr/share/doc/asterisk/NEWS.Debian.gz /usr/share/doc/asterisk/changelog.gz ... /etc/logrotate.d /etc/logrotate.d/asterisk /etc/default /etc/default/asterisk /usr/share/asterisk/sounds/custom /usr/share/asterisk/sounds/recordings /usr/share/man/man8/rasterisk.8.gz /usr/sbin/rasterisk dpkg-query: error: --listfiles needs a valid package name but '-l' is not: illegal package name in specifier '-l': must start with an alphanumeric character Use --help for help about querying packages. |
#dpkg -L asterisk grep modules
/. /usr /usr/share /usr/share/lintian /usr/share/lintian/overrides /usr/share/lintian/overrides/asterisk /usr/share/doc /usr/share/doc/asterisk /usr/share/doc/asterisk/NEWS.Debian.gz /usr/share/doc/asterisk/changelog.gz ... /usr/share/doc/grep/changelog.gz /usr/share/man /usr/share/man/man1 /usr/share/man/man1/grep.1.gz /usr/share/man/man1/rgrep.1.gz /usr/share/man/man1/egrep.1.gz /usr/share/man/man1/fgrep.1.gz dpkg-query: package 'modules' is not installed Use dpkg --info (= dpkg-deb --info) to examine archive files, and dpkg --contents (= dpkg-deb --contents) to list their contents. |
#dpkg -L asterisk | grep modules
/usr/share/asterisk/conf/modules.conf.sample |
#cd /etc/asterisk/
|
#ll
l3script: ll: command not found |
#ls -la
total 800 drwxr-xr-x 3 asterisk asterisk 4096 Nov 18 14:55 . drwxr-xr-x 125 root root 12288 Nov 18 14:55 .. -rw-r----- 1 asterisk asterisk 140 Apr 9 2013 adsi.conf -rw-r----- 1 asterisk asterisk 2760 Apr 9 2013 agents.conf -rw-r----- 1 asterisk asterisk 2904 Apr 9 2013 ais.conf -rw-r----- 1 asterisk asterisk 2084 Apr 9 2013 alarmreceiver.conf -rw-r----- 1 asterisk asterisk 3498 Apr 9 2013 alsa.conf -rw-r----- 1 asterisk asterisk 767 Apr 9 2013 amd.conf -rw-r----- 1 asterisk asterisk 1044 Apr 9 2013 app_mysql.conf ... -rw-r----- 1 asterisk asterisk 742 Apr 9 2013 sip_notify.conf -rw-r----- 1 asterisk asterisk 9185 Apr 9 2013 skinny.conf -rw-r----- 1 asterisk asterisk 6774 Apr 9 2013 sla.conf -rw-r----- 1 asterisk asterisk 2669 Apr 9 2013 smdi.conf -rw-r----- 1 asterisk asterisk 1384 Apr 9 2013 telcordia-1.adsi -rw-r----- 1 asterisk asterisk 656 Apr 9 2013 udptl.conf -rw-r----- 1 asterisk asterisk 5096 Apr 9 2013 unistim.conf -rw-r----- 1 asterisk asterisk 2423 Apr 9 2013 users.conf -rw-r----- 1 asterisk asterisk 21238 Apr 9 2013 voicemail.conf -rw-r----- 1 asterisk asterisk 5939 Apr 9 2013 vpb.conf |
#runlevel
N 2 |
#ps -ax
warning: bad ps syntax, perhaps a bogus '-'? See http://gitorious.org/procps/procps/blobs/master/Documentation/FAQ PID TTY STAT TIME COMMAND 1 ? Ss 0:01 init [2] 2 ? S 0:00 [kthreadd] 3 ? S 0:00 [ksoftirqd/0] 6 ? S 0:00 [migration/0] 7 ? S 0:00 [watchdog/0] 8 ? S 0:00 [migration/1] 10 ? S 0:00 [ksoftirqd/1] ... 3794 ? S 0:00 [kworker/3:0] 4121 ? S 0:00 [kworker/0:1] 4289 ? S 0:00 [kworker/1:1] 5358 ? Ssl 0:02 /usr/sbin/asterisk -p -U asterisk 5359 ? S 0:00 astcanary /var/run/asterisk/alt.asterisk.canary.tweet.tweet.tweet 5358 5458 ? S 0:00 [kworker/2:0] 6201 ? S 0:00 [kworker/1:0] 6238 ? S 0:00 [kworker/0:0] 6321 ? S 0:00 [kworker/0:2] 6330 pts/2 R+ 0:00 ps -ax |
#ps -ax | grep asterisk
warning: bad ps syntax, perhaps a bogus '-'? See http://gitorious.org/procps/procps/blobs/master/Documentation/FAQ 5358 ? Ssl 0:02 /usr/sbin/asterisk -p -U asterisk 5359 ? S 0:00 astcanary /var/run/asterisk/alt.asterisk.canary.tweet.tweet.tweet 5358 6343 pts/2 S+ 0:00 grep asterisk |
#ps -ax
warning: bad ps syntax, perhaps a bogus '-'? See http://gitorious.org/procps/procps/blobs/master/Documentation/FAQ PID TTY STAT TIME COMMAND 1 ? Ss 0:01 init [2] 2 ? S 0:00 [kthreadd] 3 ? S 0:00 [ksoftirqd/0] 6 ? S 0:00 [migration/0] 7 ? S 0:00 [watchdog/0] 8 ? S 0:00 [migration/1] 10 ? S 0:00 [ksoftirqd/1] ... 4289 ? S 0:00 [kworker/1:1] 5358 ? Ssl 0:02 /usr/sbin/asterisk -p -U asterisk 5359 ? S 0:00 astcanary /var/run/asterisk/alt.asterisk.canary.tweet.tweet.tweet 5358 5458 ? S 0:00 [kworker/2:0] 6201 ? S 0:00 [kworker/1:0] 6238 ? S 0:00 [kworker/0:0] 6321 ? S 0:00 [kworker/0:2] 6352 ? Sl 0:00 /usr/lib/packagekit/packagekitd 6358 ? S 0:00 [kworker/0:1] 6359 pts/2 R+ 0:00 ps -ax |
#ps -ax | wc -l
warning: bad ps syntax, perhaps a bogus '-'? See http://gitorious.org/procps/procps/blobs/master/Documentation/FAQ 149 |
#ps -aux | wc -l
warning: bad ps syntax, perhaps a bogus '-'? See http://gitorious.org/procps/procps/blobs/master/Documentation/FAQ 148 |
#ps aux | wc -l
148 |
#ps -ax
warning: bad ps syntax, perhaps a bogus '-'? See http://gitorious.org/procps/procps/blobs/master/Documentation/FAQ PID TTY STAT TIME COMMAND 1 ? Ss 0:01 init [2] 2 ? S 0:00 [kthreadd] 3 ? S 0:00 [ksoftirqd/0] 6 ? S 0:00 [migration/0] 7 ? S 0:00 [watchdog/0] 8 ? S 0:00 [migration/1] 10 ? S 0:00 [ksoftirqd/1] ... 3794 ? S 0:00 [kworker/3:0] 4289 ? S 0:00 [kworker/1:1] 5358 ? Ssl 0:02 /usr/sbin/asterisk -p -U asterisk 5359 ? S 0:00 astcanary /var/run/asterisk/alt.asterisk.canary.tweet.tweet.tweet 5358 5458 ? S 0:00 [kworker/2:0] 6201 ? S 0:00 [kworker/1:0] 6238 ? S 0:00 [kworker/0:0] 6321 ? S 0:00 [kworker/0:2] 6358 ? S 0:00 [kworker/0:1] 6396 pts/2 R+ 0:00 ps -ax |
#ps ax
PID TTY STAT TIME COMMAND 1 ? Ss 0:01 init [2] 2 ? S 0:00 [kthreadd] 3 ? S 0:00 [ksoftirqd/0] 6 ? S 0:00 [migration/0] 7 ? S 0:00 [watchdog/0] 8 ? S 0:00 [migration/1] 10 ? S 0:00 [ksoftirqd/1] 12 ? S 0:00 [watchdog/1] 13 ? S 0:00 [migration/2] ... 3794 ? S 0:00 [kworker/3:0] 4289 ? S 0:00 [kworker/1:1] 5358 ? Ssl 0:02 /usr/sbin/asterisk -p -U asterisk 5359 ? S 0:00 astcanary /var/run/asterisk/alt.asterisk.canary.tweet.tweet.tweet 5358 5458 ? S 0:00 [kworker/2:0] 6201 ? S 0:00 [kworker/1:0] 6238 ? S 0:00 [kworker/0:0] 6321 ? S 0:00 [kworker/0:2] 6358 ? S 0:00 [kworker/0:1] 6404 pts/2 R+ 0:00 ps ax |
#kill -l
1) SIGHUP 2) SIGINT 3) SIGQUIT 4) SIGILL 5) SIGTRAP 6) SIGABRT 7) SIGBUS 8) SIGFPE 9) SIGKILL 10) SIGUSR1 11) SIGSEGV 12) SIGUSR2 13) SIGPIPE 14) SIGALRM 15) SIGTERM 16) SIGSTKFLT 17) SIGCHLD 18) SIGCONT 19) SIGSTOP 20) SIGTSTP 21) SIGTTIN 22) SIGTTOU 23) SIGURG 24) SIGXCPU 25) SIGXFSZ 26) SIGVTALRM 27) SIGPROF 28) SIGWINCH 29) SIGIO 30) SIGPWR 31) SIGSYS 34) SIGRTMIN 35) SIGRTMIN+1 36) SIGRTMIN+2 37) SIGRTMIN+3 38) SIGRTMIN+4 39) SIGRTMIN+5 40) SIGRTMIN+6 41) SIGRTMIN+7 42) SIGRTMIN+8 43) SIGRTMIN+9 44) SIGRTMIN+10 45) SIGRTMIN+11 46) SIGRTMIN+12 47) SIGRTMIN+13 48) SIGRTMIN+14 49) SIGRTMIN+15 50) SIGRTMAX-14 51) SIGRTMAX-13 52) SIGRTMAX-12 53) SIGRTMAX-11 54) SIGRTMAX-10 55) SIGRTMAX-9 56) SIGRTMAX-8 57) SIGRTMAX-7 58) SIGRTMAX-6 59) SIGRTMAX-5 60) SIGRTMAX-4 61) SIGRTMAX-3 62) SIGRTMAX-2 63) SIGRTMAX-1 64) SIGRTMAX |
#ps -ax
warning: bad ps syntax, perhaps a bogus '-'? See http://gitorious.org/procps/procps/blobs/master/Documentation/FAQ PID TTY STAT TIME COMMAND 1 ? Ss 0:01 init [2] 2 ? S 0:00 [kthreadd] 3 ? S 0:00 [ksoftirqd/0] 6 ? S 0:00 [migration/0] 7 ? S 0:00 [watchdog/0] 8 ? S 0:00 [migration/1] 10 ? S 0:00 [ksoftirqd/1] ... 3794 ? S 0:00 [kworker/3:0] 4289 ? S 0:00 [kworker/1:1] 5358 ? Ssl 0:03 /usr/sbin/asterisk -p -U asterisk 5359 ? S 0:00 astcanary /var/run/asterisk/alt.asterisk.canary.tweet.tweet.tweet 5358 5458 ? S 0:00 [kworker/2:0] 6201 ? S 0:00 [kworker/1:0] 6238 ? S 0:00 [kworker/0:0] 6358 ? S 0:00 [kworker/0:1] 6420 ? S 0:00 [kworker/0:2] 6422 pts/2 R+ 0:00 ps -ax |
#pk
pkaction pk-debuginfo-install pkill pkcheck pkexec pkmon pkcon pkgenpack pkttyagent |
#pk
pkaction pk-debuginfo-install pkill pkcheck pkexec pkmon pkcon pkgenpack pkttyagent |
#pk
pkaction pk-debuginfo-install pkill pkcheck pkexec pkmon pkcon pkgenpack pkttyagent |
#pkill -1 asterisk
|
#ps -ax
warning: bad ps syntax, perhaps a bogus '-'? See http://gitorious.org/procps/procps/blobs/master/Documentation/FAQ PID TTY STAT TIME COMMAND 1 ? Ss 0:01 init [2] 2 ? S 0:00 [kthreadd] 3 ? S 0:00 [ksoftirqd/0] 6 ? S 0:00 [migration/0] 7 ? S 0:00 [watchdog/0] 8 ? S 0:00 [migration/1] 10 ? S 0:00 [ksoftirqd/1] ... 3794 ? S 0:00 [kworker/3:0] 4289 ? S 0:00 [kworker/1:1] 5358 ? Ssl 0:03 /usr/sbin/asterisk -p -U asterisk 5359 ? S 0:00 astcanary /var/run/asterisk/alt.asterisk.canary.tweet.tweet.tweet 5358 5458 ? S 0:00 [kworker/2:0] 6201 ? S 0:00 [kworker/1:0] 6238 ? S 0:00 [kworker/0:0] 6358 ? S 0:00 [kworker/0:1] 6420 ? S 0:00 [kworker/0:2] 6438 pts/2 R+ 0:00 ps -ax |
#ps -ax | grep asterisk
warning: bad ps syntax, perhaps a bogus '-'? See http://gitorious.org/procps/procps/blobs/master/Documentation/FAQ 5358 ? Ssl 0:03 /usr/sbin/asterisk -p -U asterisk 5359 ? S 0:00 astcanary /var/run/asterisk/alt.asterisk.canary.tweet.tweet.tweet 5358 6447 pts/2 S+ 0:00 grep asterisk |
#pstree
init─┬─NetworkManager───{NetworkManager} ├─accounts-daemon───{accounts-daemon} ├─acpid ├─asterisk─┬─astcanary │ └─40*[{asterisk}] ├─at-spi-bus-laun───2*[{at-spi-bus-laun}] ├─avahi-daemon───avahi-daemon ├─bluetoothd ├─colord───{colord} ├─colord-sane───2*[{colord-sane}] ... ├─modem-manager ├─polkitd───{polkitd} ├─pulseaudio───2*[{pulseaudio}] ├─rsyslogd───3*[{rsyslogd}] ├─rtkit-daemon───2*[{rtkit-daemon}] ├─sshd ├─udevd ├─udisks-daemon─┬─udisks-daemon │ └─2*[{udisks-daemon}] └─upowerd───2*[{upowerd}] |
#ps jax
PPID PID PGID SID TTY TPGID STAT UID TIME COMMAND 0 1 1 1 ? -1 Ss 0 0:01 init [2] 0 2 0 0 ? -1 S 0 0:00 [kthreadd] 2 3 0 0 ? -1 S 0 0:00 [ksoftirqd/0] 2 6 0 0 ? -1 S 0 0:00 [migration/0] 2 7 0 0 ? -1 S 0 0:00 [watchdog/0] 2 8 0 0 ? -1 S 0 0:00 [migration/1] 2 10 0 0 ? -1 S 0 0:00 [ksoftirqd/1] 2 12 0 0 ? -1 S 0 0:00 [watchdog/1] 2 13 0 0 ? -1 S 0 0:00 [migration/2] ... 2 3794 0 0 ? -1 S 0 0:00 [kworker/3:0] 2 4289 0 0 ? -1 S 0 0:00 [kworker/1:1] 1 5358 5358 5358 ? -1 Ssl 112 0:03 /usr/sbin/asterisk -p -U asterisk 5358 5359 5358 5358 ? -1 S 112 0:00 astcanary /var/run/asterisk/alt.asterisk.ca 2 5458 0 0 ? -1 S 0 0:00 [kworker/2:0] 2 6201 0 0 ? -1 S 0 0:00 [kworker/1:0] 2 6238 0 0 ? -1 S 0 0:00 [kworker/0:0] 2 6358 0 0 ? -1 S 0 0:00 [kworker/0:1] 2 6420 0 0 ? -1 S 0 0:00 [kworker/0:2] 3708 6463 6463 3708 pts/2 6463 R+ 0 0:00 ps jax |
#locate
l3script: locate: command not found |
#yum
l3script: yum: command not found |
#apt-get locate
E: Invalid operation locate |
#apt-get install locate
Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: locate 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 194 kB of archives. After this operation, 313 kB of additional disk space will be used. Get:1 http://192.168.15.254/debian/ wheezy/main locate amd64 4.4.2-4 [194 kB] Fetched 194 kB in 0s (223 kB/s) Selecting previously unselected package locate. (Reading database ... 130362 files and directories currently installed.) Unpacking locate (from .../locate_4.4.2-4_amd64.deb) ... Processing triggers for man-db ... Setting up locate (4.4.2-4) ... |
#locate
Usage: locate [-d path | --database=path] [-e | -E | --[non-]existing] [-i | --ignore-case] [-w | --wholename] [-b | --basename] [--limit=N | -l N] [-S | --statistics] [-0 | --null] [-c | --count] [-P | -H | --nofollow] [-L | --follow] [-m | --mmap ] [ -s | --stdio ] [-A | --all] [-p | --print] [-r | --regex ] [--regextype=TYPE] [--max-database-age D] [--version] [--help] pattern... Report bugs to <bug-findutils@gnu.org>. |
#/usr/bin/updatedb
|
#netstat -nlp
Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 127.0.0.1:5038 0.0.0.0:* LISTEN 5358/asterisk tcp 0 0 0.0.0.0:2000 0.0.0.0:* LISTEN 5358/asterisk tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 2835/sshd tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 2788/exim4 tcp6 0 0 :::22 :::* LISTEN 2835/sshd tcp6 0 0 ::1:25 :::* LISTEN 2788/exim4 udp 0 0 0.0.0.0:4520 0.0.0.0:* 5358/asterisk udp 0 0 0.0.0.0:4569 0.0.0.0:* 5358/asterisk ... unix 2 [ ACC ] STREAM LISTENING 11347 2517/avahi-daemon: /var/run/avahi-daemon/socket unix 2 [ ACC ] STREAM LISTENING 11822 3028/gnome-keyring- /home/alex/.cache/keyring-tGyuwH/pkcs11 unix 2 [ ACC ] STREAM LISTENING 3426 2846/minissdpd /var/run/minissdpd.sock unix 2 [ ACC ] STREAM LISTENING 11423 2657/Xorg @/tmp/.X11-unix/X0 unix 2 [ ACC ] STREAM LISTENING 7522 2511/bluetoothd /var/run/sdp unix 2 [ ACC ] SEQPACKET LISTENING 9592 372/udevd /run/udev/control unix 2 [ ACC ] STREAM LISTENING 8527 3046/gnome-session @/tmp/.ICE-unix/3046 unix 2 [ ACC ] STREAM LISTENING 20905 5358/asterisk /var/run/asterisk/asterisk.ctl unix 2 [ ACC ] STREAM LISTENING 3416 2647/gdm-simple-sla @/tmp/gdm-session-MUhEDXTa unix 2 [ ACC ] STREAM LISTENING 5643 3090/dbus-daemon @/tmp/dbus-RwwfyXFZaf |
#netstat -nlp | grep starisk
|
#netstat -nlp | grep asterisk
tcp 0 0 127.0.0.1:5038 0.0.0.0:* LISTEN 5358/asterisk tcp 0 0 0.0.0.0:2000 0.0.0.0:* LISTEN 5358/asterisk udp 0 0 0.0.0.0:4520 0.0.0.0:* 5358/asterisk udp 0 0 0.0.0.0:4569 0.0.0.0:* 5358/asterisk udp 0 0 0.0.0.0:5000 0.0.0.0:* 5358/asterisk udp 0 0 0.0.0.0:5060 0.0.0.0:* 5358/asterisk unix 2 [ ACC ] STREAM LISTENING 20905 5358/asterisk /var/run/asterisk/asterisk.ctl |
#ls -l /var/run/asterisk/asterisk.ctl
srwxrwx--- 1 asterisk asterisk 0 Nov 18 14:55 /var/run/asterisk/asterisk.ctl |
#asterisk -r
Asterisk 1.8.13.1~dfsg-3, 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. ========================================================================= Connected to Asterisk 1.8.13.1~dfsg-3 currently running on debian (pid = 5358) debian*CLI> quit |
#/etc/init.d/asterisk stop
Stopping Asterisk PBX: asterisk. |
#asterisk -r
Asterisk 1.8.13.1~dfsg-3, 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. ========================================================================= Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?) |
#dpkg -L astersik-modules
dpkg-query: package 'astersik-modules' is not installed Use dpkg --info (= dpkg-deb --info) to examine archive files, and dpkg --contents (= dpkg-deb --contents) to list their contents. |
#dpkg -L astersik-modules
dpkg-query: package 'astersik-modules' is not installed Use dpkg --info (= dpkg-deb --info) to examine archive files, and dpkg --contents (= dpkg-deb --contents) to list their contents. |
#dpkg -L asterisk-modules | less
|
#dpkg -L asterisk-modules | sort less
sort: open failed: less: No such file or directory |
#dpkg -L asterisk-modules | sort | less
|
#dpkg -L asterisk-modules | sort | less
|
#/etc/init.d/asterisk start
Starting Asterisk PBX: asterisk. |
#cp /etc/asterisk/sip.conf_old /etc/asterisk/sip.conf
|
#vim /etc/asterisk/sip.conf
|
# directmedia=yes
|
#rm sip.conf
|
#vim sip.conf
|
#R
Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package ee |
#apt-get install joe
Reading package lists... Done Building dependency tree Reading state information... Done joe is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. |
#joe
** Joe's Own Editor v3.7 ** (utf-8) ** Copyright © 2008 ** File (Unnamed) not changed so no update needed |
#joe /etc/
Display all 219 possibilities? (y or n)^C |
#joe /etc/asterisk/sip.conf
ype=friend 12 secret=1234 6 host=dynamicult 2 [1502] type=friend secret=1234 host=dynamic ** Joe's Own Editor v3.7 ** (utf-8) ** Copyright © 2008 ** File /etc/asterisk/sip.conf saved |
#/etc/init.d/asterisk resatrt
Usage: /etc/init.d/asterisk {start|stop|restart|reload|status|debug|logger-reload|extensions-reload|restart-convenient|force-reload} |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#asterisk -r
Asterisk 1.8.13.1~dfsg-3, 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. ========================================================================= Connected to Asterisk 1.8.13.1~dfsg-3 currently running on debian (pid = 3717) debian*CLI> sip reload No such command 'sip reload' (type 'core show help sip reload' for other possible commands) debian*CLI> sip reload No such command 'sip reload' (type 'core show help sip reload' for other possible commands) debian*CLI> Disconnected from Asterisk server |
#asterisk -r
Asterisk 1.8.13.1~dfsg-3, 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. ========================================================================= Connected to Asterisk 1.8.13.1~dfsg-3 currently running on debian (pid = 3717) debian*CLI> sip reload No such command 'sip reload' (type 'core show help sip reload' for other possible commands) debian*CLI> exit |
#ls -l /etc/asterisk/sip.conf
-rw-r--r-- 1 root root 106 Nov 18 16:54 /etc/asterisk/sip.conf |
#joe /etc/asterisk/sip.conf
I /etc/asterisk/sip.conf Row 1 Col 1 4:59 Ctrl-K H for help [general] context=default [3101] type=friend secret=1234 host=dynamic [3102] pe=friend 6 ^[ cret=1234 2 host=dynamic ** Joe's Own Editor v3.7 ** (utf-8) ** Copyright © 2008 ** File /etc/asterisk/sip.conf not changed so no update needed |
#asterisk -r
Asterisk 1.8.13.1~dfsg-3, 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. ========================================================================= Connected to Asterisk 1.8.13.1~dfsg-3 currently running on debian (pid = 3717) debian*CLI> ! ael agent agi aoc calendar cc cdr cel channel cli config console core data database devstate dialplan dnsmgr dundi event fax features file group gtalk hangup help http iax2 indication jabber jingle keys local logger manager minivm mixmonitor module moh no odbc originate parkedcalls phoneprov pri queue realtime reload rtcp rtp say skinny sqlite stun timing udptl ulimit unistim voicemail debian*CLI> Disconnected from Asterisk server |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#joe /etc/asterisk/sip.conf
[3101] host=dynamic [3102] type=friend secret=1234 host=dynamic ** Joe's Own Editor v3.7 ** (utf-8) ** Copyright © 2008 ** File /etc/asterisk/sip.conf not changed so no update needed |
#ifconfig
eth0 Link encap:Ethernet HWaddr 2c:27:d7:46:1a:50 inet addr:192.168.15.7 Bcast:192.168.15.255 Mask:255.255.255.0 inet6 addr: fe80::2e27:d7ff:fe46:1a50/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:3060 errors:0 dropped:0 overruns:0 frame:0 TX packets:282 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:353255 (344.9 KiB) TX bytes:44681 (43.6 KiB) Interrupt:20 Memory:fe400000-fe420000 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:25 errors:0 dropped:0 overruns:0 frame:0 TX packets:25 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:1519 (1.4 KiB) TX bytes:1519 (1.4 KiB) |
#ifconfig
eth0 Link encap:Ethernet HWaddr 2c:27:d7:46:1a:50 inet addr:192.168.15.7 Bcast:192.168.15.255 Mask:255.255.255.0 inet6 addr: fe80::2e27:d7ff:fe46:1a50/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:3143 errors:0 dropped:0 overruns:0 frame:0 TX packets:289 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:361644 (353.1 KiB) TX bytes:46681 (45.5 KiB) Interrupt:20 Memory:fe400000-fe420000 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:29 errors:0 dropped:0 overruns:0 frame:0 TX packets:29 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:1759 (1.7 KiB) TX bytes:1759 (1.7 KiB) |
#asterisk -rvvv
Asterisk 1.8.13.1~dfsg-3, 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.13.1~dfsg-3 currently running on debian (pid = 3891) Verbosity is at least 3 debian*CLI> exit Executing last minute cleanups |
#asterisk -rvvv
Asterisk 1.8.13.1~dfsg-3, 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.13.1~dfsg-3 currently running on debian (pid = 3891) Verbosity is at least 3 debian*CLI> sip show peers Name/username Host Dyn Forcerport ACL Port Status 3101 (Unspecified) D N 0 Unmonitored 3102 (Unspecified) D N 0 Unmonitored 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 2 offline] -- Registered SIP '3101' at 192.168.15.208:5060 == Using SIP RTP CoS mark 5 [Nov 18 17:14:13] NOTICE[3927]: chan_sip.c:22753 handle_request_invite: Call from '3101' (192.168.15.208:5060) to extension '3102' rejected because extension not found in context 'default'. debian*CLI> exit Executing last minute cleanups |
#pwd
/etc/asterisk |
#joe /etc/asterisk/extensions.conf
; things to do, it will terminate the call with BUSY, CONGESTION ; or HANGUP depending on Asterisk's best guess. This is the default. ; ; If autofallthrough is not set, then if an extension runs out of ; things to do, Asterisk will wait for a new extension to be dialed ; (this is the original behavior of Asterisk 1.0 and earlier). ; ;autofallthrough=no ; ; ... ; with 88 extensions, the speedup is 2.23x ; with 138 extensions, the speedup is 3.44x ; with 238 extensions, the speedup is 5.8x ; with 438 extensions, the speedup is 10.4x ; With 1000 extensions, the speedup is ~25x ; with 10,000 extensions, the speedup is 374x ; Basically, the new algorithm provides a flat response ; time, no matter the number of extensions. ** Joe's Own Editor v3.7 ** (utf-8) ** Copyright © 2008 ** File /etc/asterisk/extensions.conf not changed so no update needed |
#ll
l3script: ll: command not found |
#ls -ax
. .. adsi.conf agents.conf ais.conf alarmreceiver.conf alsa.conf amd.conf app_mysql.conf asterisk.adsi asterisk.conf calendar.conf ccss.conf cdr_adaptive_odbc.conf cdr.conf cdr_custom.conf cdr_manager.conf cdr_mysql.conf cdr_odbc.conf cdr_pgsql.conf cdr_sqlite3_custom.conf cdr_syslog.conf cdr_tds.conf cel.conf cel_custom.conf cel_odbc.conf cel_pgsql.conf cel_sqlite3_custom.conf cel_tds.conf chan_dahdi.conf chan_mobile.conf chan_ooh323.conf cli_aliases.conf cli.conf cli_permissions.conf codecs.conf console.conf dbsep.conf dnsmgr.conf dsp.conf dundi.conf enum.conf extconfig.conf extensions.ael extensions.conf.SAVED extensions.lua extensions_minivm.conf features.conf festival.conf followme.conf func_odbc.conf gtalk.conf h323.conf http.conf iax.conf iaxprov.conf indications.conf jabber.conf jingle.conf logger.conf manager.conf manager.d meetme.conf mgcp.conf minivm.conf misdn.conf modules.conf musiconhold.conf muted.conf osp.conf oss.conf phone.conf phoneprov.conf queuerules.conf queues.conf res_config_mysql.conf res_config_sqlite.conf res_curl.conf res_fax.conf res_ldap.conf res_odbc.conf res_pgsql.conf res_pktccops.conf res_snmp.conf res_stun_monitor.conf rtp.conf say.conf sip.conf sip.conf~ sip.conf_old sip_notify.conf skinny.conf sla.conf smdi.conf telcordia-1.adsi udptl.conf unistim.conf users.conf voicemail.conf vpb.conf |
#ls -l extensions.
extensions.ael extensions.conf.SAVED extensions.lua |
#joe extensions.conf
xtern => 3102,n,Playback(demo-thanks) 7 u 10 exte lt] 2 e File extensions.conf saved |
#locate demo-thanks
/usr/share/asterisk/sounds/en_US_f_Allison/demo-thanks.gsm |
#joe extensions.conf
4000,n,Playback(demo-thanks) extern => 3102,1,Answer xtern = extern => 3102,n,Playback(demo-thanks) File extensions.conf saved |
#joe extensions.conf
n,Playback(demo-thanks) File extensions.conf saved |
#asterisk -rvvv
Asterisk 1.8.13.1~dfsg-3, 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.13.1~dfsg-3 currently running on debian (pid = 4113) ... -- Added extension 's' priority 1 to app_queue_gosub_virtual_context -- Time to scan old dialplan and merge leftovers back into the new: 0.001581 sec -- Time to restore hints and swap in new dialplan: 0.000004 sec -- Time to delete the old dialplan: 0.000046 sec -- Total time merge_contexts_delete: 0.001631 sec == Using SIP RTP CoS mark 5 [Nov 18 17:31:10] NOTICE[4149]: chan_sip.c:22753 handle_request_invite: Call from '3101' (192.168.15.208:5060) to extension '4000' rejected because extension not found in context 'default'. debian*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#joe extensions.conf
** Joe's Own Editor v3.7 ** (utf-8) ** Copyright © 2008 ** File extensions.conf saved |
#asterisk -rvvv
Asterisk 1.8.13.1~dfsg-3, 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.13.1~dfsg-3 currently running on debian (pid = 4113) ... -- merging incls/swits/igpats from old(app_dial_gosub_virtual_context) to new(app_dial_gosub_virtual_context) context, registrar = pbx_config -- Added extension 's' priority 1 to app_dial_gosub_virtual_context -- Time to scan old dialplan and merge leftovers back into the new: 0.000807 sec -- Time to restore hints and swap in new dialplan: 0.000003 sec -- Time to delete the old dialplan: 0.000036 sec -- Total time merge_contexts_delete: 0.000846 sec == Using SIP RTP CoS mark 5 [Nov 18 17:32:03] NOTICE[4149]: chan_sip.c:22753 handle_request_invite: Call from '3101' (192.168.15.208:5060) to extension '4000' rejected because extension not found in context 'default'. debian*CLI> exit Executing last minute cleanups |
#joe extensions.conf
** Joe's Own Editor v3.7 ** (utf-8) ** Copyright © 2008 ** File extensions.conf saved |
Время первой команды журнала | 13:33:22 2013-11-18 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 16:32:28 2013-11-18 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 100 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 19.00 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 5.00 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 2.12 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.79 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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