![]() When prompted, type in the username and password associated with your active admin account. Type in or paste the following line: sudo nano ~/.bash_profile Again, you will need to fiddle around with the Terminal. Albeit temporary, we can easily turn this into a more permanent solution. How to hide folders on your Mac by using Terminal AliasesĪliases are macros or shortcuts to various commands. If you look closely, you’ll see that the folder’s path has appeared. Drag-and-drop the folder onto the Terminal window. Fill it with stuff that you want to hide. Type in the following line: chflags hidden Double-click to enter the Utilities menu. From the left panel, select Applications. So, here’s how to hide files/folders using Terminal. Don’t worry it’s just a couple of command lines. There’s also a way to hide folders on Mac, but it involves using the Terminal. How to hide folders on Mac using Terminal Get yourself acquainted with the Terminal (Mac’s version of Windows’ command prompt) because, as it happens, it’s the only way to hide folders on Mac without resorting to third-party tools. It may not apply to Mojave or whatever else Mac OS you’re running, but at least you’ll get an idea of what you’re up against. If the above method doesn’t work, you can force unmount the drive.Because I really don’t want to rile up all you wonderful Mac users, I’ve decided to do a follow-up on the whole hiding your folders in plain view dilemma. The Terminal command to unmount an external drive is shown next: diskutil unmount $DriveID To remount the drive, you require to unplug the drive and plug it again.īut you can easily unmount and remount your external hard drive using the Terminal command without the need to reconnect the storage device. In GUI, you need to plug the external hard drive into your Mac to mount it automatically while drag and drop the drive icon to Trash to eject or unmount it. Unmount or Mount External Drive Using Terminal The correct DriveID is required to manage your external hard drive using Terminal. Please note down the external hard drive's identification a sample DriveID could be /dev/disk2. Alternatively, you can look for the external hard drive using the following command: ls /Volumes This command will return all the mounted or unmounted drives and their partitions. The command line to view the list of all your connected drives is as follows. The first thing you would like to do with your external drive is to view it using Terminal. The next sections describe commonly used Terminal commands and free Mac data recovery software to salvage your lost data. In that case, you can still recover your data using data recovery software. ![]() ![]() ![]() And suppose you didn’t back up your data and executed some unsafe commands that resulted in a data loss disaster. ![]() The backup ensures you can restore data in case of any data loss event. So, back up your Mac before using Terminal to avoid data loss due to the remove command's accidental use. But, Terminal won’t show any warning while executing any commands. The app will execute the requested command immediately. All you need to do is enter the required Terminal command, then hit Return. Terminal helps you manage your external hard drive far better than the GUI. ![]()
0 Comments
Leave a Reply. |