Obscure but useful
Obscure but useful when needed.
- #uuidgen --create a GUID
- #openssl rand -base64 9 --Generate a secure password - Change the 9 to 12 for more secure and longer password. May get an error message if not logged in as admin.
- #md5 <drop downloaded file into terminal window> = <checksum is displayed> - Compare the checksum value displayed, to the value on the download site, to assure download is unchanged.
- #defaults write com.apple.finder AppleShowAllFiles TRUE/FALSE, then
- #killall Finder Switch dot files display on or off systemwide.
Hide and Unhide files from CLI - nerdlogger.com tip
If you ever have a need to simply hide extraneous files and/or folder entries in Finder you can use the following command:
chflags hidden ~/Movies
This example will hide the "Movies" folder from showing up in Finder.
There is a easy way to get to the folder if you decide to later on, just go to Finder's "Go to Folder" menu option.
To reset this option you can use the following command:
chflags nohidden ~/Movies
If you want to check a file or folder for hidden files you can issue the following command:
ls -lO
That is lowercase l, uppercase O.
From nerdlogger.com
