Skip to content

Instantly share code, notes, and snippets.

@yashodhank
Last active August 29, 2015 14:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yashodhank/1b8b22625c527b59c18b to your computer and use it in GitHub Desktop.
Save yashodhank/1b8b22625c527b59c18b to your computer and use it in GitHub Desktop.
Various linux commands I've found helpful at one time or another
# My preferred ls outputs
ls -Alh --group-directories-first
# Find and remove multiple files with same extension (careful!)
find . -type f -name "*.txt" -exec rm -f {} \;
# You can first view your current default audio device by typing:
pactl stat
# To check the current swappiness value:
$ cat /proc/sys/vm/swappiness
# To set the swappiness value permanently, edit a sysctl configuration file
/etc/sysctl.d/99-sysctl.conf
vm.swappiness=10
# WPA
/run/wpa_supplicant/wlp2s0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment