How to Customize Your Mac Using the Terminal
Part 1 of 2:
Opening the Terminal
- Click Spotlight
- Type in terminal and press ⏎ Return. This searches for and opens a new Terminal window. You can also open Terminal using the Finder:
- Click Finder.
- Click Applications.
- Click Utilities.
- Double-click Terminal.
Part 2 of 2:
Using Terminal Commands
- Add a message to your login screen. You can add a message to your login screen by typing:
sudo defaults write /Library/Preferences/com.apple.loginwindow LoginwindowText "If this laptop is lost, please call 555-555-5555. Cash reward."
- Then press ⏎ Return. Replace the message in the quotation marks with a message of your own. This will display this text in your login screen at startup.
- Add blank spaces to your dock. You can add blank spaces to the application dock by typing:
defaults write com.apple.dock persistent-apps -array-add '{"tile-type"="spacer-tile";}' killall Dock
- Press ⏎ Return. This will add a blank space to the dock each time you enter this command. You can click and drag the space to move it around in the dock, creating a divider for organization.
- If you're prompted to enter your password, type your password and press ⏎ Return.
- To delete a blank space from the dock, simply drag the space out of the dock until it says "Remove" then let it go.[1]
- Prevent your Mac from going to sleep. To prevent your Mac from going to sleep, simply type:
caffeinate
- Press ⏎ Return. This will keep the Mac from going to sleep or logging you out from inactivity.
- To allow the Mac to sleep again, press Control+C into Terminal to end the "caffeinate" task.
- Hide a Folder. If you created a folder on your desktop called "HiddenFolder", and your Mac username was "Steve", you could hide that folder by typing:
chflags hidden "/Users/Steve/Desktop/HiddenFolder"
- Then press ⏎ Return. Replace "Steve" with your own username and replace "HiddenFolder" with your folder's name.
- You can also just type chflags hidden then drag and drop your folder directly into the Terminal window, then press ⏎ Return.
- On the Desktop or in any Finder window, you can toggle between showing and not-showing hidden files by pressing ⌘ Command+⇧ Shift+..
- Unhide a folder. To unhide the same folder in the previous step, you would type:
chflags nohidden "/Users/Steve/Desktop/HiddenFolder"
- Press ⏎ Return. This will make the folder a normal folder that is always shown.
- Change the location of your screenshots. By default, screenshots are saved directly on the Desktop. So if you wanted the screenshots to be saved in a folder on the Desktop called "Screenshots" you would type:
defaults write com.apple.screencapture location "/Users/Steve/Desktop/Screenshots" killall SystemUIServer
- Then press ⏎ Return. Replace "Steve" with your own username and replace "Screenshots" with the folder name you created.
- You'll need to create the folder first for this will work properly , otherwise the screenshots will end up on the desktop by default.
- Add a recent or favorite items stack to the dock. You can add a recent or favorite items stack that you can customize in your dock by typing:
defaults write com.apple.dock persistent-others -array-add '{ "tile-data" = { "list-type" = 1; }; "tile-type" = "recents-tile"; }'; killall Dock
- Press ⏎ Return. The new stack will appear next to the trash can. You can then right-click (Control+click) to change the stack to be recent applications, documents, servers, or even favorite volumes or items.
- To remove the stack from the dock, right-click (Control+click) and select "Remove from Dock".
- Disable the Dashboard completely. If you don't use the dashboard on your Mac and don't want it to use of any system resources, you can turn it off entirely by typing:
defaults write com.apple.dashboard mcx-disabled -boolean yes; killall Dock
- Press ⏎ Return.
- To re-enable the Dashboard, you can repeat the same command but change the "yes" to "no".
5 ★ | 1 Vote
You should read it
- How to Change the Dock Size on a Macintosh Computer
- How to Add and Remove a Program Icon From the Dock of a Mac Computer
- Application to create the best dock for Windows 7, 8 / 8.1 and Windows 10
- How to customize the Ubuntu dock to look like macOS
- Instructions to enable hidden features for dock on Mac OS
- How to take a screenshot of only the Dock on a Mac
- How to round the dock bar on iPhone
- The best 5 dock for Linux
May be interested
- How to Choose a Paint Program for Your Macone of the key demographics for apple's macintosh line of computers is the artist. its intuitive interface is part of the reason, as is the early adoption by adobe and other artist-oriented companies. macpaint was included with the very...
- How to Take a Screenshot on a Mac Using Grabmac users can capture and save screenshots with the built in grab app. with this free utility, you may capture your entire computer screen, a single window, or a selection of the screen. in addition to capturing and preserving content,...
- How to Create Folders in Macthis wikihow teaches you how to create new folders on a mac laptop or desktop computer. this works for all currently supported versions of mac os. right-click in an empty space on the desktop. this will open a menu.
- How to Close All Open Windows of an App in Mac OSthis wikihow teaches you how to close all the windows in an app without quitting the app, using mac os. open multiple windows in an app. you can open and close multiple windows in most apps, including all internet browsers, text editors,...
- How to Use Emoji on Facebook on a PC or Macthis wikihow teaches you how to add emoji to a new facebook post/status message when you're using a computer. go to https://www.facebook.com in a web browser. if you haven't already signed in, enter your account information into the blanks...
- How to Record a Zoom Meeting on PC or Macthis wikihow teaches you how to record a zoom meeting using the zoom desktop client on a windows or mac computer. the zoom client easily allows you to start a meeting, record a meeting, and share your computer screen with the other meeting...