Many times, different users tend to be interested in seeing the hidden files that are inside their USB or their computer, with the purpose of investigating or manipulating them at their convenience.
This also happens in operating systems like Mac OS. Which hide files to avoid overloading content within a window or desktop, or to protect files from any situation.
What users do not know is that, in addition to aesthetic purposes, the main reason why this type of document prevails as hidden, is because its changes can significantly affect the computer .
In other words, the reason why the system sets these files as hidden is in order to prevent the person from accidentally deleting or changing them. This could cause irreparable damage to the computer software.
Therefore, we do not recommend making these types of changes to your computer. However, if you are still interested in learning how to configure its visibility, continue reading this article.
Show hidden files through a context menu on Mac
Apple, like any other operating system, has tricks that allow you to modify these settings in case a user needs it. The command window is the ideal tool to achieve this. It should be noted that to show hidden files in Windows , the process is different.
To avoid constantly writing codes, there is the possibility of creating a menu, which allows people to activate or deactivate the visibility option through a simple click .
Create a script with Shell
The purpose of this script will be to evaluate the settings that the person keeps on their computer by default. In order to know what option it can offer you once you are inside the menu.
In other words, its function is to discover if hidden files need to be shown , based on the computer’s configuration. If this is the case, execute a command to change this setting in favor of the user’s desire. The command string is as follows:
- “STATUS =` defaults read com.apple.finder AppleShowAllFiles`
- if [$ STATUS == 1] then defaults write com.apple.finder AppleShowAllFiles –boolean FALSE
- else defaults write com.apple.finder AppleShowAllFiles –boolean TRUE
- if killall Finder “
Create a context menu with Automator
Through the “Applications” folder, enter the Automator program to choose the “Service” template. Then access the following configuration window.
Once inside the “Library”, select the “Actions” option before clicking on “Utilities”. This will display a small list of possible jobs to run through creation. Among them you must choose “Run Shell Script”.
The Automator window has top tabs. In whose services you must determine that the function will fulfill the order to show the files that are hidden each time “Finder” is used.
Finally, the command must be rewritten or copied within ” Execute Shell Script “, so that the program interprets the command and executes it. Once finished, “Finder” will restart and will have a new menu to handle these settings.
Start showing hidden files from your Mac through ‘Terminal’
Although many users dislike having to constantly type commands to change file display settings, this process is much easier and faster than the previous one.
The encoding is similar to that shown above. Unlike that it lacks certain terminology, since its function is more direct.
Therefore, once the “Terminal” application is open, write “ defaults write com.apple.Finder AppleShowAllFiles –bool YES ”. Which determines the action of showing hidden files found within the system.
After pressing the “Enter” key, the closing or restarting of “Finder” will be indicated so that the changes established in the encoding are applied. To do this, just type “killall Finder” after having pressed “Enter” and that’s it.
Finally, it is demonstrated how simple it is to modify the system configurations. To ensure that users’ wishes are met when they need it most.
However, it is necessary to remember that it is not recommended to display these types of files. In this case, handle each one of them with extreme caution , to avoid irreparable damage to the computer. So it is always advisable to hide your hidden files and folders .