/l3/users/My-Debian-Work/adm.prombez/ol14 :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 :17 :18 :19 :20 :21 :22 :23 :24 |
|
$scp ~/.ssh/id_rsa.pub userserv@192.168.0.128:.ssh/authorized_key
userserv@192.168.0.128's password: Permission denied, please try again. userserv@192.168.0.128's password: Permission denied, please try again. userserv@192.168.0.128's password: id_rsa.pub 100% 390 0.4KB/s 00:00 |
$scp ~/.ssh/id_rsa.pub userserv@192.168.0.128:.ssh/authorized_key
userserv@192.168.0.128's password: Permission denied, please try again. userserv@192.168.0.128's password: Permission denied, please try again. userserv@192.168.0.128's password: id_rsa.pub 100% 390 0.4KB/s 00:00 |
$ssh userserv@192.168.0.128
userserv@192.168.0.128's password: Linux srv-01.local 2.6.26-2-686 #1 SMP Thu Sep 16 19:35:51 UTC 2010 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Wed Sep 29 15:49:54 2010 from adm.prombez userserv@srv-01:~$ ехexit logout Connection to 192.168.0.128 closed. |
$ssh userserv@192.168.0.128
userserv@192.168.0.128's password: Permission denied, please try again. userserv@192.168.0.128's password: Linux srv-01.local 2.6.26-2-686 #1 SMP Thu Sep 16 19:35:51 UTC 2010 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Wed Sep 29 15:50:33 2010 from adm.prombez userserv@srv-01:~$ exit logout Connection to 192.168.0.128 closed. |
$ssh userserv@192.168.0.128
userserv@192.168.0.128's password: Linux srv-01.local 2.6.26-2-686 #1 SMP Thu Sep 16 19:35:51 UTC 2010 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Wed Sep 29 15:53:56 2010 from adm.prombez userserv@srv-01:~$ exit logout Connection to 192.168.0.128 closed. |
$ssh userserv@192.168.0.128
userserv@192.168.0.128's password: Permission denied, please try again. userserv@192.168.0.128's password: Permission denied, please try again. userserv@192.168.0.128's password: Connection closed by 192.168.0.128 |
$ssh userserv@192.168.0.128
userserv@192.168.0.128's password: Permission denied, please try again. userserv@192.168.0.128's password: Permission denied, please try again. userserv@192.168.0.128's password: Connection closed by 192.168.0.128 |
$ssh-copy-id "userserv@192.168.0.128"
userserv@192.168.0.128's password: Now try logging into the machine, with "ssh 'userserv@192.168.0.128'", and check in: .ssh/authorized_keys to make sure we haven't added extra keys that you weren't expecting. |
$ssh userserv@192.168.0.128
Linux srv-01.local 2.6.26-2-686 #1 SMP Thu Sep 16 19:35:51 UTC 2010 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Wed Sep 29 15:55:43 2010 from adm.prombez userserv@srv-01:~$ exit logout Connection to 192.168.0.128 closed. |
$ssh userserv@192.168.0.128
Linux srv-01.local 2.6.26-2-686 #1 SMP Thu Sep 16 19:35:51 UTC 2010 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Wed Sep 29 16:16:27 2010 from adm.prombez userserv@srv-01:~$ exit logout Connection to 192.168.0.128 closed. |
$ssh userserv@192.168.0.128
Linux srv-01.local 2.6.26-2-686 #1 SMP Thu Sep 16 19:35:51 UTC 2010 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Wed Sep 29 16:16:46 2010 from adm.prombez userserv@srv-01:~$ exit logout Connection to 192.168.0.128 closed. |
$ssh 192.168.0.128
ol14@192.168.0.128's password: Permission denied, please try again. ol14@192.168.0.128's password: Permission denied, please try again. ol14@192.168.0.128's password: Permission denied (publickey,password). |
$ssh userserv@192.168.0.128
~ ââââ â/.. â-ÐÐÐРХ-â â´â/.. â-ÐÐÐРХ-â â´ â/.ssh â 4096âСен 29 16:14 4 ââ/.ssh â 4096âСен 29 16:14 â â.bash_lo âââââââââââââââââââ Midnight Commander âââââââââââââââââââ â.htoprcr â â 541âСен 29 15:17 â â ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ â â â ââ â â â â â â ââ â â â â â â â ââ â â â â.. ââ/.. â СовеÑ: ÐеÑÐµÑ Ð¾Ð´Ð¸Ñе к ÑаÑÑо иÑполÑзÑемÑм каÑалогам из ÑпÑавоÑника, набÑав C-\. userserv@srv-01:~$ exit logout Connection to 192.168.0.128 closed. |
$Press `Q' to quit, `H' for help, and SPACE to scroll.
ol14v@192.168.0.126's password: Permission denied, please try again. ol14v@192.168.0.126's password: Permission denied, please try again. ol14v@192.168.0.126's password: Permission denied (publickey,password). lost connection |
$-p2233 ol14@192.168.0.126
bash: -p2233: команда не найдена |
$ssh -p2233 ol14@192.168.0.126
ÐÑойки ÐÑÐ°Ð²Ð°Ñ Ð¿Ð°Ð½ÐµÐ»Ñ Ð¡Ð¾Ð²ÐµÑ: ÐвÑодополнение: M-Tab (или Esc+Tab). ÐÐ»Ñ Ð¿Ð¾Ð»ÑÑÐµÐ½Ð¸Ñ ÑпиÑка нажаÑÑ Ð´Ð²Ð°Ð¶Ð´Ñ. ssh_config - OpenSSH SSH client configuration files NAME ~/.ssh/config SYNOP/etc/ssh/ssh_config ssh(1) obtains configuration data from the following sources in the folâ DESCRlowing order: 1. command-line options 2. userâs configuration file (~/.ssh/config) ... â â â ââ â â ââââââââââââââââââââââââââââââââââââââââââââââ â sshd_config authorized_keys â СовеÑ: ÐÑполÑзÑйÑе C-x p Ð´Ð»Ñ ÐºÐ¾Ð¿Ð¸ÑÐ¾Ð²Ð°Ð½Ð¸Ñ ÑекÑÑего пÑÑи в команднÑÑ ÑÑÑокÑ. iserver:/home/ol14# /etc/init.d/ssh restart Restarting OpenBSD Secure Shell server: sshd. iserver:/home/ol14# exit exit ol14@iserver:~$ exit logout Connection to 192.168.0.126 closed. |
$ssh -p2233 root@192.168.0.126
root@192.168.0.126's password: Permission denied, please try again. root@192.168.0.126's password: Permission denied, please try again. root@192.168.0.126's password: Permission denied (publickey,password). |
$ssh -p2233 192.168.0.126
Linux iserver 2.6.26-2-686 #1 SMP Thu Mar 11 23:19:46 UTC 2010 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. You have new mail. Last login: Thu Sep 30 09:25:33 2010 from adm.prombez ol14@iserver:~$ exit logout Connection to 192.168.0.126 closed. |
$ssh -p2233 192.168.0.126
Linux iserver 2.6.26-2-686 #1 SMP Thu Mar 11 23:19:46 UTC 2010 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. You have new mail. Last login: Thu Sep 30 10:07:17 2010 from adm.prombez ol14@iserver:~$ exit logout Connection to 192.168.0.126 closed. |
$ssh -p2233 ol14@192.168.0.126
Linux iserver 2.6.26-2-686 #1 SMP Thu Mar 11 23:19:46 UTC 2010 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. You have new mail. Last login: Thu Sep 30 10:10:11 2010 from adm.prombez ol14@iserver:~$ exit logout Connection to 192.168.0.126 closed. |
$ssh ol14@193.138.131.107
The authenticity of host '193.138.131.107 (193.138.131.107)' can't be established. RSA key fingerprint is d0:75:ec:e9:c5:b7:90:f5:c6:3e:29:a6:80:36:08:de. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '193.138.131.107' (RSA) to the list of known hosts. ol14@193.138.131.107's password: Linux iserver1.debian 2.6.26-2-686 #1 SMP Tue Mar 9 17:35:51 UTC 2010 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Wed Jun 23 15:51:15 2010 ol14@iserver1:~$ exit logout Connection to 193.138.131.107 closed. |
$~/.ssh/id_rsa.pub ol14v@192.168.0.126:.ssh/authorized_key
sh ol14@193.138.131.107 ssh: connect to host 193.138.131.107 port 2233: Connection refused |
$ssh ol14@193.138.131.107
ssh: connect to host 193.138.131.107 port 2233: Connection refused |
$ssh -p 22 ol14@193.138.131.107
ol14@193.138.131.107's password: Permission denied, please try again. ol14@193.138.131.107's password: Linux iserver1.debian 2.6.26-2-686 #1 SMP Tue Mar 9 17:35:51 UTC 2010 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent ÐÑойки ÐÑÐ°Ð²Ð°Ñ Ð¿Ð°Ð½ÐµÐ»Ñ â ÐÐ¼Ñ âÐ Ð°Ð·Ð¼ÐµÑ âÐÑÐµÐ¼Ñ Ð¿Ñавки ââ ÐÐ¼Ñ âÐ Ð°Ð·Ð¼ÐµÑ âÐÑÐµÐ¼Ñ Ð¿Ñавки â ... ol14@iserver1:~$ chmod 0600 ~/.ssh/authorized_keys ol14@iserver1:~$ exit exit iserver1:/home/ol14# chmod 0777 ~/.sshexit chmod: невозможно полÑÑиÑÑ Ð´Ð¾ÑÑÑп к `/root/.sshexit': ÐÐµÑ Ñакого Ñайла или каÑалога iserver1:/home/ol14# exit exit ol14@iserver1:~$ exit logout Connection to 193.138.131.107 closed. |
$ssh-copy-id "-p 22 ol14@193.138.131.107"
ol14@193.138.131.107's password: Now try logging into the machine, with "ssh '-p 22 ol14@193.138.131.107'", and check in: .ssh/authorized_keys to make sure we haven't added extra keys that you weren't expecting. |
$chmod 0700 ~/.ssh/
|
$chmod 0600 ~/.ssh/id_rsa*
|
$ls -l ~/.ssh/id_rsa*
-rw------- 1 ol14 ol14 1743 Сен 29 15:22 /home/ol14/.ssh/id_rsa -rw------- 1 ol14 ol14 630 Сен 29 15:30 /home/ol14/.ssh/id_rsa.keystore -rw------- 1 ol14 ol14 390 Сен 29 15:22 /home/ol14/.ssh/id_rsa.pub |
$ssh -p 22 193.138.131.107
Linux iserver1.debian 2.6.26-2-686 #1 SMP Tue Mar 9 17:35:51 UTC 2010 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Thu Sep 30 19:07:29 2010 from 193.138.131.124 ol14@iserver1:~$ su Пароль: iserver1:/home/ol14# /etc/init.d/ssh restart Restarting OpenBSD Secure Shell server: sshd. iserver1:/home/ol14# exit exit ol14@iserver1:~$ exit logout Connection to 193.138.131.107 closed. |
$ssh -p 22 193.138.131.107
ssh: connect to host 193.138.131.107 port 22: Connection refused |
$ssh -p 2233 193.138.131.107
ÐÑойки ÐÑÐ°Ð²Ð°Ñ Ð¿Ð°Ð½ÐµÐ»Ñ â ÐÐ¼Ñ âÐ Ð°Ð·Ð¼ÐµÑ âÐÑÐµÐ¼Ñ Ð¿Ñавки ââ ÐÐ¼Ñ âÐ Ð°Ð·Ð¼ÐµÑ âÐÑÐµÐ¼Ñ Ð¿Ñавки ââââââââââââv>â â/.. â-ÐÐÐРХ-â â´â/.. â-ÐÐÐРХ-â â´ â moduli â 125749âЯнв 14 2009 ââ access.log â195312KâСен 30 19:30 â â ssh_config â 1595âЯнв 14 2009 ââ access.log.1 â1050037âЯнв 3 1999 â â ssh_hos~dsa_keyâ 668âÐÐ°Ñ 9 2010 ââ access.log.2.gzâ 296358âЯнв 2 1999 â â ssh_hos~key.pubâ 610âÐÐ°Ñ 9 2010 ââ cache.log â114546KâСен 30 17:06 â â ssh_hos~rsa_keyâ 1675âÐÐ°Ñ 9 2010 ââ cache.log.1 â 14360KâЯнв 3 1999 â â ssh_hos~key.pubâ 402âÐÐ°Ñ 9 2010 ââ cache.log.2.gz â 588266âЯнв 2 1999 â â sshd_config â 1965âСен 30 19:32 ââ store.log â247543KâСен 30 19:10 â ... âââââââââââââââââââ Midnight Commander âââââââââââââââââââ â â ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ iserver1:/home/ol14# /etc/init.d/ssh restart Restarting OpenBSD Secure Shell server: sshd. iserver1:/home/ol14# exit exit ol14@iserver1:~$ exit logout Connection to 193.138.131.107 closed. |
$ssh -p2233 iserver
â</etc/ssh ââââââââââââââââââââââââv>ââ<â / ââââââââââââââââââââââââââââââââv>â â/.. â-ÐÐÐРХ-â â´â/bin â 3072âСен 15 16:0âââââââââââââââââââââââââ â â ssh_config â 1595âЯнв 14 2009 ââ~cdrom â 11âСен 10 200009 â â ssh_hos~key.pubâ 602âСен 10 2009 ââ/etc â 5120âСен 16 08:5:56 â â ssh_hos~key.pubâ 788âСен 29 14:00 ââ/lib â 8192âСен 15 16:0:07 â â â â â:08 ââ/media â 1024âСен 10 200009 â â â â â ââ/opt â 1024âСен 10 200009 â â â â â ââ/root â 1024âСен 17 14:3âââââââââââââââââââââââââââââ â â â â â ââ/selinux â 1024âСен 16 200ââââââââââââââââââââââââââââââââââââ â â sshd_config ââ/bin ] [ ÐÑеÑваÑÑ ] â ... 1ÐомоÑÑ 2ÐÐµÐ½Ñ 3ÐÑоÑмоÑ4ÐÑавка 5ÐÐ¾Ð¿Ð¸Ñ 6ÐеÑемеÑ7ÐвÐÑлог8УдалиÑÑ9ÐенÑMC 10ÐÑÑ Ð¾Ð´ СовеÑ: ÐÑÑезание и вÑÑавка Ñ Ð¿Ð¾Ð¼Ð¾ÑÑÑ Ð¼ÑÑи Ð¼Ð¾Ð¶ÐµÑ ÑÑебоваÑÑ Ð´ÐµÑжаÑÑ ÐºÐ»Ð°Ð²Ð¸ÑÑ Shift. iserver:/home/ol14# exit exit ol14@iserver:~$ exit logout Connection to iserver closed. Restarting OpenBSD Secure Shell server: sshd. iserver:/etc/ssh# exit exit |
$ssh -p 2233 193.138.131.107
Jan 3 16:17:01 iserver1 CRON[252 Позиция 0:session): session opened for user root by (uid=0) Совет: У нас также имеется толковая страница руководства. Apr 28 23:17:01 iserver1 CRON[3168]: pam_unix(cron:session): session closed for user root 1Помощь 2Меню 3Просмот4Правка 5Копия 6Перемес7НвКтлог8Удалить9МенюMC 10Выход Apr 29 14:50:08 iserver1 sshd[2036]: Server listening on :: port 22. Apr 29 14:50:01 iserver1 CRON[2136]: pam_unix(cron:sessio0.0.0.0 port 22.ed for user root Apr 29 15:17:01 iserver1 CRON[2183]: pam_unix(cron:session): session opened for user root by (uid=0) Apr 29 15:17:01 iserver1 CRON[2183]: pam_unix(cron:session): session closed for user root Jan 3 19:09:49 iserver1 login[2119]: pam_unix(login:auth): authentication failure; logname=LOGIN uid=0 euid=0 tty=tty1 ruser= rhost= user=root Jan 3 19:09:52 iserver1 login[2119]: FAILED LOGIN (1) on 'tty1' FOR `root', Authentication failure ... du: невозможно получить доступ к `/proc/9848/task/9848/fdinfo/4': Нет такого файла или каталога du: невозможно получить доступ к `/proc/9848/fd/4': Нет такого файла или каталога du: невозможно получить доступ к `/proc/9848/fdinfo/4': Нет такого файла или каталога 1,4G / iserver1:/var/log# Broadcast message from root@iserver1.debian (Thu Sep 30 22:53:20 2010): Power button pressed The system is going down for system halt NOW! Connection to 193.138.131.107 closed by remote host. Connection to 193.138.131.107 closed. |
$ÑÑsu zal56&1
[1] 4057 bash: 1: команда не найдена |
$psbook book.ps 1.ps
bash: psbook: команда не найдена |
$aptitude install psbook
Чтение списков пакетов... Готово Построение дерева зависимостей Чтение информации о состоянии... Готово Чтение информации о расширенных состояниях Инициализация состояний пакетов... Готово Чтение описаний задач... Готово E: Не удалось открыть файл блокировки /var/lib/dpkg/lock - open (13 Отказано в доступе) E: Unable to lock the administration directory (/var/lib/dpkg/), are you root? |
$pdf2ps 1.pdf
^Z [1]+ Stopped pdf2ps 1.pdf |
$psbook 1.ps 12.ps
psbook: can't open input file 1.ps |
$psbook 2.ps 22.ps
[424] [1] [2] [423] [422] [3] [4] [421] [420] [5] [6] [419] [418] [7] [8] [417] [416] [9] [10] [415] [414] [11] [12] [413] [412] [13] [14] [411] [410] [15] [16] [409] [408] [17] [18] [407] [406] [19] [20] [405] [404] [21] [22] [403] [402] [23] [24] [401] [400] [25] [26] [399] [398] [27] [28] [397] [396] [29] [30] [395] [394] [31] [32] [393] [392] [33] [34] [391] [390] [35] [36] [389] [388] [37] [38] [387] [386] [39] [40] [385] [384] [41] [42] [383] [382] [43] [44] [381] [380] [45] [46] [379] [378] [47] [48] [377] [376] [49] [50] [375] [374] [51] [52] [373] [372] [53] [54] [371] [370] [55] [56] [369] [368] [57] [58] [367] [366] [59] [60] [365] [364] [61] [62] [363] [362] [63] [64] [361] [360] [65] [66] [359] [358] [67] [68] [357] [356] [69] [70] [355] [354] ... [151] [152] [273] [272] [153] [154] [271] [270] [155] [156] [269] [268] [157] [158] [267] [266] [159] [160] [265] [264] [161] [162] [263] [262] [163] [164] [261] [260] [165] [166] [259] [258] [167] [168] [257] [256] [169] [170] [255] [254] [171] [172] [253] [252] [173] [174] [251] [250] [175] [176] [249] [248] [177] [178] [247] [246] [179] [180] [245] [244] [181] [182] [243] [242] [183] [184] [241] [240] [185] [186] [239] [238] [187] [188] [237] [236] [189] [190] [235] [234] [191] [192] [233] [232] [193] [194] [231] [230] [195] [196] [229] [228] [197] [198] [227] [226] [199] [200] [225] [224] [201] [202] [223] [222] [203] [204] [221] [220] [205] [206] [219] [218] [207] [208] [217] [216] [209] [210] [215] [214] [211] [212] [213] Wrote 424 pages, 428927544 bytes |
$psnup -l -pa4 -2 22.ps > result.ps
[1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19] [20] [21] [22] [23] [24] [25] [26] [27] [28] [29] [30] [31] [32] [33] [34] [35] [36] [37] [38] [39] [40] [41] [42] [43] [44] [45] [46] [47] [48] [49] [50] [51] [52] [53] [54] [55] [56] [57] [58] [59] [60] [61] [62] [63] [64] [65] [66] [67] [68] [69] [70] [71] [72] [73] [74] [75] [76] [77] [78] [79] [80] [81] [82] [83] [84] [85] [86] [87] [88] [89] [90] [91] [92] [93] [94] [95] [96] [97] [98] [99] [100] [101] [102] [103] [104] [105] [106] [107] [108] [109] [110] [111] [112] [113] [114] [115] [116] [117] [118] [119] [120] [121] [122] [123] [124] [125] [126] [127] [128] [129] [130] [131] [132] [133] [134] [135] [136] [137] [138] [139] [140] [141] [142] [143] [144] [145] [146] [147] [148] [149] [150] [151] [152] [153] [154] [155] [156] [157] [158] [159] [160] [161] [162] [163] [164] [165] [166] [167] [168] [169] [170] [171] [172] [173] [174] [175] [176] [177] [178] [179] [180] [181] [182] [183] [184] [185] [186] [187] [188] [189] [190] [191] [192] [193] [194] [195] [196] [197] [198] [199] [200] [201] [202] [203] [204] [205] [206] [207] [208] [209] [210] [211] [212] Wrote 212 pages, 429068298 bytes |
$psbook -s16 2.ps out.ps
[16] [1] [2] [15] [14] [3] [4] [13] [12] [5] [6] [11] [10] [7] [8] [9] [32] [17] [18] [31] [30] [19] [20] [29] [28] [21] [22] [27] [26] [23] [24] [25] [48] [33] [34] [47] [46] [35] [36] [45] [44] [37] [38] [43] [42] [39] [40] [41] [64] [49] [50] [63] [62] [51] [52] [61] [60] [53] [54] [59] [58] [55] [56] [57] [80] [65] [66] [79] [78] [67] [68] [77] [76] [69] [70] [75] [74] [71] [72] [73] [96] [81] [82] [95] [94] [83] [84] [93] [92] [85] [86] [91] [90] [87] [88] [89] [112] [97] [98] [111] [110] [99] [100] [109] [108] [101] [102] [107] [106] [103] [104] [105] [128] [113] [114] [127] [126] [115] [116] [125] [124] [117] [118] [123] [122] [119] [120] [121] [144] [129] [130] [143] [142] [131] [132] [141] [140] [133] [134] [139] [138] [135] [136] [137] [160] ... [310] [315] [314] [311] [312] [313] [336] [321] [322] [335] [334] [323] [324] [333] [332] [325] [326] [331] [330] [327] [328] [329] [352] [337] [338] [351] [350] [339] [340] [349] [348] [341] [342] [347] [346] [343] [344] [345] [368] [353] [354] [367] [366] [355] [356] [365] [364] [357] [358] [363] [362] [359] [360] [361] [384] [369] [370] [383] [382] [371] [372] [381] [380] [373] [374] [379] [378] [375] [376] [377] [400] [385] [386] [399] [398] [387] [388] [397] [396] [389] [390] [395] [394] [391] [392] [393] [416] [401] [402] [415] [414] [403] [404] [413] [412] [405] [406] [411] [410] [407] [408] [409] [*] [417] [418] [*] [*] [419] [420] [*] [*] [421] [422] [*] [*] [423] [424] [*] Wrote 432 pages, 428927728 bytes |
$psselect -o result1.ps>result3.ps
[1] [3] [5] [7] [9] [11] [13] [15] [17] [19] [21] [23] [25] [27] [29] [31] [33] [35] [37] [39] [41] [43] [45] [47] [49] [51] [53] [55] [57] [59] [61] [63] [65] [67] [69] [71] [73] [75] [77] [79] [81] [83] [85] [87] [89] [91] [93] [95] [97] [99] [101] [103] [105] [107] [109] [111] [113] [115] [117] [119] [121] [123] [125] [127] [129] [131] [133] [135] [137] [139] [141] [143] [145] [147] [149] [151] [153] [155] [157] [159] [161] [163] [165] [167] [169] [171] [173] [175] [177] [179] [181] [183] [185] [187] [189] [191] [193] [195] [197] [199] [201] [203] [205] [207] [209] [211] [213] [215] Wrote 108 pages, 215117327 bytes |
$psselect -e result1.ps>result4.ps
[2] [4] [6] [8] [10] [12] [14] [16] [18] [20] [22] [24] [26] [28] [30] [32] [34] [36] [38] [40] [42] [44] [46] [48] [50] [52] [54] [56] [58] [60] [62] [64] [66] [68] [70] [72] [74] [76] [78] [80] [82] [84] [86] [88] [90] [92] [94] [96] [98] [100] [102] [104] [106] [108] [110] [112] [114] [116] [118] [120] [122] [124] [126] [128] [130] [132] [134] [136] [138] [140] [142] [144] [146] [148] [150] [152] [154] [156] [158] [160] [162] [164] [166] [168] [170] [172] [174] [176] [178] [180] [182] [184] [186] [188] [190] [192] [194] [196] [198] [200] [202] [204] [206] [208] [210] [212] [214] [216] Wrote 108 pages, 213956998 bytes |
$gconf-editor
|
$ping
Usage: ping [-LRUbdfnqrvVaA] [-c count] [-i interval] [-w deadline] [-p pattern] [-s packetsize] [-t ttl] [-I interface or address] [-M mtu discovery hint] [-S sndbuf] [ -T timestamp option ] [ -Q tos ] [hop1 ...] destination |
$ssh -p 2233 193.138.131.107
ssh: connect to host 193.138.131.107 port 2233: No route to host |
$ping 193.138.131.124
PING 193.138.131.124 (193.138.131.124) 56(84) bytes of data. 64 bytes from 193.138.131.124: icmp_seq=1 ttl=64 time=0.262 ms 64 bytes from 193.138.131.124: icmp_seq=2 ttl=64 time=0.226 ms 64 bytes from 193.138.131.124: icmp_seq=3 ttl=64 time=0.243 ms 64 bytes from 193.138.131.124: icmp_seq=4 ttl=64 time=0.152 ms 64 bytes from 193.138.131.124: icmp_seq=5 ttl=64 time=0.232 ms ^Z [1]+ Stopped ping 193.138.131.124 |
$ping 193.138.131.107
PING 193.138.131.107 (193.138.131.107) 56(84) bytes of data. From 193.138.131.124 icmp_seq=1 Destination Host Unreachable From 193.138.131.124 icmp_seq=2 Destination Host Unreachable From 193.138.131.124 icmp_seq=3 Destination Host Unreachable From 193.138.131.124 icmp_seq=4 Destination Host Unreachable From 193.138.131.124 icmp_seq=5 Destination Host Unreachable From 193.138.131.124 icmp_seq=6 Destination Host Unreachable ^Z [2]+ Stopped ping 193.138.131.107 |
$ping serverprom
PING serverprom.prombez (192.168.0.200) 56(84) bytes of data. 64 bytes from serverprom.prombez (192.168.0.200): icmp_seq=1 ttl=128 time=0.185 ms 64 bytes from serverprom.prombez (192.168.0.200): icmp_seq=2 ttl=128 time=0.173 ms 64 bytes from serverprom.prombez (192.168.0.200): icmp_seq=3 ttl=128 time=0.199 ms 64 bytes from serverprom.prombez (192.168.0.200): icmp_seq=4 ttl=128 time=0.196 ms 64 bytes from serverprom.prombez (192.168.0.200): icmp_seq=5 ttl=128 time=0.205 ms 64 bytes from serverprom.prombez (192.168.0.200): icmp_seq=6 ttl=128 time=0.196 ms 64 bytes from serverprom.prombez (192.168.0.200): icmp_seq=7 ttl=128 time=0.199 ms ^Z [3]+ Stopped ping serverprom |
$ping 193.138.131.107
PING 193.138.131.107 (193.138.131.107) 56(84) bytes of data. From 193.138.131.124 icmp_seq=1 Destination Host Unreachable From 193.138.131.124 icmp_seq=2 Destination Host Unreachable From 193.138.131.124 icmp_seq=3 Destination Host Unreachable ^X^Z [4]+ Stopped ping 193.138.131.107 |
$ping 193.138.131.107
PING 193.138.131.107 (193.138.131.107) 56(84) bytes of data. From 193.138.131.124 icmp_seq=1 Destination Host Unreachable From 193.138.131.124 icmp_seq=2 Destination Host Unreachable From 193.138.131.124 icmp_seq=3 Destination Host Unreachable ^Z [5]+ Stopped ping 193.138.131.107 |
$ping 193.138.131.107
PING 193.138.131.107 (193.138.131.107) 56(84) bytes of data. 64 bytes from 193.138.131.107: icmp_seq=1 ttl=63 time=2133 ms 64 bytes from 193.138.131.107: icmp_seq=2 ttl=63 time=1132 ms 64 bytes from 193.138.131.107: icmp_seq=3 ttl=63 time=143 ms 64 bytes from 193.138.131.107: icmp_seq=4 ttl=63 time=348 ms 64 bytes from 193.138.131.107: icmp_seq=5 ttl=63 time=6.28 ms 64 bytes from 193.138.131.107: icmp_seq=6 ttl=63 time=11.6 ms ^Z [6]+ Stopped ping 193.138.131.107 |
$nslookup secretar
Server: 192.168.0.126 Address: 192.168.0.126#53 Name: secretar.prombez Address: 192.168.0.120 |
$su
200 rdesktop -uol14 -p13r@7t -g1024x768 -a16 -k en-us.fixed 192.168.0.2 WARNING: No translation for (keysym 0x2f, slash) WARNING: No translation for (keysym 0x2f, slash) WARNING: No translation for (keysym 0x2f, slash) WARNING: No translation for (keysym 0x2f, slash) WARNING: No translation for (keysym 0xfe0a, ISO_Prev_Group) WARNING: No translation for (keysym 0x6f4, Cyrillic_TE) WARNING: No translation for (keysym 0x6d4, Cyrillic_te) WARNING: No translation for (keysym 0x6cf, Cyrillic_o) WARNING: No translation for (keysym 0x6cf, Cyrillic_o) ... WARNING: No translation for (keysym 0x6d8, Cyrillic_softsign) WARNING: No translation for (keysym 0x6d9, Cyrillic_yeru) WARNING: No translation for (keysym 0x6d9, Cyrillic_yeru) WARNING: No translation for (keysym 0x6c7, Cyrillic_ghe) WARNING: No translation for (keysym 0x6c7, Cyrillic_ghe) WARNING: No translation for (keysym 0x6d4, Cyrillic_te) WARNING: No translation for (keysym 0x6d4, Cyrillic_te) WARNING: No translation for (keysym 0x6d0, Cyrillic_pe) WARNING: No translation for (keysym 0x6d0, Cyrillic_pe) WARNING: No translation for (keysym 0xfe0a, ISO_Prev_Group) |
$ls
1.ps pxelinix.0 1x1.png pxelinux.0 2010-08-24-10-16-33.065-VirtualBox-7488.log result.ps 2010-09-01-07-35-48.023-VirtualBox-9244.log ru_RU.UTF-8 2010-09-01-07-52-59.016-VirtualBox-9359.log sample1.blend 2010-09-01-08-09-56.067-VirtualBox-9479.log serverprom-common 7600.iso temp book.ps __temp Desktop Templates dic.txt www documents Настройки 7.odt DOWNLOAD новый файл DOWNLOAD_TORRENT новый файл~ Kaspersky Internet Security 2011 новый файл 1 Kaspersky Internet Security 2011.zip новый файл 1~ lilalo оу11.ps ol |
$cd C-programm/book
|
$gcc getput.c
getput.c: In function ‘main’: getput.c:6: error: expected ‘;’ before ‘putchar’ |
$gcc getput.c
getput.c:2:19: error: conio.h: Нет такого файла или каталога getput.c: In function ‘main’: getput.c:6: error: expected ‘;’ before ‘putchar’ |
$man getchar
|
$gcc getput.c
getput.c: In function ‘main’: getput.c:6: error: expected ‘;’ before ‘putchar’ |
$gcc getput.c
|
$gcc getput.c
getput.c:6:3: error: invalid preprocessing directive #putchar |
$gcc getput.c
|
$bdfgdsgdfdgdsfgdjfgjdkgjkvnvmznczn,mxnv,mzxnvmxvnvnxvn
bash: bdfgdsgdfdgdsfgdjfgjdkgjkvnvmznczn,mxnv,mzxnvmxvnvnxvn: команда не найдена |
$sdfsdfsdfsdfsdf
bash: sdfsdfsdfsdfsdf: команда не найдена |
$asdfsdfsdfsdfsdfsddddfsdfasdfsafsfsfasdfasdf
|
$gdb a.out
bash: gdb: команда не найдена |
$aptitude install kivio
Чтение списков пакетов... Готово Построение дерева зависимостей Чтение информации о состоянии... Готово Чтение информации о расширенных состояниях Инициализация состояний пакетов... Готово Чтение описаний задач... Готово W: Duplicate sources.list entry http://download.virtualbox.org lenny/non-free Packages (/var/lib/apt/lists/download.virtualbox.org_virtualbox_debian_dists_lenny_non-free_binary-i386_Packages) W: Возможно, вы захотите обновить список пакетов, чтобы не было этих пропущенных файлов E: Не удалось открыть файл блокировки /var/lib/dpkg/lock - open (13 Отказано в доступе) E: Unable to lock the administration directory (/var/lib/dpkg/), are you root? |
$su
Пароль: su: Сбой при проверке подлинности |
$Ñid
uid=1000(ol14) gid=1000(ol14) гÑÑппÑ=20(dialout),24(cdrom),25(floppy),29(audio),44(video),46(plugdev),110(netdev),111(lpadmin),115(powerdev),118(vboxusers),1000(ol14) |
$ls -l
итого 5602436 -rw-r--r-- 1 root root 0 Окт 6 14:10 1.ps -rw-r--r-- 1 ol14 ol14 159 Июл 30 13:29 1x1.png -rw------- 1 ol14 ol14 296 Авг 24 16:16 2010-08-24-10-16-33.065-VirtualBox-7488.log -rw------- 1 ol14 ol14 296 Сен 1 13:35 2010-09-01-07-35-48.023-VirtualBox-9244.log -rw------- 1 ol14 ol14 296 Сен 1 13:52 2010-09-01-07-52-59.016-VirtualBox-9359.log -rw------- 1 ol14 ol14 296 Сен 1 14:09 2010-09-01-08-09-56.067-VirtualBox-9479.log -rwxrwSrwx 1 ol14 ol14 4000383132 Авг 10 19:35 7600.iso -rw-r--r-- 1 ol14 ol14 581190704 Окт 5 15:10 book.ps drwxr-xr-x 8 ol14 ol14 4096 Окт 7 10:22 Desktop ... drwxr-xr-x 2 ol14 ol14 4096 Окт 6 12:19 temp drwxr-xr-x 2 root root 4096 Июн 8 09:29 __temp drwxr-xr-x 2 ol14 ol14 4096 Июн 23 09:25 Templates drwxrwxr-x 7 www-data ol14 4096 Сен 3 14:41 www -rw-r--r-- 1 ol14 ol14 10345 Авг 24 09:34 Настройки 7.odt -rw-r--r-- 1 ol14 ol14 5478 Июн 8 09:05 новый файл -rw-r--r-- 1 ol14 ol14 3660 Июн 8 09:05 новый файл~ -rw-r--r-- 1 ol14 ol14 2753 Сен 3 14:35 новый файл 1 -rw-r--r-- 1 ol14 ol14 2611 Сен 2 16:26 новый файл 1~ -rw-r--r-- 1 ol14 ol14 423632292 Окт 6 10:08 оу11.ps |
$ls -ld
drwxr-xr-x 62 ol14 ol14 4096 Ноя 9 11:39 . |
$ls -ld temp
drwxr-xr-x 2 ol14 ol14 4096 Окт 6 12:19 temp |
$xrandr
Screen 0: minimum 320 x 200, current 1600 x 900, maximum 1680 x 1680 VGA1 disconnected DVI0 disconnected VGA2 connected 1600x900+0+0 443mm x 249mm 1600x900 60.0*+ 59.9 1600x1200 60.0 1680x1050 60.0 1600x1024 60.0 1400x1050 74.8 70.0 60.0 1280x1024 75.0 59.9 60.0 ... 720x450 120.3 640x480 120.0 75.0 72.8 75.0 60.0 59.9 720x400 70.1 640x400 120.0 576x432 150.0 640x384 120.2 576x384 109.6 512x384 150.1 140.1 120.0 416x312 149.3 400x300 144.4 |
$su
|
$ssh -p2233 192.168.0.126
|
$su
|
$ssh -p2233 192.168.0.126
|
$ssh -p 2233 193.138.131.107
ssh: connect to host 193.138.131.107 port 2233: No route to host |
$ssh -p 2233 193.138.131.107
^[[A^Z [1]+ Stopped ssh -p 2233 193.138.131.107 |
$ыьс
bash: ьс: команда не найдена |
Время первой команды журнала | 11:35:15 2010- 9-29 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 06:33:09 2010-11-10 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 35.64 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 8.91 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 5.14 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.33 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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