Linux small hints

things I have found usefull even life-saving when working with Linux

Blog Archives

Special filenames

By: admin |
October 14 2015 8:03

/dev/stdin = standard input = 0 (descriptor in redirections) = stdin = keyboard /dev/stdout = standard output = 1 = stdout = screen /dev/stderr = […]

Redirections

By: admin |
October 14 2015 8:00

Basic redirections: command > fileĀ  = send output of command to file and overwrite previous content of the file command >> file = append output […]

Command forms

By: admin |
October 14 2015 7:50

command & -> exectue command in backgroud command1; command2 -> command sequence – executes multiple commads on the same line (you can use this to […]

Escape sequences

By: admin |
October 14 2015 7:42

\b = backspace \n = new line \r = carriage return \t = tab \v = vertical tab \nnn = octal value (whole nnn) \xnn […]

Bash special files

By: admin |
October 14 2015 7:39

/etc/profile -> executed at login ~/.bash_login or ~/.profile -> at login ~/.bashrc -> similar as .profile, contains bash extensions

Arguments and built-in shell variables

By: admin |
October 14 2015 7:36

$0 = nabe of the script $# = number of command line arguments of the script $1, $2, … = arguments of the script $*, […]

Text file operations

By: admin |
October 8 2015 11:39

String operations

By: admin |
October 8 2015 11:37

FOR cycle

By: admin |
October 7 2015 15:50

Related commands: break – excape from loop continue – skip to new value – ignores commands below

IF tests

By: admin |
October 7 2015 15:34