The aliases are used to boost up or speed up the interaction with the Mac terminal commands. Through the alias Mac terminal commands set up, all we need to do is “showFiles” and “hideFiles” in order to hide and show the hidden files or folders on Mac respectively. The second command basically relaunches the Finder (in order to replicate the step to hold the “option\alt” key and then right-click the icon Finder in the clock). Killall Finder /System/Library/CoreServices/Finder.app The above-mentioned command to show or view hidden files and it ends with a “ ” semicolon so that we can further provide the second command:
bash_profile via Terminal:įurthermore, when you wish to show hidden files, type “showFiles” in Terminal and then type “hideFiles” when you wish to hide the files again. The below-mentioned screenshot is the reference to add aliases to.
In order to refresh the profile and makes the terminal aliases available.
TERMINALS FOR MAC INSTALL
After returning to Mac terminal command, copy and paste the following:Īlso Read : Best Mac Apps 2020- That Every Apple Newbie Should Install.After saving the file or folder, press ctrl+X in order to exit the file or folder and return to the Mac terminal command setup.After copy-paste, press ctrl+O and press return in order to save the file or folder.
“alias hideFiles=’defaults write AppleShowAllFiles NO killall Finder /System/Library/CoreServices/Finder.app’”
TERMINALS FOR MAC PASSWORD
If required, enter Mac’s admin password and hit return.“sudo nano ~/.bash_profile” in terminal copy and paste the following.Open Terminal found in Finder?Application?.Follow the below-mentioned step to create temporary and permanent aliases. You can make a temporary alias (only for the use of one terminal session) or permanent as well. You can setup Mac terminal commands in just one step and can avoid the above mentioned 4 steps: Multiple commands or shortcuts are termed as Terminal Aliases. Show or Hide Files using Terminal Aliases In order to hide the files again, you can follow the similar steps but you will need to replace the Terminal command as:ĭefaults write AppleShowAllFiles Noįor you, might be it feels like a long run or hard way to hide or unhide files on using terminal on Mac but if you will try this technique multiple times, I bet it is worth spending few minutes on these commands to save more time in the future. Hold the “option\alt” key to relaunch the finder by right-clicking on the Finder icon.Īfter relaunching, the Mac will show all the hidden files. After this, hold the “Option\alt” key and then right-click or tap on the Finder in the dock.“Defaults write AppleShowAllFiles Yes” in the terminal, paste the command.Open Terminal found in Finder?Applications? Utilities.