Skip to content

Instantly share code, notes, and snippets.

@wael34218
Last active December 16, 2021 16:22
Show Gist options
  • Save wael34218/505d2fb5a3acf0dc0ea808713b3eb573 to your computer and use it in GitHub Desktop.
Save wael34218/505d2fb5a3acf0dc0ea808713b3eb573 to your computer and use it in GitHub Desktop.
System Admin commands I usually use

Mounting new disks permanently

1- Check the disk you want to mount:

sudo blkid

Then you can mount it using

mount /dev/sda2 /path/to/mountpoint

And add it to fstab

vim /etc/fstab
UUID=60ffd85b-6ab0-4eea-b752-727dd4e68eca /path/to/mountpoint ext4  defaults        0       2

Find sizes of all folders in a directory

du -sh *
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment