Skip to content

Instantly share code, notes, and snippets.

@valyakuttan
Last active July 30, 2017 06:00
Show Gist options
  • Save valyakuttan/f87844d3d28176cf1e12 to your computer and use it in GitHub Desktop.
Save valyakuttan/f87844d3d28176cf1e12 to your computer and use it in GitHub Desktop.
Infrequently used usefull linux (debian) commands
$ systemd-analyze # Analyze system boot-up performance

$ dmesg # display contents of kernel ring buffer

$ sudo dpkg -i /path/to/deb/file; sudo apt-get install -f
# install a .deb file with it's dependencies

$ dpkg -l | grep '^.i' # list installed packages

$ find . -type f -exec chmod -x {} \;
# remove execute permission from all files including
# files in sub directories

$ ifconfig # list available network interfaces

$ iwlist <wireless iterface> scan # list available wi-fi networks

$ cat .bash_history | sort | uniq
# list all history entries without duplicates

$ sudo apt-mark hold packages # prevent packages from being upgraded

$ dpkg --get-selections # shows packages with markers(install, etc..)

$ apt-get --reinstall install gdm3 gnome gnome-shell # reinstall Gnome
# testing main
deb http://httpredir.debian.org/debian/ testing main contrib non-free

# testing-updates
deb http://httpredir.debian.org/debian/ testing-updates main contrib non-free

# testing security
deb http://security.debian.org/ testing/updates main contrib non-free
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment