Mounting a RAM drive
$ mount -t tmpfs -o size=5G,nr_inodes=5k,mode=700 tmpfs /tmp
Visudo
sudo visudo
username ALL=(ALL) NOPASSWD:/sbin/restart whatever
Answer yes in a bash script
yes | /your/command
$ mount -t tmpfs -o size=5G,nr_inodes=5k,mode=700 tmpfs /tmp
sudo visudo
username ALL=(ALL) NOPASSWD:/sbin/restart whatever
yes | /your/command
Cheatsheets - W3cubDocs is a collection of cheatsheets. Suggestions and corrections? Send them in. The author Rico Sta. Cruz.