Блог #unix

Чешская Швейцария и немного Дрездена. Паутина
Перу и Боливия. Зима-весна 2011. Дорога смерти, обрыв
Перу и Боливия. Зима-весна 2011. Солончак Уюни
Март 2017. Берлин — Роттердам — Дюссельдорф. Яблоко-глобус на стене дома в Берлине
Осень. %!s(<nil>)
Весна 2012. Германия — Франция — Италия. На побережье
Киев, лето 2009. Тут мы жили
Лавандовые поля. %!s(<nil>)
Исландия 2023. Водопад Сельфосс
Мальта, март 2014. Рыжий хозяин Мдины
Байкал, остров Ольхон, Хужир. Март 2018. Лёд
Новый год 2008 (Норвегия, Швеция, Дания). Норвегия, Нордсетер
Перу и Боливия. Зима-весна 2011. Куско, рынок
Корфу 2023.
Байкал, остров Ольхон, Хужир. Март 2018. Ольхон
Весна 2012. Германия — Франция — Италия. Город Эрки
Тайланд, Индонезия, Сингапур (зима 2010). В Сингапурском зоопарке. Попугай
Стамбул 2024. %!s(<nil>)
Мальта, март 2014. Я
Перу и Боливия. Зима-весна 2011. Дорога смерти, у пропасти
Март 2017. Берлин — Роттердам — Дюссельдорф. Дюссельдорф
Чешская Швейцария и немного Дрездена. Корни
Осень. %!s(<nil>)
Март 2017. Берлин — Роттердам — Дюссельдорф. Саморез
Тайланд, Индонезия, Сингапур (зима 2010). Собака
Тайланд, Индонезия, Сингапур (зима 2010). Боробудур
Берлин, Люббенау, Потсдам. Май 2018. Бюст в Потсдаме
Весна 2012. Германия — Франция — Италия. Джек Воробей
Байкал, остров Ольхон, Хужир. Март 2018. Восход на мысе Бурхан (ir)
Весна 2012. Германия — Франция — Италия. Лувр
Лето 2008 (Куба). Саньтяго де Куба

Шпаргалка по командам и хоткеям Unix

Стянуто отсюда: http://www.debian.org/doc/manuals/debian-reference/ch01.en.html

Хоткеи:

keydescription of key binding
Ctrl-Uстереть тест перед курсором (erase line before cursor)
Ctrl-Hстереть символ перед курсром (erase a character before cursor)
Ctrl-Dterminate input (exit shell if you are using shell)
Ctrl-Cterminate a running program
Ctrl-Ztemporarily stop program by moving it to the background job
Ctrl-Shalt output to screen
Ctrl-Qreactivate output to screen
Ctrl-Alt-Delreboot/halt the system, see inittab(5)
Left-Alt-key (optionally, Windows-key)meta-key for Emacs and the similar UI
Up-arrowstart command history search under bash
Ctrl-Rstart incremental command history search under bash
Tabcomplete input of the filename to the command line under bash
Ctrl-V Tabinput Tab without expansion to the command line under bash

Команды:

commanddescription
pwdвыводит текущую директорию (display name of current/working directory)
whoamiвыводит имя текущего юзера (display current user name)
idвыводит id текущего юзера (display current user identity (name, uid, gid, and associated groups))
file <foo>выводит тип файла, переданного в качестве аргумента (display a type of file for the file <foo>)
type -p <commandname>выводит расположение файла, вызывающегося при вводе команды (display a file location of command <commandname>)
type <commandname>выводит информацию о команде (display information on command <commandname>)
apropos <key-word>находит команды, связанные с переданным аргумеентом find commands related to <key-word>
whatis <commandname>display one line explanation on command <commandname>
man -a <commandname>display explanation on command <commandname> (Unix style)
info <commandname>display rather long explanation on command <commandname> (GNU style)
lslist contents of directory (non-dot files and directories)
ls -alist contents of directory (all files and directories)
ls -Alist contents of directory (almost all files and directories, i.e., skip .. and .)
ls -lalist all contents of directory with detail information
ls -lailist all contents of directory with inode number and detail information
ls -dlist all directories under the current directory
treedisplay file tree contents
lsof <foo>list open status of file <foo>
lsof -p <pid>list files opened by the process ID: <pid>
mkdir <foo>make a new directory <foo> in the current directory
rmdir <foo>remove a directory <foo> in the current directory
cd <foo>change directory to the directory <foo> in the current directory or in the directory listed in the variable $CDPATH
cd /change directory to the root directory
cdchange directory to the current user’s home directory
cd /<foo>change directory to the absolute path directory /<foo>
cd ..change directory to the parent directory
cd ~<foo>change directory to the home directory of the user <foo>
cd -change directory to the previous directory
</etc/motd pagerdisplay contents of /etc/motd using the default pager
touch <junkfile>create a empty file <junkfile>
cp <foo> <bar>copy a existing file <foo> to a new file <bar>
rm <junkfile>remove a file <junkfile>
mv <foo> <bar>rename an existing file <foo> to a new name <bar> (<bar> must not exist)
mv <foo> <bar>move an existing file <foo> to a new location <bar>/<foo> (the directory <bar> must exist)
mv <foo> <bar>/<baz>move an existing file <foo> to a new location with a new name <bar>/<baz> (the directory <bar> must exist but the directory <bar>/<baz> must not exist)
chmod 600 <foo>make an existing file <foo> to be non-readable and non-writable by the other people (non-executable for all)
chmod 644 <foo>make an existing file <foo> to be readable but non-writable by the other people (non-executable for all)
chmod 755 <foo>make an existing file <foo> to be readable but non-writable by the other people (executable for all)
find . -name <pattern>find matching filenames using shell <pattern> (slower)
locate -d . <pattern>find matching filenames using shell <pattern> (quicker using regularly generated database)
grep -e "<pattern>" *.htmlfind a “” in all files ending with .html in current directory and display them all
topdisplay process information using full screen, type q to quit
kill <1234>kill a process identified by the process ID: “<1234>”
gzip <foo>compress <foo> to create <foo>.gz using the Lempel-Ziv coding (LZ77)
gunzip <foo>.gzdecompress <foo>.gz to create <foo>
bzip2 <foo>compress <foo> to create <foo>.bz2 using the Burrows-Wheeler block sorting text compression algorithm, and Huffman coding (better compression than gzip)
bunzip2 <foo>.bz2decompress <foo>.bz2 to create <foo>
tar -xvf <foo>.tarextract files from <foo>.tar archive
tar -xvzf <foo>.tar.gzextract files from gzipped <foo>.tar.gz archive
tar -xvf -j <foo>.tar.bz2extract files from <foo>.tar.bz2 archive
tar -cvf <foo>.tar <bar>/archive contents of folder <bar>/ in <foo>.tar archive
tar -cvzf <foo>.tar.gz <bar>/archive contents of folder <bar>/ in compressed <foo>.tar.gz archive
tar -cvjf <foo>.tar.bz2 <bar>/archive contents of folder <bar>/ in <foo>.tar.bz2 archive
zcat README.gz > foocreate a file foo with the decompressed content of README.gz
zcat README.gz >> fooappend the decompressed content of README.gz to the end of the file foo (if it does not exist, create it first)