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 fix the problem of being unable to enter Terminal in Linuxnothing is perfect and sometimes, even terminal can stop responding or ignore what you type. if your terminal crashes and you can't enter it, here are some of the most common causes and solutions for them.
- Top 5 useful Terminal tips for Mac userseven if you've never delved into terminal before, there are a few tweaks that will make your mac better and boost your command line confidence.
- How to customize zsh prompt in macOS Terminalwhether you want zsh prompt to use a different color, show additional details, or adopt a minimalist look to make the most of space, macos lets you do it.
- Top 7 best Linux terminal emulatorsterminal is pre-installed in most linux distributions. however, you may not get as many customization options and advanced functionality with the default option.
- Windows Terminal is about to have a retro version with a 'classic' interface.windows terminal will receive a series of 'classic' retro-style crt effects.
- Windows Terminal can now automatically launch configurations as administratormicrosoft has officially released a new version of windows terminal 1.13, which comes with a long-awaited feature that allows automatic launch of profiles as an administrator.
- How to make Windows Terminal the default Terminal application and its benefitsyou can set windows terminal as your default terminal application whenever you launch command prompt or powershell.
- How to use Guake Terminal in Linuxfor many years, the terminal in linux remained unchanged. after all, there may not be much to fix or improve in a command prompt window. but guake proved this thinking wrong.
- 6 ways to fix Windows Terminal not opening errorwindows terminal is a pretty effective tool as it allows you to type in a variety of command line tools for both windows 10 and 11. this sounds good as long as you can open it.
- Integrated terminal in SQL Operations Studio (preview)in sql operations studio (preview), you can open an integrated terminal, starting from the root of the current workspace.