Linux

Gnome

  • Restart shell: Alt + F2 -> r

NFS mounts

NFS mounts can be tricky. After an NFS request times out, NFS request are retried indefinitely by default. This can lead to unexpected hangs on the client. (1)
Use the mount option soft to limit the number of retries to 3.

If an NFS share hangs, it can be unmounted as follows: Find the mount point using mount and then umount -f -l [mount point] (-f for force and -l for lazy unmount, i.e. detach now and cleanup references later) (2)

Ubuntu

  • Night light not working correctly: Try killall gsd-color (1)

Grep

  • Find files not containing a string: grep -L [string] [files] (e.g. grep -L foo *)

Disks

  • Remove filesystems on a disk: wipefs -a /dev/sd[x] (1)