Linux

A selection of programs i like to use on Linux systems

  • nethogs is a network monitor that groups traffic by process
  • ncdu is a ncurses-based alternative to du (disk usage)

Users and Groups

// Add user geek to group sudo
usermod -a -G sudo geek

Mounting a Sambashare with cifs

//hal9000.home/audio /mnt/hal/audio cifs username=myuser,password=mypassword,defaults 0 0

Screen

# start new session
screen

# list all running sessions
screen -ls

# (r)eattach to a session
screen -r session

# (R)eattach to last session
screen -R

(d)etach from running session

CTRL+a d

show help

CTRL+a ?

Yay

Cleaning yay package cache, only aur packages

yay -Sc --aur

Increase Inotify watchers

See: https://github.com/guard/listen/wiki/Increasing-the-amount-of-inotify-watchers

echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p

Setup SSH

See: https://wiki.archlinux.org/index.php/SSH_keys#Ed25519

ssh-keygen -o -a 100 -t ed25519 -f ~/.ssh/id_ed25519 -C "johnnie@posteo.de"

More

Links from this note (1)
Links to this note (1)