Skip to main content

MAKING A FILE/FOLDER INVISIBLE

How to hide a file/folder using Terminal

This is one of the greatest technique that I ever came across, I had to share my Mac in office and was curious about hiding confidential data. This was when I started exploring and finally came up with this solution.
These commands are to be typed in Terminal.
To make a file or folder invisible in Mac OS X Finder
setfile -a V testfile.txt
Here is goes, the file or folder is no longer visible via the Finder GUI, though it will be by Terminal. Your files are still there and you can find them via the command line and will show with an ls command. If you want your files and folders to be visible again, use this command:
To make a file or folder visible again in Mac OS X Finder
setfile -a v testfile.txt

Now the file/folder will be visible again to the Finder, cool isn't it?
Please Note: setfile is a command line utility included in Apple’s Developer Tools, which is a highly recommended optional install included on any Mac OS X install/restore CD/DVD. This is also available as a Xcode download from Apple’s Developer center.
More links & video about hiding.

Comments

Anonymous said…
Hmmm... great one. I know one anothr way, i read it in one of ur old post, Y dnt u compile both of them?
AL Humam said…
Gud idea buddy, would be doing in the main website http://macmasters.net

Thank you.
Anonymous said…
Well intended I think, but useless for simpleuser folks like me who open Terminal once every two years and who need step-by-step instructions. Because the part about how to install setfile - wtf is a
command line utility? - is only comprehensible to a developer. Guess I'll keep looking.....
girl games said…
Hello, nice post :)

Popular posts from this blog

MAC THEME FOR YOUR PC

How to give a trendy "Mac look" to your PC Have you ever imagined of giving a Mac OS X look to your PC? I am not talking about installing the Mac OS X on your machine, but this is just a theme and which will turn your PC into Mac and I can guarantee a non Mac user cannot identify which operating system are you working on. FlyakiteOSX is a transformation pack. It will transform the look of an ordinary Windows XP system to resemble the look of Mac OS X. The installer simply automates the process of replacing critical system files, setting registry tweaks, and installing extras such as cursors, sounds, visual styles, etc. Even the start up icon will be changed to grey Apple startup logo. Login screen will also look exactly as of Mac OS X. The startup tune will no longer be traditional Microsoft tune, it will be changed into Mac startup chime. Also the error tone, clicks, cursors, buttons & selectors on the browsers and all other applications will give a Mac look. Not j

Welcome the new macOS - Mojave

Apple has released 3rd Beta verion of their macOS Mojave, so we thought to give it a try. What we found is that the product is really promising. They have improved many things that we never realized is actually a need.  Instead of writing what we loved, we prefered to collect posts that include all new features. If anyone needs Mojave Beta release, please send an email to:  Laeeq.Humam@hcl.com , we would be glad to share it.    List of new features: https://gizmodo.com/all-the-new-features-coming-in-macos-10-14-mojave-upda-1826531489 https://appleinsider.com/articles/18/06/09/90-new-changes-features-in-macos-mojave https://fieldguide.gizmodo.com/10-useful-new-features-hidden-in-the-macos-mojave-beta-1826603113

BREAKING THE CHAIN

Fixing Keychain issues What is Keychain & how it works? The Keychain consolidates various p asswords and passphrases in one place and makes them accessible through a master password or passphrase . When an application (including the Finder ) needs to access a pass word stored in the Keychain , the application asks you to unlock the Keychain if it is not already open. However there are certain settings in Keychain application which, wh en done, system will not prompt you for password & l og you in straight away. Keychain Access & Keychain Minder These are two contributors to Keychain , of which Keychain Access being the main controlling system and Keychain Minder is used just to change the Keychain master password, specially in the case when you don't remember the old one. Changing the password with Keychain Access Go to Applications (Command+Shift+A) and Open Utilities. Locate Keychain Access & open it. Click on Edit and select Change Password for