/l3/users/4-9-2017/NT-Ladm/debian1.net.nt/root :1 :2 :3 :4 :5 :6 |
|
#echo $?
0 |
#useradd ivan
![]() useradd: пользователь «ivan» уже существует |
#echo $?
9 |
#passwd ivan
Введите новый пароль UNIX: Повторите ввод нового пароля UNIX: passwd: пароль успешно обновлён |
#userdel ivan
|
#useradd --help
ÐÑполÑзование: useradd [паÑамеÑÑÑ] ÐÐÐ seradd -D useradd -D [паÑамеÑÑÑ] ÐаÑамеÑÑÑ: -b, --base-dir ÐÐÐ_ÐÐТ базовÑй каÑалог Ð´Ð»Ñ Ð´Ð¾Ð¼Ð°Ñнего каÑалога новой ÑÑÑÑной запиÑи -c, --comment ÐÐÐÐÐÐТÐÐ ÐРполе GECOS новой ÑÑÑÑной запиÑи -d, --home-dir ÐÐÐ_ÐÐТ домаÑний каÑалог новой ÑÑÑÑной запиÑи -D, --defaults показаÑÑ Ð¸Ð»Ð¸ измениÑÑ Ð½Ð°ÑÑÑойки по ÑмолÑÐ°Ð½Ð¸Ñ Ð´Ð»Ñ useradd ... -p, --password ÐÐÐ ÐÐÑÑной запиÑи -r, --system ÑоздаÑÑ ÑиÑÑемнÑÑ ÑÑÑÑнÑÑ Ð·Ð°Ð¿Ð¸ÑÑ -R, --root ÐÐТ_CHROOT каÑалог, в коÑоÑÑй вÑполнÑеÑÑÑ chroot -s, --shell ÐÐÐРновой ÑÑÑÑной запиÑи -u, --uid UID полÑзоваÑелÑÑкий ID новой ÑÑÑÑной запиÑи -U, --user-group ÑоздаÑÑ Ð³ÑÑÐ¿Ð¿Ñ Ñ Ñем же именем ÑÑо и Ñ Ð¿Ð¾Ð»ÑзоваÑÐµÐ»Ñ -Z, --selinux-user SEUSER иÑполÑзоваÑÑ Ñказанного SEUSER Ð´Ð»Ñ Ð¿Ð¾Ð»ÑзоваÑелÑÑкого ÑопоÑÑÐ°Ð²Ð»ÐµÐ½Ð¸Ñ SELinux |
#useradd -m -s /bin/bash ivan
|
#passwd ivan
Введите новый пароль UNIX: Повторите ввод нового пароля UNIX: passwd: пароль успешно обновлён |
#useradd -m -s /bin/bash petr
|
#who
root pts/0 2017-09-04 09:59 (192.168.16.123) ivan pts/2 2017-09-04 10:28 (192.168.16.123) |
#whoami
root |
#hostmane
![]() l3script: hostmane: команда не найдена |
#hostname
debian1 |
#pwd
/root |
#ls -a
. .. .aptitude .bash_history .bash_profile .bashrc install .l3rc .lilalo .profile .vim .viminfo |
#ls
install |
#ls -al
итого 56 drwx------ 5 root root 4096 Окт 15 2014 . drwxr-xr-x 24 root root 4096 Окт 15 2014 .. drwx------ 2 root root 4096 Июн 27 2014 .aptitude -rw------- 1 root root 1896 Окт 15 2014 .bash_history -rw-r--r-- 1 root root 10 Июн 27 2014 .bash_profile -rw-r--r-- 1 root root 630 Июн 27 2014 .bashrc -rw-r--r-- 1 root root 5268 Окт 13 2014 install -rw-r--r-- 1 root root 49 Сен 1 14:48 .l3rc drwxr-xr-x 2 root root 4096 Сен 4 10:01 .lilalo -rw-r--r-- 1 root root 140 Ноя 19 2007 .profile drwxr-xr-x 2 root root 4096 Июн 27 2014 .vim -rw------- 1 root root 5189 Окт 15 2014 .viminfo |
#ls -aF
./ ../ .aptitude/ .bash_history .bash_profile .bashrc install .l3rc .lilalo/ .profile .vim/ .viminfo |
#ls -a --color
. .. .aptitude .bash_history .bash_profile .bashrc install .l3rc .lilalo .profile .vim .viminfo |
#ls -l /dev/xvda
![]() xvda xvda1 |
#ls -l /dev/xvda
![]() xvda xvda1 |
#ls -l /dev/xvda
brw-rw---T 1 root disk 202, 0 Сен 1 14:49 /dev/xvda |
#ls -l /dev/xvda1
brw-rw---T 1 root disk 202, 1 Сен 1 14:49 /dev/xvda1 |
#ls -aF
./ ../ .aptitude/ .bash_history .bash_profile .bashrc install .l3rc .lilalo/ .profile .vim/ .viminfo |
#mkfifo /tmp/test
|
#ls -aF
./ ../ .aptitude/ .bash_history .bash_profile .bashrc install .l3rc .lilalo/ .profile .vim/ .viminfo |
#ls -a --color
. .. .aptitude .bash_history .bash_profile .bashrc install .l3rc .lilalo .profile .vim .viminfo |
#ls /tmp/test -a --color
/tmp/test |
#ls /tmp/ -a --color
. .. test |
#ls /dev/log -a --color
/dev/log |
#mkdir d1
|
#ls -F
d1/ install |
#ls color
![]() ls: невозможно получить доступ к color: Нет такого файла или каталога |
#ls --color
d1 install |
#mkdir d2
|
#mkdir d2/d3
|
#ping ftp.ua.debian.org
![]() ^C |
#ping ftp.ua.debian.org
![]() ping: unknown host ftp.ua.debian.org |
#vi /etc/resolv.conf
--- /tmp/l3-saved-3447.6311.5239 2017-09-04 12:10:27.341948791 +0300 +++ /etc/resolv.conf 2017-09-04 12:11:42.581931267 +0300 @@ -1,2 +1,2 @@ search net.nt -nameserver 192.168.13.253 +nameserveir 8.8.8.8 |
#ping ftp.ua.debian.org
![]() ping: unknown host ftp.ua.debian.org |
#ping ftp.ua.debian.org
![]() ping: unknown host ftp.ua.debian.org |
#tree
. ├── d1 ├── d2 │ └── d3 └── install 3 directories, 1 file |
#tree -help
tree: Invalid argument -`e'. usage: tree [-acdfghilnpqrstuvxACDFQNSUX] [-H baseHREF] [-T title ] [-L level [-R]] [-P pattern] [-I pattern] [-o filename] [--version] [--help] [--inodes] [--device] [--noreport] [--nolinks] [--dirsfirst] [--charset charset] [--filelimit[=]#] [--si] [--timefmt[=]<f>] [<directory list>] |
#tree --help
usage: tree [-acdfghilnpqrstuvxACDFQNSUX] [-H baseHREF] [-T title ] [-L level [-R]] [-P pattern] [-I pattern] [-o filename] [--version] [--help] [--inodes] [--device] [--noreport] [--nolinks] [--dirsfirst] [--charset charset] [--filelimit[=]#] [--si] [--timefmt[=]<f>] [<directory list>] ------- Listing options ------- -a All files are listed. -d List directories only. -l Follow symbolic links like directories. -f Print the full path prefix for each file. -x Stay on current filesystem only. ... -n Turn colorization off always (-C overrides). -C Turn colorization on always. ------- XML/HTML options ------- -X Prints out an XML representation of the tree. -H baseHREF Prints out HTML format with baseHREF as top directory. -T string Replace the default HTML title and H1 header with string. --nolinks Turn off hyperlinks in HTML output. ---- Miscellaneous options ---- --version Print version and exit. --help Print usage and this help message and exit. |
#touch d1/f1
|
#tree --help
usage: tree [-acdfghilnpqrstuvxACDFQNSUX] [-H baseHREF] [-T title ] [-L level [-R]] [-P pattern] [-I pattern] [-o filename] [--version] [--help] [--inodes] [--device] [--noreport] [--nolinks] [--dirsfirst] [--charset charset] [--filelimit[=]#] [--si] [--timefmt[=]<f>] [<directory list>] ------- Listing options ------- -a All files are listed. -d List directories only. -l Follow symbolic links like directories. -f Print the full path prefix for each file. -x Stay on current filesystem only. ... -n Turn colorization off always (-C overrides). -C Turn colorization on always. ------- XML/HTML options ------- -X Prints out an XML representation of the tree. -H baseHREF Prints out HTML format with baseHREF as top directory. -T string Replace the default HTML title and H1 header with string. --nolinks Turn off hyperlinks in HTML output. ---- Miscellaneous options ---- --version Print version and exit. --help Print usage and this help message and exit. |
#tree
. ├── d1 │ └── f1 ├── d2 │ └── d3 └── install 3 directories, 2 files |
#>d1/f2
|
#tree
. ├── d1 │ ├── f1 │ └── f2 ├── d2 │ └── d3 └── install 3 directories, 3 files |
#cp -v d1/f1 d2
«d1/f1» -> «d2/f1» |
#tree
. ├── d1 │ ├── f1 │ └── f2 ├── d2 │ ├── d3 │ └── f1 └── install 3 directories, 4 files |
#cd d2/
![]() d3/ f1 |
#cd d2/
![]() d3/ f1 |
#cd d2/d3/
|
#cp ../d1/f1
![]() cp: после «../d1/f1» пропущен операнд, задающий целевой файл Попробуйте «cp --help» для получения более подробного описания. |
#cp ../d1/f1 .
![]() cp: не удалось выполнить stat для «../d1/f1»: Нет такого файла или каталога |
#cp ../f1 .
|
#cp ../../d1/f2 .
|
#cd ~
|
#cd
|
#cp d2/d3 d1 -rv
«d2/d3» -> «d1/d3» «d2/d3/f1» -> «d1/d3/f1» «d2/d3/f2» -> «d1/d3/f2» |
#tree
. ├── d1 │ ├── d3 │ │ ├── f1 │ │ └── f2 │ ├── f1 │ └── f2 ├── d2 │ ├── d3 │ │ ├── f1 │ │ └── f2 │ └── f1 └── install 4 directories, 8 files |
#mv d2/f1 d2/f3
|
#tree
. ├── d1 │ ├── d3 │ │ ├── f1 │ │ └── f2 │ ├── f1 │ └── f2 ├── d2 │ ├── d3 │ │ ├── f1 │ │ └── f2 │ └── f3 └── install 4 directories, 8 files |
#mv d2/f{3,4}
|
#tree
. ├── d1 │ ├── d3 │ │ ├── f1 │ │ └── f2 │ ├── f1 │ └── f2 ├── d2 │ ├── d3 │ │ ├── f1 │ │ └── f2 │ └── f4 └── install 4 directories, 8 files |
#mv d2/f4 d1
|
#rm d1/f4
|
#rm d1/d3
![]() rm: невозможно удалить «d1/d3»: Это каталог |
#rm d1/d3 -r
|
#who > who.rxt
|
#cat who.rxt
root pts/0 2017-09-04 09:59 (192.168.16.123) ivan pts/2 2017-09-04 12:03 (192.168.16.123) |
#sehr who.rxt
![]() l3script: sehr: команда не найдена |
#shreed who.rxt
![]() l3script: shreed: команда не найдена |
#cat who.rxt
root pts/0 2017-09-04 09:59 (192.168.16.123) ivan pts/2 2017-09-04 12:03 (192.168.16.123) |
#shred who.rxt
|
#cat who.rxt
mÜ<âÛÌv£>ÌÄPÄ+j[WÐ+Çý²ÃÍÈt÷S]ó^²DÚ'eÁÕafXõ/p qÉrT±RUo½æ¢s¿¬¯ôsÄ<T÷G'R@Í1U¶.ü_§çmºgDEz~}rÑ^L [¤²q×Ò3,m@Ç8Ìߪ¨°> znáç.sz ¼êØ{ ÂÞ"k&ta´ù']~² />.Îo¯ófÌ@Ì}Ôsï!B§BQâ¦Õ@=Qñ>{¹¥"Q2qx»ê´¨&¨Pu,lr¬b47=ª?à7æ©&Ä»7µÜ(ÖÕ>5ÿw@k"=oÀùOgýmK~z ùòX`0ì4èUXHm:¿=}Û³ô©¨Ó¡I»7ëI~E æÚ]TXÅÝxÚ¨ø£æ94ÄK}EMGAûGv>j7ÑFÙZ$µâ.Þè·¸ÖÈ£óÀLåÛUa¦È6áWVþkÈÍaÚKàßLÉ1bÊ6uNªìü»`ÿÁ_ÙKÉ3F«L]#µv+7,LPØö¢´ÅOò1í~Ã~]*uO^êãÛKI³¾NÆÚéY[ðNÎ*ü¶t¬±jyóÜB¼#ÍØþäBëÞ}q W=ªh'*ï|È!þã1{³ ×>ãà §OA¬Ø÷~y±j6·Xy'b&IAHøÎ0ºüZH$AFSÁ£íÅ»S'[:[DtÆÑKõ©þ'Ñ)dn#ìÚ+oqB»agpuÕçäº:[L\=Ir-=CÈÄr0;Á¼yAû7m®ëÿ嵯®ä¯þê±µ|#E°3cð@x9¡Só¯x@®£Æ0ÕQHÇ[³BqçÌwÑ¥= ξÝ9:ã¤ÏqxTÂ.x\º}^0E/¹ÄÖ/;Ò^JÄzptU#Ç ~¤]êÁkf7gN³thÿ£QX>\¬Ïê« PuTTYøLG-ãvhÄékñ-¬ãÒÌû· `WH}3E ms@3û%¯Cñ$ár³hçðñü²tÎ×nWõ"¬QYлÿÖ¸+ZR½8âßËóãé"õz¯p7MkCÎR¥ ¸ö¾V!°,Më\û¯ûXk÷`bÊï5¶Ú¶®8Õ©²T-Q ²ï¥`|&³x8»Wã)I¼ExóÑèÙÕÞÞGLÊà ÞPK1¤XÚsMRÐù-Àx&. Y EÆFoÿEîµbòÅ¡û$ü¹¬i*½yeKïwÁH#o¼w !¹ÖUÉëd£ójLæ¼ÎhtÖ΢÷ML²¯òÅ.k!Íz4 påOùËi¬½pQrYkg Ô0Á{Ö«fÆgíÂgÓÓ®¨(ÞÜ¡{®!î¼Ù÷ ... ÕH,7 áaþa³@½&Ë6HjÑ\ô4¤ÿKÝkGsÎM£2jÉò5¼ª-+ÙÎ%óYrÀ¬t NÀ\y·ÎÔüX¾y=¼×Äëgw´èñwý>ëôÙÏ8IàõL¡y åÏ1Eðß·ÏæùÎ¥&½> ~jò0ª¯Ôs9ÄçîZi{èÍëeN×õ;x)HÙ;Êz'Î_/pî¼£z´§¡«à8Æ·ÂíZòoü1 ¦ïRUó®Ë2íé[}Ôqß`%u6L1åå@ÆÐCK Ö³%9 9 méE ûÍbPMɧzîJAF÷µ¾Îõ4®']R±ãÿzp¦ÌiBñknÞúL)(Ì»]-FýÚo¬Ê]M¶gúÓ¿kfûýQ®Å táã$Öu59 Æ?lZäÑÊFDT·¡¶¦ß1ËÛ=ÙÑOö"×0þúpá}0)Åù Ùôξ9ÉÏè8Ã%q16¸Cͺ>%'cn"r?°ÂùÇú ÿ:/eDÍLm ~4p,]Ï»Õ /Y PuTTYPuTTYû%ä>Áa#!½.òá;U}óWísñK/1`ÅNÓÖ»)Hò8< fgë@+¼a_$T>li²m^¯FÄÒÝ&Ï8ÀçMò¸'§÷Q+RÓhí"§¯/½y#ÄDK±ªÄÁ-ðÓÀÊíÔñgÐ%ûEóVòFwoÒlià}×Ǧ:76ý$þQÝ_©·-¼Rë¤OÚm4·P¡MâäAÄX·¼ÚGÈ.tÁ¾2huÁu´×I-hEICRYJÏÅBÔä1VÔz0wUÕßõ@Dèa.3ï¢e÷«}èú.uù3sªÝr§?#^NýµRÓð 22 Õf¯ë¼ÒÌÍ;ÍìüÿNÿPp8äȸa¡vb3½c»í |
#PuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTY
l3script: PuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTY: команда не найдена |
#PuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTY
![]() l3script: PuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTY: команда не найдена |
#PuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTY
![]() l3script: PuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTY: команда не найдена |
#tree
. ├── d1 │ ├── f1 │ └── f2 ├── d2 │ └── d3 │ ├── f1 │ └── f2 ├── install └── who.rxt 3 directories, 6 files |
#shered -u who.rxt
![]() l3script: shered: команда не найдена |
#shred -u who.rxt
|
#la -al
![]() l3script: la: команда не найдена |
#ls -al
итого 64 drwx------ 7 root root 4096 Сен 4 12:50 . drwxr-xr-x 24 root root 4096 Окт 15 2014 .. drwx------ 2 root root 4096 Июн 27 2014 .aptitude -rw------- 1 root root 1896 Окт 15 2014 .bash_history -rw-r--r-- 1 root root 10 Июн 27 2014 .bash_profile -rw-r--r-- 1 root root 630 Июн 27 2014 .bashrc drwxr-xr-x 2 root root 4096 Сен 4 12:36 d1 drwxr-xr-x 3 root root 4096 Сен 4 12:31 d2 -rw-r--r-- 1 root root 5268 Окт 13 2014 install -rw-r--r-- 1 root root 49 Сен 1 14:48 .l3rc drwxr-xr-x 2 root root 4096 Сен 4 12:51 .lilalo -rw-r--r-- 1 root root 140 Ноя 19 2007 .profile drwxr-xr-x 2 root root 4096 Июн 27 2014 .vim -rw------- 1 root root 5324 Сен 4 12:12 .viminfo |
#ls -alS
итого 64 -rw------- 1 root root 5324 Сен 4 12:12 .viminfo -rw-r--r-- 1 root root 5268 Окт 13 2014 install drwx------ 7 root root 4096 Сен 4 12:50 . drwxr-xr-x 24 root root 4096 Окт 15 2014 .. drwx------ 2 root root 4096 Июн 27 2014 .aptitude drwxr-xr-x 2 root root 4096 Сен 4 12:36 d1 drwxr-xr-x 3 root root 4096 Сен 4 12:31 d2 drwxr-xr-x 2 root root 4096 Сен 4 12:51 .lilalo drwxr-xr-x 2 root root 4096 Июн 27 2014 .vim -rw------- 1 root root 1896 Окт 15 2014 .bash_history -rw-r--r-- 1 root root 630 Июн 27 2014 .bashrc -rw-r--r-- 1 root root 140 Ноя 19 2007 .profile -rw-r--r-- 1 root root 49 Сен 1 14:48 .l3rc -rw-r--r-- 1 root root 10 Июн 27 2014 .bash_profile |
#ls -alSr
итого 64 -rw-r--r-- 1 root root 10 Июн 27 2014 .bash_profile -rw-r--r-- 1 root root 49 Сен 1 14:48 .l3rc -rw-r--r-- 1 root root 140 Ноя 19 2007 .profile -rw-r--r-- 1 root root 630 Июн 27 2014 .bashrc -rw------- 1 root root 1896 Окт 15 2014 .bash_history drwxr-xr-x 2 root root 4096 Июн 27 2014 .vim drwxr-xr-x 2 root root 4096 Сен 4 12:51 .lilalo drwxr-xr-x 3 root root 4096 Сен 4 12:31 d2 drwxr-xr-x 2 root root 4096 Сен 4 12:36 d1 drwx------ 2 root root 4096 Июн 27 2014 .aptitude drwxr-xr-x 24 root root 4096 Окт 15 2014 .. drwx------ 7 root root 4096 Сен 4 12:50 . -rw-r--r-- 1 root root 5268 Окт 13 2014 install -rw------- 1 root root 5324 Сен 4 12:12 .viminfo |
#ls -alSrh
итого 64K -rw-r--r-- 1 root root 10 Июн 27 2014 .bash_profile -rw-r--r-- 1 root root 49 Сен 1 14:48 .l3rc -rw-r--r-- 1 root root 140 Ноя 19 2007 .profile -rw-r--r-- 1 root root 630 Июн 27 2014 .bashrc -rw------- 1 root root 1,9K Окт 15 2014 .bash_history drwxr-xr-x 2 root root 4,0K Июн 27 2014 .vim drwxr-xr-x 2 root root 4,0K Сен 4 12:51 .lilalo drwxr-xr-x 3 root root 4,0K Сен 4 12:31 d2 drwxr-xr-x 2 root root 4,0K Сен 4 12:36 d1 drwx------ 2 root root 4,0K Июн 27 2014 .aptitude drwxr-xr-x 24 root root 4,0K Окт 15 2014 .. drwx------ 7 root root 4,0K Сен 4 12:50 . -rw-r--r-- 1 root root 5,2K Окт 13 2014 install -rw------- 1 root root 5,2K Сен 4 12:12 .viminfo |
#ls -al | sort -k5 -nr
-rw------- 1 root root 5324 Сен 4 12:12 .viminfo -rw-r--r-- 1 root root 5268 Окт 13 2014 install drwxr-xr-x 3 root root 4096 Сен 4 12:31 d2 drwxr-xr-x 2 root root 4096 Сен 4 12:52 .lilalo drwxr-xr-x 2 root root 4096 Сен 4 12:36 d1 drwxr-xr-x 2 root root 4096 Июн 27 2014 .vim drwxr-xr-x 24 root root 4096 Окт 15 2014 .. drwx------ 7 root root 4096 Сен 4 12:50 . drwx------ 2 root root 4096 Июн 27 2014 .aptitude -rw------- 1 root root 1896 Окт 15 2014 .bash_history -rw-r--r-- 1 root root 630 Июн 27 2014 .bashrc -rw-r--r-- 1 root root 140 Ноя 19 2007 .profile -rw-r--r-- 1 root root 49 Сен 1 14:48 .l3rc -rw-r--r-- 1 root root 10 Июн 27 2014 .bash_profile итого 64 |
#tree
. ├── d1 │ ├── f1 │ └── f2 ├── d2 │ └── d3 │ ├── f1 │ └── f2 └── install 3 directories, 5 files |
#ln -s ~/d1/f1 f1
|
|