|
|
Вилењак — Маленький помощник Админа Коллекция скриптов и примеры конфигурации систем POSIX |
|
По состоянию на 2014-09-28 этот сайт будет медленно заполняться с выбором небольших сценариев, которые я написал за эти годы.
2014-10-06: Provided first test downloads with description stubs to try out different layouts
2014-10-10: Experimenting to find a good way to handle translations consistently.
ls used to turn on often used options if called as e.g. l, ll or la. Implemented as scripts because aliases will only work for interactive shells, but not for scripts or in combination with e.g. xargs or nice.
Time stamps will be shown in long ISO format (YYYY-MM-DD hh:mm:ss).
- l (short list) ⇒ ls -m
- Separate entries with commas
- ll (long list) ⇒ ls -lL
- Long list including access rights, file size and timestamp
- la (list all) ⇒ ls -la
- List all, including hidden files
- lsf (list with file type) ⇒ ls -F
- Append indicator for directories (/), links (@), ...
- lsr (list recursive) ⇒ ls -R
- Walk directories recursively
- lsx (list across) ⇒ ls -x
- List entries by lines instead of by columns
- ltr (list time reversed) ⇒ ls -lLtr
- List by (modification) timestamp, oldest first
- lsw (list to watch)
- Like ll but only show file size, time stamp and file name. Useful when monitoring downloads with watch -d lsw.
- fx
- find and execute
- ffx
- find file and execute
- fdx
- find directory and execute
- flx
- find link and execute
- lox
- locate and execute
- rlox
- locate relative to current directory and execute
/usr/bin/batch will read commands from standard input only. This small wrapper will accept command line arguments like nice or nohup do. It is also silent if successful. The usual 'executed with /bin/sh' warning and the job number will be suppressed.
/usr/bin/at will read commands from standard input only. Like batch above this wrapper accepts command line arguments and is also less verbose.
waitfor will wait until none of the named programs is running anymore.