/l3/users/29-07-2013/NT-Ladm/debian2.net.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 |
|
#w
11:10:52 up 2:17, 1 user, load average: 0,00, 0,01, 0,05 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT root pts/3 net:S.0 11:08 0.00s 0.01s 0.00s script -f -c l3 |
#l3 pwd
/users/29-07-2013/NT-Ladm/debian2.net.nt/root |
#echo $BASH
/usr/local/bin/l3script |
#ls
dir1 dir4 file10 file3 file8 hard_link link wilen123 dir2 dir5 file123 file6 file9 inittab passwd wilen124 |
#ls /
bin etc lib mnt root srv usr boot home lost+found opt sbin sys var dev initrd.img media proc selinux tmp vmlinuz |
#vim /etc/profile
|
#case "$TERM" in
![]() root@debian2:~# exit exit |
#vim .bashrc
--- /tmp/l3-saved-3186.26642.30588 2013-07-30 12:02:33.000000000 +0300 +++ .bashrc 2013-07-30 12:03:53.000000000 +0300 @@ -6,10 +6,10 @@ # umask 022 # You may uncomment the following lines if you want `ls' to be colorized: -# export LS_OPTIONS='--color=auto' +export LS_OPTIONS='--color=auto' # eval "`dircolors`" # alias ls='ls $LS_OPTIONS' -# alias ll='ls $LS_OPTIONS -l' +alias ll='ls $LS_OPTIONS -l' # alias l='ls $LS_OPTIONS -lA' # # Some more alias to avoid making mistakes: @@ -17,3 +17,4 @@ # alias cp='cp -i' # alias mv='mv -i' [ $0 == l3script ] && . /root/.lilalo/l3bashrc && _l3_start + |
#bash
root@debian2:~# ll итого 48 drwxr-xr-x 2 root root 4096 Июл 29 13:53 dir1 drwxr-xr-x 2 root root 4096 Июл 29 13:53 dir2 drwxr-xr-x 6 root root 4096 Июл 29 13:55 dir4 drw-r-xr-x 2 root root 4096 Июл 29 13:57 dir5 -rw-r--r-- 1 root root 251 Июл 29 16:47 file10 -rw-r--r-- 1 root root 0 Июл 29 14:26 file123 -rw-r--r-- 1 root root 1373 Июл 29 14:32 file3 -rw-r--r-- 1 root root 0 Июл 29 14:13 file6 ... -rwxr-xr-x 1 root root 551 Фев 20 2011 sudo -rwxr-xr-x 1 root root 7578 Окт 27 2010 udev -rwxr-xr-x 1 root root 1153 Окт 27 2010 udev-mtab -rwxr-xr-x 1 root root 2869 Янв 1 2011 umountfs -rwxr-xr-x 1 root root 2143 Янв 1 2011 umountnfs.sh -rwxr-xr-x 1 root root 1456 Янв 1 2011 umountroot -rwxr-xr-x 1 root root 1985 Янв 1 2011 urandom -rwxr-xr-x 1 root root 1758 Окт 13 2010 x11-common root@debian2:~# exit exit |
#ll
![]() l3script: ll: команда не найдена |
#vim .bashrc
--- /tmp/l3-saved-3186.7057.24327 2013-07-30 12:04:49.000000000 +0300 +++ .bashrc 2013-07-30 12:05:22.000000000 +0300 @@ -6,10 +6,10 @@ # umask 022 # You may uncomment the following lines if you want `ls' to be colorized: -export LS_OPTIONS='--color=auto' +# export LS_OPTIONS='--color=auto' # eval "`dircolors`" # alias ls='ls $LS_OPTIONS' -alias ll='ls $LS_OPTIONS -l' +# alias ll='ls $LS_OPTIONS -l' # alias l='ls $LS_OPTIONS -lA' # # Some more alias to avoid making mistakes: |
#crontab -e
# Edit this file to introduce tasks to be run by cron. # # Each task to run has to be defined through a single line # indicating with different fields when the task will be run # and what command to run for the task # # To define the time you can provide concrete values for # minute (m), hour (h), day of month (dom), month (mon), # and day of week (dow) or use '*' in these fields (for 'any').# # Notice that tasks will be started based on the cron's system # daemon's notion of time and timezones. # # Output of the crontab jobs (including errors) is sent through # email to the user the crontab file belongs to (unless redirected). # # For example, you can run a backup of all your user accounts # at 5 a.m every week with: # 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/ # [ Прочитано 22 строки ] No modification made |
#vim .bashrc
--- /tmp/l3-saved-3186.23539.13490 2013-07-30 12:05:41.000000000 +0300 +++ .bashrc 2013-07-30 12:06:00.000000000 +0300 @@ -18,3 +18,4 @@ # alias mv='mv -i' [ $0 == l3script ] && . /root/.lilalo/l3bashrc && _l3_start +export EDITOR='vim' |
#bash
15 # 16 # For example, you can run a backup of all your user accounts 17 # at 5 a.m every week with: 18 # 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/ 19 # 20 # For more information see the manual pages of crontab(5) and cron(8) 21 # 22 # m h dom mon dow command No modification made root@debian2:~# exit exit |
#vim .bashrc
--- /tmp/l3-saved-3186.21367.17377 2013-07-30 12:06:13.000000000 +0300 +++ .bashrc 2013-07-30 12:06:27.000000000 +0300 @@ -18,4 +18,4 @@ # alias mv='mv -i' [ $0 == l3script ] && . /root/.lilalo/l3bashrc && _l3_start -export EDITOR='vim' +export EDITOR='mcedit' |
#apt-get inittab mc
![]() E: Неверная операция inittab |
#apt-get istall mc
![]() E: Неверная операция istall |
#apt-get install mc
Чтение списков пакетов... Готово Построение дерева зависимостей Чтение информации о состоянии... Готово Будут установлены следующие дополнительные пакеты: libglib2.0-0 libglib2.0-data shared-mime-info Предлагаемые пакеты: zip unzip arj xpdf-reader pdf-viewer dbview odt2txt gv catdvi djvulibre-bin imagemagick python-boto python-tz НОВЫЕ пакеты, которые будут установлены: libglib2.0-0 libglib2.0-data mc shared-mime-info ... Распаковывается пакет libglib2.0-data (из файла .../libglib2.0-data_2.24.2-1_all.deb)... Выбор ранее не выбранного пакета mc. Распаковывается пакет mc (из файла .../mc_3%3a4.7.0.9-1_i386.deb)... Выбор ранее не выбранного пакета shared-mime-info. Распаковывается пакет shared-mime-info (из файла .../shared-mime-info_0.71-4_i386.deb)... Обрабатываются триггеры для man-db ... Настраивается пакет libglib2.0-0 (2.24.2-1) ... Настраивается пакет libglib2.0-data (2.24.2-1) ... Настраивается пакет mc (3:4.7.0.9-1) ... Настраивается пакет shared-mime-info (0.71-4) ... |
#vim .bashrc
|
#~
´7ÐоиÑк 8Уда~ÑÑ 9ÐенÑMC10ÐÑÑ Ð¾Ð´ No modification made root@debian2:~# exit exit |
#vim .bashrc
--- /tmp/l3-saved-3186.7457.31045 2013-07-30 12:07:10.000000000 +0300 +++ .bashrc 2013-07-30 12:07:15.000000000 +0300 @@ -18,4 +18,3 @@ # alias mv='mv -i' [ $0 == l3script ] && . /root/.lilalo/l3bashrc && _l3_start -export EDITOR='mcedit' |
#bash
# and what command to run for the task # # To define the time you can provide concrete values for # minute (m), hour (h), day of month (dom), month (mon), # and day of week (dow) or use '*' in these fields (for 'any').# # Notice that tasks will be started based on the cron's system # daemon's notion of time and timezones. # # Output of the crontab jobs (including errors) is sent through # email to the user the crontab file belongs to (unless redirected). # # For example, you can run a backup of all your user accounts # at 5 a.m every week with: # 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/ # [ Прочитано 22 строки ] No modification made root@debian2:~# exit exit |
#ls -la
итого 112 drwx------ 11 root root 4096 Июл 30 12:07 . drwxr-xr-x 21 root root 4096 Июн 11 2012 .. drwx------ 2 root root 4096 Июн 11 2012 .aptitude -rw------- 1 root root 2625 Июл 30 12:07 .bash_history -rw-r--r-- 1 root root 10 Июл 5 2012 .bash_profile -rw-r--r-- 1 root root 631 Июл 30 12:07 .bashrc drwxr-xr-x 2 root root 4096 Июл 29 13:53 dir1 drwxr-xr-x 2 root root 4096 Июл 29 13:53 dir2 drwxr-xr-x 6 root root 4096 Июл 29 13:55 dir4 ... lrwxrwxrwx 1 root root 5 Июл 29 14:46 link -> file9 drwx------ 3 root root 4096 Июл 30 12:07 .mc -rw-r--r-- 1 root root 994 Июл 29 16:53 passwd -rw-r--r-- 1 root root 140 Ноя 19 2007 .profile drwx------ 2 root root 4096 Июл 29 15:28 .ssh drwxr-xr-x 2 root root 4096 Июл 29 17:39 .vim -rw------- 1 root root 6515 Июл 30 12:07 .viminfo -rw-r--r-- 1 root root 50 Июл 29 17:03 .vimrc -rw-r--r-- 1 root root 24 Июл 29 16:52 wilen123 -rw-r--r-- 1 root root 24 Июл 29 16:52 wilen124 |
#ls -la|less
|
#-s 192.178.13.0/23 -j MASQUERADEfile3
![]() l3script: -s: команда не найдена |
#file3
![]() l3script: file3: команда не найдена |
#-s 192.178.13.0/23 -j ^CSQUERADEfile3
![]() |
#clear
|
#clear
|
#history
1 apt-get install netdiag 2 apt-get install tcpdump 3 apt-get install vim 4 apt-get install iptraf 5 apt-get install openbsd-inetd 6 apt-get install usbutils 7 apt-get install pciutils 8 apt-get install less 9 apt-get install w3m 10 mc ... 178 bash 179 vim .bashrc 180 bash 181 ls -la 182 ls -la|less 183 -s 192.178.13.0/23 -j MASQUERADEfile3 184 file3 185 clear 186 clear 187 history |
#history | less
|
#echo $HISTSIZE
500 |
#history -d 184
|
#history | less
|
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:16:3e:00:00:02 inet addr:192.168.13.2 Bcast:192.168.13.255 Mask:255.255.255.0 inet6 addr: fe80::216:3eff:fe00:2/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:81453 errors:0 dropped:0 overruns:0 frame:0 TX packets:99713 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:14340767 (13.6 MiB) TX bytes:17900175 (17.0 MiB) Interrupt:72 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:8 errors:0 dropped:0 overruns:0 frame:0 TX packets:8 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:560 (560.0 B) TX bytes:560 (560.0 B) |
#history | less
|
#df -h
Файловая система Разм Исп Дост Исп% смонтирована на /dev/xvda1 15G 941M 13G 7% / tmpfs 251M 0 251M 0% /lib/init/rw udev 247M 88K 247M 1% /dev tmpfs 251M 0 251M 0% /dev/shm |
#history | less
|
#!if
ifconfig eth0 Link encap:Ethernet HWaddr 00:16:3e:00:00:02 inet addr:192.168.13.2 Bcast:192.168.13.255 Mask:255.255.255.0 inet6 addr: fe80::216:3eff:fe00:2/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:82088 errors:0 dropped:0 overruns:0 frame:0 TX packets:100766 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:14376527 (13.7 MiB) TX bytes:18085693 (17.2 MiB) Interrupt:72 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:8 errors:0 dropped:0 overruns:0 frame:0 TX packets:8 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:560 (560.0 B) TX bytes:560 (560.0 B) |
#!?ping?
ping ya.ru PING ya.ru (87.250.251.3) 56(84) bytes of data. 64 bytes from www.yandex.ru (87.250.251.3): icmp_req=1 ttl=58 time=19.5 ms 64 bytes from www.yandex.ru (87.250.251.3): icmp_req=2 ttl=58 time=19.1 ms 64 bytes from www.yandex.ru (87.250.251.3): icmp_req=3 ttl=58 time=19.2 ms 64 bytes from www.yandex.ru (87.250.251.3): icmp_req=4 ttl=58 time=20.9 ms 64 bytes from www.yandex.ru (87.250.251.3): icmp_req=5 ttl=58 time=19.1 ms 64 bytes from www.yandex.ru (87.250.251.3): icmp_req=6 ttl=58 time=18.7 ms ^C --- ya.ru ping statistics --- 6 packets transmitted, 6 received, 0% packet loss, time 5006ms rtt min/avg/max/mdev = 18.773/19.475/20.928/0.713 ms |
#!?ping?^C
![]() |
#!if
ifconfig eth0 Link encap:Ethernet HWaddr 00:16:3e:00:00:02 inet addr:192.168.13.2 Bcast:192.168.13.255 Mask:255.255.255.0 inet6 addr: fe80::216:3eff:fe00:2/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:82330 errors:0 dropped:0 overruns:0 frame:0 TX packets:101101 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:14395193 (13.7 MiB) TX bytes:18126700 (17.2 MiB) Interrupt:72 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:8 errors:0 dropped:0 overruns:0 frame:0 TX packets:8 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:560 (560.0 B) TX bytes:560 (560.0 B) |
#!rm
l3script: !rm: event not found |
#set +o history
|
#jdf;fj
![]() l3script: jdf: команда не найдена l3script: fj: команда не найдена |
#;afj;af
![]() l3script: syntax error near unexpected token `;' |
#;fj;lfj
![]() l3script: syntax error near unexpected token `;' |
#history | less
|
#set -o history
|
#l;afj;
![]() l3script: l: команда не найдена l3script: afj: команда не найдена |
#history | less
|
#vim .bash_history
|
#echo $$\
> 3186 |
#bash
![]() root@debian2:~# echo $$ 3933 root@debian2:~# kill -9 $$ Убито |
#echo $$\
> 3186 |
#echo $SHELL
/bin/bash |
#bash
root@debian2:~# echo $SHELL /bin/bash root@debian2:~# exit exit |
#gghnhtt]\
![]() > l3script: gghnhtt]: команда не найдена |
#x
![]() x11perf xcalc xditview xmag xxd xzfgrep x11perfcomp xclipboard xedit xman xz xzgrep x86_64 xclock xeyes xmore xzcat xzless xargs xconsole xgc xsubpp xzcmp xzmore xauth xcursorgen xload xwd xzdiff xbiff xcutsel xlogo xwud xzegrep |
#x
![]() x11perf xcalc xditview xmag xxd xzfgrep x11perfcomp xclipboard xedit xman xz xzgrep x86_64 xclock xeyes xmore xzcat xzless xargs xconsole xgc xsubpp xzcmp xzmore xauth xcursorgen xload xwd xzdiff xbiff xcutsel xlogo xwud xzegrep |
#x
![]() x11perf xcalc xditview xmag xxd xzfgrep x11perfcomp xclipboard xedit xman xz xzgrep x86_64 xclock xeyes xmore xzcat xzless xargs xconsole xgc xsubpp xzcmp xzmore xauth xcursorgen xload xwd xzdiff xbiff xcutsel xlogo xwud xzegrep |
#st
![]() startpar statnet strings stty start-stop-daemon statnetd strip stat stdbuf strobe |
#st
![]() startpar statnet strings stty start-stop-daemon statnetd strip stat stdbuf strobe |
#stty
![]() .aptitude/ dir4/ file8 .lilalo/ .vim/ .bash_history dir5/ file9 link .viminfo .bash_profile file10 hard_link .mc/ .vimrc .bashrc file123 inittab passwd wilen123 dir1/ file3 .l3rc .profile wilen124 dir2/ file6 .lesshst .ssh/ |
#stty -h
![]() stty: неверный аргумент «-h» Попробуйте `stty --help' для получения более подробного описания. |
#stty --help
ÐÑполÑзование: stty [-F УСТРÐÐСТÐÐ] [--file=УСТРÐÐСТÐÐ] [ÐÐСТРÐÐÐÐ]... или: stty [-F УСТРÐÐСТÐÐ] [--file=УСТРÐÐСТÐÐ] [-a|--all] или: stty [-F УСТРÐÐСТÐÐ] [--file=УСТРÐÐСТÐÐ] [-g|--save] ÐеÑаÑÐ°ÐµÑ Ð¸Ð»Ð¸ изменÑÐµÑ Ð½Ð°ÑÑÑойки ÑеÑминала. -a, --all напеÑаÑаÑÑ Ð²Ñе ÑекÑÑие наÑÑÑойки в ÑоÑме, понÑÑной ÑÐµÐ»Ð¾Ð²ÐµÐºÑ -g, --save напеÑаÑаÑÑ Ð²Ñе ÑекÑÑие наÑÑÑойки в ÑоÑме, понÑÑной пÑогÑамме stty -F, --file=УСТРÐÐСТÐРоÑкÑÑÑÑ Ð¸ иÑполÑзоваÑÑ Ñказанное ÑÑÑÑойÑÑво вмеÑÑо ÑÑандаÑÑного ввода ... УпÑавлÑÐµÑ ÑеÑминалÑной линией, подклÑÑенной к ÑÑандаÑÑÐ½Ð¾Ð¼Ñ Ð²Ð²Ð¾Ð´Ñ. ÐапÑÑÐµÐ½Ð½Ð°Ñ Ð±ÐµÐ· аÑгÑменÑов, пеÑаÑÐ°ÐµÑ ÑкоÑоÑÑÑ Ð¿ÐµÑедаÑи инÑоÑмаÑии, line discipline и оÑлиÑÐ¸Ñ Ð¾Ñ Ð¾Ð±ÑÑнÑÑ ÑÑÑановок. ÐÑи ÑÑÑановке, СÐÐÐÐРв как ^c, 0x37, 0177 или 127; Ð´Ð»Ñ Ð¾ÑÐ¼ÐµÐ½Ñ ÑпеÑиалÑнÑÑ Ñимволов ÑлÑÐ¶Ð°Ñ Ð·Ð½Ð°ÑÐµÐ½Ð¸Ñ ^- и undef. Ðб оÑÐ¸Ð±ÐºÐ°Ñ Ð² stty ÑообÑайÑе по адÑеÑÑ bug-coreutils@gnu.org. ÐомаÑнÑÑ ÑÑÑаниÑа GNU coreutils: <http://www.gnu.org/software/coreutils/> СпÑавка по ÑабоÑе Ñ Ð¿ÑогÑаммами GNU: <http://www.gnu.org/gethelp/> Ðб оÑÐ¸Ð±ÐºÐ°Ñ Ð² пеÑеводе stty ÑообÑений по адÑеÑÑ <gnu@mx.ru> ÐÐ¾Ð»Ð½Ð°Ñ Ð´Ð¾ÐºÑменÑаÑÐ¸Ñ Ð´Ð¾ÑÑÑпна по команде: info coreutils 'stty invocation' |
#man stty
|
#stty -a
speed 38400 baud; rows 24; columns 80; line = 0; intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>; eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W; lnext = ^V; flush = ^O; min = 1; time = 0; -parenb -parodd cs8 -hupcl -cstopb cread -clocal -crtscts -ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff -iuclc -ixany -imaxbel -iutf8 opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0 isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt echoctl echoke |
#man stty
|
#stty eol = ^S
![]() stty: неверный аргумент «^S» Попробуйте `stty --help' для получения более подробного описания. |
#man stty
|
#man stty
|
#man -ixon
![]() |
#man -ixoff
![]() |
#man -i^Cff
![]() |
#ssh root@192.168.13.253
26 28 <emphasis>&bash;. </emphasis>Bourne-Again SHell. ÐÑновной команднÑй инÑеÑÐ¿Ñ ÐµÑаÑÐ¾Ñ ÐС &os;. ÐÑедÑÑавлÑÐµÑ Ñобой ÑазвиÑие ash и &sh;. ÐоддеÑÐ¶Ð¸Ð²Ð°ÐµÑ Ð±Ð¾Ð³Ð°ÑÑ Ð¹ ÑзÑк напиÑÐ°Ð½Ð¸Ñ ÑкÑипÑов, ÑдобнÑй инÑеÑÑÐµÐ¹Ñ Ð´Ð»Ñ ÑедакÑиÑÐ¾Ð²Ð°Ð½Ð¸Ñ ÐºÐ¾Ð¼Ð°Ð½Ð´Ð½Ð¾Ð¹ Ñ ÑÑоки, авÑопÑодолжение команд и множеÑÑво дÑÑÐ³Ð¸Ñ Ð¿Ð¾Ð»ÐµÐ·Ð½ÑÑ Ð²Ð¾Ð·Ð¼Ð¾Ð¶Ð½Ð¾ÑÑей; 29 </para></li> 30 28 <emphasis>&bash;. </emphasis>Bourne-Again SHell. ÐÑно13,1ой ком1%нднÑй инÑеÑÐ¿Ñ 110 инÑеÑпÑеÑаÑоÑ, пÑивилегиÑми ÑÑпеÑполÑзоваÑÐµÐ»Ñ (~#~) или Ð½ÐµÑ (~$~). 111 </para> ... 300 ÐÑе командÑ, введеннÑе полÑзоваÑелем в инÑеÑпÑеÑаÑоÑе &bash;, ÑÐ¾Ñ ÑанÑÑÑÑÑ. 301 ÐеÑеÑÐµÐ½Ñ Ñанее введеннÑÑ ÐºÐ¾Ð¼Ð°Ð½Ð´ назÑваеÑÑÑ <emphasis>иÑÑоÑией</emphasis>. 242 <lp> 301,1 25% 234 ÐеÑÐµÑ Ð¾Ð´ к наÑÐ°Ð»Ñ | конÑÑ ÑÑÑоки 235 </rp> 236 <lp> 237 ^Ctrl-b^ (^влево^) | ^Ctrl-f^ (^впÑаво^) fobos:~/book/nt-ladm/modules# exit logout Connection to 192.168.13.253 closed. |
#stty set -ixoff
![]() stty: неверный аргумент «set» Попробуйте `stty --help' для получения более подробного описания. |
#ssh root@192.168.13.253
![]() root@192.168.13.253's password: |
#man stty
|
#ssh root@192.168.13.253
356 ^Ctrl-s^ вниваются с искомым текстом. Если комбинация ^Ctrl-s^ не работает, это може т означать что тключен метод управления потоком XON/XOFF. Включить его можн о командой ~stty set -ixon~ . 358 <rp> 360 </rp> 359 Прямой поиск в истории. Просматриваются все строки, начиная с первой, и сра 361 <lp> 362 ^Meta-Ctrl-y^ )/lp> 366 </rp> 367 <lp>тавить первый аргумент последней введенной команды (второе слово в строке fobos:~/book/nt-ladm/modules# exit logout Connection to 192.168.13.253 closed. |
#stty set -ixon
![]() stty: неверный аргумент «set» Попробуйте `stty --help' для получения более подробного описания. |
#stti
![]() .aptitude/ dir4/ file8 .lilalo/ .vim/ .bash_history dir5/ file9 link .viminfo .bash_profile file10 hard_link .mc/ .vimrc .bashrc file123 inittab passwd wilen123 dir1/ file3 .l3rc .profile wilen124 dir2/ file6 .lesshst .ssh/ |
#stty
![]() .aptitude/ dir4/ file8 .lilalo/ .vim/ .bash_history dir5/ file9 link .viminfo .bash_profile file10 hard_link .mc/ .vimrc .bashrc file123 inittab passwd wilen123 dir1/ file3 .l3rc .profile wilen124 dir2/ file6 .lesshst .ssh/ |
#stty
![]() .aptitude/ dir4/ file8 .lilalo/ .vim/ .bash_history dir5/ file9 link .viminfo .bash_profile file10 hard_link .mc/ .vimrc .bashrc file123 inittab passwd wilen123 dir1/ file3 .l3rc .profile wilen124 dir2/ file6 .lesshst .ssh/ |
#/etc/init
![]() init.d/ initramfs-tools/ |
#passwd
![]() .aptitude/ dir4/ file8 .lilalo/ .vim/ .bash_history dir5/ file9 link .viminfo .bash_profile file10 hard_link .mc/ .vimrc .bashrc file123 inittab passwd wilen123 dir1/ file3 .l3rc .profile wilen124 dir2/ file6 .lesshst .ssh/ |
#. /etc/bash_completion
|
#passwd
![]() backup games list news sshd telnetd bin gnats lp nobody statd user daemon irc mail proxy sync uucp Debian-exim libuuid man root sys www-data |
#echo $
![]() $_ $L3_TAMPERED_EDITORS $BASH $LANG $BASH_ALIASES $LANGUAGE $BASH_ARGC $LINENO $BASH_ARGV $LINES $BASH_CMDS $LOGNAME $BASH_COMMAND $MACHTYPE $BASH_COMPLETION $MAIL $BASH_COMPLETION_COMPAT_DIR $MAILCHECK $BASH_COMPLETION_DIR $old_file ... $BASH_SOURCE $PATH $BASH_SUBSHELL $PIPESTATUS $BASH_VERSINFO $PPID $BASH_VERSION $PS1 $COLUMNS $PS2 $COMP_WORDBREAKS $PS4 $DIFFNAME $PWD $DIR $RANDOM $DIRSTACK $_scp_path_esc $editor_file $SECONDS |
#ifconfig
![]() .aptitude/ dir4/ file8 .lilalo/ .vim/ .bash_history dir5/ file9 link .viminfo .bash_profile file10 hard_link .mc/ .vimrc .bashrc file123 inittab passwd wilen123 dir1/ file3 .l3rc .profile wilen124 dir2/ file6 .lesshst .ssh/ |
#ls /etc/bash_completion
![]() bash_completion bash_completion.d/ |
#ls /etc/bash_completion.d/
abook gdb medusa rpmcheck ant genisoimage minicom rrdtool apache2ctl getent mkinitrd rsync apt gkrellm module-init-tools rtcwake apt-build gnatmake monodevelop samba aptitude gpg mount sbcl aspell gpg2 mplayer screen autorpm gzip msynctool service bash-builtins heimdal munin-node shadow bind-utils hping2 mutt sitecopy ... dhclient lisp qemu xm dict lvm quota-tools xmllint dpkg lzma rcs xmlwf dselect lzop rdesktop xmms dsniff mailman reportbug xrandr findutils make resolvconf xsltproc freeciv man rfkill xz fuse mc ri yp-tools gcc mcrypt rpcdebug yum-arch gcl mdadm rpm |
#ls /etc/bash_completion.d/ip
![]() ipmitool ipsec iptables ipv6calc |
#ls /etc/bash_completion.d/ip
![]() ipmitool ipsec iptables ipv6calc |
#ls /etc/bash_completion.d/iptables
/etc/bash_completion.d/iptables |
#iptables -t nat -A
![]() INPUT OUTPUT POSTROUTING PREROUTING |
#iptables -t nat -A
![]() INPUT OUTPUT POSTROUTING PREROUTING |
#vim /etc/bash.bashrc
--- /tmp/l3-saved-3186.3263.24003 2013-07-30 13:15:01.000000000 +0300 +++ /etc/bash.bashrc 2013-07-30 13:15:12.000000000 +0300 @@ -29,9 +29,9 @@ #esac # enable bash completion in interactive shells -#if [ -f /etc/bash_completion ] && ! shopt -oq posix; then -# . /etc/bash_completion -#fi +if [ -f /etc/bash_completion ] && ! shopt -oq posix; then + . /etc/bash_completion +fi # if the command-not-found package is installed, use it if [ -x /usr/lib/command-not-found -o -x /usr/share/command-not-found ]; then |
#ls -d /etc/
/etc/ |
Время первой команды журнала | 10:10:41 2013- 7-29 | ||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 12:15:12 2013- 7-30 | ||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 100 | ||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 17.00 | ||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 12.00 | ||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 1.71 | ||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.97 | ||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|