Importnat commands to know for mac

broken image
broken image

If you don’t specify what to prevent going to sleep it just assumes prevent idle.Īlso before ever running any command you’re unfamiliar with, you should always run

broken image

Or you can break it down to different things like -m to prevent only disk sleep or -d to prevent display sleep. This is useful if you’re downloading a torrent or something and don’t want it to sleep for x amount of time (in seconds is specified by the -t) Then I notice that I didn't mean to type it like I only wanted to delete just one folder, I'm out of luck because I told it to 'just do this don't ask me to confirm' and now I'm out of luck and have to reinstall. However, suppose I give myself root access right off the bat, I run 'sudo rm -rf /' and press the enter key. If I ran this command the way it is I would probably be asked like ten times to confirm that this is what I want to do with my admin password. Effectively this will destroy my operating system to where I can't use it anymore. What this will do is pretty much delete everything on my computer's drive, documents, music, operating system files, hard drive data, etc. It doesn't cause any changes or impact the system in any way so you don't need to use your 'admin privileges'(sudo) to do it.įor example, on the Mac I can open up terminal and type in the following command (do not do this) In this case it doesn't matter for the 'ls' command since all that command does it list the files in the current directory.