cal {{<month>} <year>} definition: 'Output a calendar.'

chown <user>:<group> <path> definition: 'Set ownership of a file or directory'
ety: ''
variants: '-R : recursive.'

date definition: 'Output current date and time.'

echo -e Enable echo's interpretation of special characters.

echo -n Stop echo from adding the newline to output.

find . List all files in current directory and its subdirectories.

sudo dpkg —install <filepath> definition: 'Install a Debian package.'
ety: ''
variants: ''

tail -f definition: 'Monitor a file.'
ety: ''
variants: ''

Unix time definition: 'The number of seconds that have elapsed since 00:00:00 UTC on January 1, 1970, not counting leap seconds.'

which <command> definition: 'Identify the location of an executable.'

Working Directory The directory in which one is currently doing work.

yes <text> definition: 'Output <text> and a newline repeatedly until stopped by the user or otherwise killed (e.g. broken pipe). Results in 100% processor usage.'
ety: ''
variants: ''

Facts, Thoughts and Opinions

Create file of random data

dd if=/dev/random of=<filename> bs=<blocksize> count=<count>

<blocksize> = 1024 for K, 10480576 for M
<count> = number of blocks

Deleting Unix files with strange names

Use ls -i to get the inode number of the file, then use find to remove the file with the inode number.

$ ls -i
435304 aa?b
$ find . -inum 435304 -delete

Lookup a word in a dictionary from the command line

function wrd() { curl dict://dict.org/lookup:$1 | more; }

Preserve and restore working directory in a shell script

CWD=`pwd` ... cd $CWD


  •   Subtopics

  •   Writings

  Sources & Bookmarks