Ромка!eu

  • Отдых
  • Работа
Главная — Блоги — Ромка's blog

Это старая (Drupal 6) версия сайта romka.eu. Она больше не обновляется, комментирование материалов отключено. Обновленная версия сайта доступна по адресу http://romka.eu.

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

Ромка — Ср, 02/03/2010 - 14:08

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

Хоткеи:



key description of key binding
Ctrl-U стереть тест перед курсором
erase line before cursor
Ctrl-H стереть символ перед курсром
erase a character before cursor
Ctrl-D terminate input (exit shell if you are using shell)
Ctrl-C terminate a running program
Ctrl-Z temporarily stop program by moving it to the background job
Ctrl-S halt output to screen
Ctrl-Q reactivate output to screen
Ctrl-Alt-Del reboot/halt the system, see inittab(5)
Left-Alt-key (optionally, Windows-key) meta-key for Emacs and the similar UI
Up-arrow start command history search under bash
Ctrl-R start incremental command history search under bash
Tab complete input of the filename to the command line under bash
Ctrl-V
Tab
input Tab without expansion to the command line under bash

Команды:

command description
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>"
which <commandname> , ,
type <commandname> выводит информацию о команде
display information on command "<commandname>"
apropos <key-word> находит команды, связанные с переданным аргумеентом
find commands related to "<key-word>"
man -k <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)
ls list contents of directory (non-dot files and directories)
ls -a list contents of directory (all files and directories)
ls -A list contents of directory (almost all files and directories, i.e., skip ".." and ".")
ls -la list all contents of directory with detail information
ls -lai list all contents of directory with inode number and detail information
ls -d list all directories under the current directory
tree display 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
cd change 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 pager display 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>" *.html find a "<pattern>" in all files ending with ".html" in current directory and display them all
top display process information using full screen, type "q" to quit

ps aux | pager

display information on all the running processes using BSD style output
ps -ef | pager display information on all the running processes using Unix system-V style output
ps aux | grep -e "[e]xim4*" display all processes running "exim" and "exim4"
ps axf | pager display information on all the running processes with ASCII art output
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>.gz decompress "<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>.bz2 decompress "<foo>.bz2" to create "<foo>"
tar -xvf <foo>.tar extract files from "<foo>.tar" archive
tar -xvzf <foo>.tar.gz extract files from gzipped "<foo>.tar.gz" archive
tar -xvf -j <foo>.tar.bz2 extract 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 | pager display contents of compressed "README.gz" using the default pager
zcat README.gz > foo create a file "foo" with the decompressed content of "README.gz"
zcat README.gz >> foo append the decompressed content of "README.gz" to the end of the file "foo" (if it does not exist, create it first)
  • unix
  • Ромка's blog

Полезный набор быстрых

Клим (не проверено) → Сб, 10/22/2011 - 22:15

Полезный набор быстрых клавиш. По моему, некоторые из них в suse не работают, в третьем гноме.

Обо мне

Всем привет!
Меня зовут
Роман Архаров, я профессиональный веб-разработчик, программирую на языках PHP, Python и Action-Script, в работе использую фреймворки Drupal и Django. В этом блоге я размещаю заметки и статьи, связанные с моей работой, отдыхом и другими интересными мне темами.

Популярные заметки

  • Авторизация на Drupal-сайте с помощью аккаунта ВКонтакте
  • Перетаскивание строк таблицы. Table drag and drop — плагин для jQuery
  • Темизация Drupal. Часть 3. Основы Drupal Forms API и темизация форм
  • Темизация Drupal. Часть 4. Темизация Views
  • AJAX. Обмен данными между клиентом и сервером, закачка на сервер файлов без перезагрузки страницы при помощи библиотеки jQuery.
  • Кеширование на Drupal-сайте. Сравнение встроенного в Drupal кеша, статического файлового кеша (модуль Boost) и Varnish
  • Тестирование модуля "Inner poll"
  • Несколько панорам из путешествия по Перу и Боливии
  • Arduino + bluetooth, небольшая проблема
  • Пример разработки плагина для модуля CCK

Подписка


Последние комментарии

  • drupal-admin → Кеширование на Drupal-сайте. Сравнение эффективности встроенного в Drupal кеша, статического файлового кеша (модуль Boost) и Var → Отличная статья
  • Меховщиков Руслана → Проверка имени пользователя на наличие букв из разных алфавитов → Re: Читал про это уже на
  • Вероника → Куба. Лето 2008. Часть 3 → По поводу "приветливых жителей" Тринидада
  • Sfero → Статья в PC Magazine/RE. Drupal: разработка модуля → Немного о контенте
  • RemaGe → Статья в PC Magazine/RE. Drupal: разработка модуля → -)
  • Ромка → Статья в PC Magazine/RE. Drupal: разработка модуля → Да, будет сборка, та которую
  • RemaGe → Статья в PC Magazine/RE. Drupal: разработка модуля → -)
  • anatinge → Поездка в Киев → спасибо :)
  • Ромка → Поездка в Киев → Да, в общем-то, ничего
  • GogA → Поездка в Киев → Заинтриговал, что там за

Новые заметки

  • Кеширование на Drupal-сайте. Сравнение встроенного в Drupal кеша, статического файлового кеша (модуль Boost) и Varnish
  • Любопытное поведение модуля syslog в шестом Друпале (баг?)
  • Arduino + bluetooth, небольшая проблема
  • Гугл 1 марта прекратил поддержку сервиса Google Friend Connect
  • Проба пера в HTML5 + canvas. Эффект ластика
  • Шесть рукопожатий
  • Доклад на DrupalConfMoscow 2011
  • Статусы разных сущностей в Друпале 6
  • Футер, прибитый к низу страницы
  • Путешествие по Перу и Боливии. Часть 2

Тэги

Drupal jquery Куба Лето 2007 Лето 2008 Отдых Работа Штуки-дрюки лето модуль статья цитата
еще тэги

Навигация

  • Exchange rate
  • Переход по внешней ссылке
  • Последние сообщения
  • Фотогалереи

Курсы валют

  • 100 Казахстанских тенге — 21,3687 (-0.43)
  • 10 Украинских гривен — 27,2852 (-13.04)
  • 1 Китайский юань — 10,2706 (-40.98)
  • 100 Японских иен — 53,5332 (+12.67)
  • 1 Доллар США — 65,6210 (+33)
  • 1 Евро — 69,8076 (+29.42)
  • 10000 Белорусских рублей — 36,3310 (-2.51)
  • 1 Турецкая лира — 22,9540 (+4.99)

10 случайных заметок

  • Лето 2007. Путешествие в Камбоджу – Таиланд – Малайзию. Часть 4. Камбоджа, СеамРип и Ангор Ват, лето
  • Лето 2007. Путешествие в Камбоджу – Таиланд – Малайзию. Часть 3. Камбоджа, Пномпень.
  • Лето 2007. Путешествие в Камбоджу – Таиланд – Малайзию. Часть 5. Острова Самуй и Панган, лето
  • Google Developer Day 2009
  • mini.romka.eu — версия этого сайта для КПК
  • Лето 2007. Путешествие в Камбоджу – Таиланд – Малайзию. Часть 2. Камбоджа, Сиануквилль.
  • Перетаскивание строк таблицы. Table drag and drop — плагин для jQuery
  • Куба. Лето 2008. Часть 4
  • Цитата
  • Лето 2007. Путешествие в Камбоджу – Таиланд – Малайзию. Часть 6. Куала-Лумпур.

Случайные фото

Парашютист в Варадеро
В Сингапурском зоопарке. Леопардовая (бенгальская) кошка.
Осло, Карл Юхан Гате
Норвегия, Нордсетер
Копенгаген, Кристиания, Граффити 3
Я с каким-то дядькой читаю газету
Градиент
Я и кокос... Где то я это уже видел...
Крым
А это уже полуостров Крым, на пути в Керчь.
Фонарь
Горы
Вид на Осло из замка Акерхус
Дерево в Прамбанане
Оденсе
Дорога, на поверхности видны следы копыт
  • Отдых
  • Работа

При использовании материалов с сайта, пожалуйста, ставьте ссылку на источник. E-mail для связи: mne@romka.eu.