5 ### Mounting a RAM drive
7 $ mount -t tmpfs -o size=5G,nr_inodes=5k,mode=700 tmpfs /tmp
13 username ALL=(ALL) NOPASSWD:/sbin/restart whatever
15 ### Display the amount of available disk space
19 df -h # human-readable format
20 df -a # all filesystems
23 ### Display disk usage
27 du -hsx * | sort -rh | head -10 # largest 10 folders
30 ### Answer yes in a bash script