tlp
: power managementtlp-stat -b
: see supported battery featurestlp setcharge
: charge the battery to the specified amount
useradd -m <username>
: create a new user and their home directorygpasswd -a <user> <group>
: add a user to a groupchsh -l
list available shellschsh -s <bin>
change default shell for current user
su -l <user>
: log in as <user>
r=4
w=2
x=1
df -h
: show disk usage in human-readable formatdu -hs <file>
: show disk usage of a file or folder
sh -c "echo hello\!"
: start a shell to execute a command.[ -z ${var+x} ] && echo "var unset"
: check if a variable is set using parameter expansion
gpg --edit-key <user id>
: key maintenance, including revoking and extending
git update-index --skip-worktree <file>
to ignore changes to the specified file
Ctrl+w <direction>
: Switch to window paneCtrl+w s
: Split current window horizontallyCtrl+w v
: Split current window verticallyCtrl+w Shift+T
: Move split window to tabgt/gT
: Navigate tabsCtrl+v Shift+I
Multi cursor insert
.editorconfig
: for consistent coding styles. See https://editorconfig.org/
paccache -rk1
: clean the pacman cache leaving only the most recently installed versionpaccache -ruk0
: remove all uninstalled versions- The
paccache
script is provided bypacman-controb
TODO
TODO
TODO