BigBug

BASH Misc

Run a script after ssh login on the remote Linux box:
For a specific user, make sure that the rc file exist in the ~/.ssh/ folder.
If not:
touch ~/.ssh/rc

Edit the file:
nano ~/.ssh/rc

paste in erDetFredag.sh: (or what ever script you want)

If erDetFredag.sh should run for all users, edit: /etc/ssh/sshrc (not working?)

Disk usage for all drives
df -h --total | grep 'Filesystem\|^/dev'

~/.bashrc

change history behavior:
edit (or add) these lines in .bashrc
HISTSIZE=100000
HISTFILESIZE=200000
HISTTIMEFORMAT='%F %H:%M:%S '
HISTCONTROL=ignoredups:erasedups:ignoreboth

UFT-8 tak!
#UTF-8 tak!
export LANG=en_GB.UTF-8

dependency problems - leaving unconfigured

sudo dpkg --configure -a
sudo apt-get -f install