Enhancing VIM
Shell Mistakes
Essential Vim
Unix Guru Universe
Bash History
Bash Reference Manual
PulseAudio + Wine
AD connection in RHEL6
Double tunnel:
ssh -L 7777:<IP of target machine>:22 -p <port to gateway machine> <account name on gateway machine>@<IP of gateway machine> -N
ssh -p 7777 <account name on remote machine>localhost -X
Last argument:
In bash, pressing Esc + . produces the last argument of the previous command.
Ignore case on tab completion:
echo "set completion-ignore-case on" > ~/.inputrc
Get the second last column with awk:
cat file | awk '{ print $(NF-1)}'
diff with a file on a remote host:
ssh {remote_host} cat {remote_file} | diff {local_file} -
Increasing entropy
Install rng-tools.
Edit the conf file (/etc/default/rng-tools in Debian) and set HRNGDEVICE=/dev/urandom.
Start the rng-tools service.