You can enter the relevant number of seconds or just the word "caffeine" to prevent your Mac from sleeping. defaults write AppleShowAllFiles YES Convert Text File to Speech. So with this command, your Mac won't sleep until 10 minutes (600 seconds). In this order, the number 600 refers to the seconds. Simply type the following command, hit Enter and walk away from your Mac.
If it is a temporary requirement, a simple command can make it happen.
You often download a huge file, and you don't want your Mac to sleep. Enjoy Top 15 Terminal Commands for Hidden Settings in Snow Leopard. defaults write ChimeOnAllHardware -bool true open /System/Library/CoreServices/PowerChime.app 10. In this roundup I’ve collected the best links about Terminal.app: you’ll find the best commands, hacks and tips to get the most out of it. Fortunately, I've found this helpful command that provides a beep when I plug in my MagSafe charger.įeed this command into Terminal and hit Enter. Have you ever connected a MagSafe charger to your Mac but forgot to press the power key? I lost count. Then you will see the file paths at the top of the Finder window. killall FinderĪfter pressing Enter, Finder will restart. Here is the command you need to type before pressing Enter: defaults write location ~/DownloadsĪfter pressing Enter, you need to stop Finder. Fortunately, you can change the save location for your snapshots instead of cluttering your desktop. Lots of command-line programs and utilities use this directory as a scratch. Now if you enable iCloud sync, and I'm sure you do, it will still upload to your account. Hidden Darwin files This book frequently mentions traditional Unix systems. Change the default screenshot save locationīy default, macOS Mojave stores screenshots on the Mac desktop. However, if you have more than one file with the same extension, it may cause your Mac to freeze slightly.
You can also use a wildcard (*.extension) in place of the full file name. That specified file opens with the pre-selected program. So to open the DOCX file in my Mac's Documents folder, I typed the command below and hit Enter: Open -a "Microsoft Word" ~/Documents/SoP_Prajith_New.docx
So, you need to write the command with some requirements - the respective file path: Then you can type the following command and press Enter. Let's say you want to open the Documents folder.