Shut down or restart Ubuntu from the terminal
I'm on a headless server over ssh and need to reboot it. What's the right command, and is there a difference between shutdown -r and reboot?
I'm on a headless server over ssh and need to reboot it. What's the right command, and is there a difference between shutdown -r and reboot?
Cleaning up some old project folders in Terminal on my Mac. rmdir refuses because there are files inside. What's the command to remove the folder and its contents, and can I get it to ask before each file?