![]() ![]() Then, to ensure that the changes are applied, restart the Finder by typing: If you need to access one for some reason-or if you want to hide some secret files of your own-run the following command in the Finder to see hidden files:ĭefaults write AppleShowAllFiles -bool TRUE They’re secret because the machine needs them, but you don’t. Most people shouldn’t need to access or edit any secret files in general. At that point, the normal energy-saving recommendations will restart. The -u flag tells the machine to behave as if the user is present (so the monitor doesn’t go to sleep), while the -t flag sets a timer for 3,600 seconds in this situation (or one hour). You may simply use the “caffeinate” command to set an anti-sleep timer in this case: On the other hand, you may want to use your Mac’s automatic energy-saving features to prevent it from going to sleep. Which terminates the shutdown process that is currently running in the background? Simply run: to cancel your timer before it expires. If you want, you can use a particular date and time in the format yymmddhhmm. The command above tells the machine to shut down after 60 minutes, or one hour, but you can change the number to whatever you want. Finally, the +60 reflects our minute timer.If you want to restart the machine, replace this with -r, or if you want to put it to sleep, use -s. The -h flag indicates that it should halt or shut down.The main command we’re sending to the system is shutdown.Don’t worry, your keystrokes are being sent. You’ll need to enter your password, but asterisks will not appear as you type. The command sudo tells the Terminal to run as a superuser or administrator.Here’s a breakdown of what the order does: ![]() To set a shutdown timer, open a Terminal window and type: I occasionally want to leave my machine on for an hour or two as a job completes (such as a huge download) and then turn it off when it’s done. Since the Terminal app is located in Applications > Utilities, you can access it at any time by pressing Command+Space to open Spotlight, searching for “Terminal,” and pressing Enter. These aren’t just for developers and hackers even if you’ve never used the Terminal tricks before, there are a few tweaks that will improve your Mac and increase your command-line trust. UNDERNEATH THE SURFACE YOUR Mac’s pretty GUI is based on UNIX, a decades-old operating system, and you can use its old-school Terminal to execute basic commands that aren’t available via the software or menus. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |