Home / osx / Advanced / Obscure terminal commands

Obscure but useful

Obscure but useful when needed.

  1. #uuidgen --create a GUID
  2. #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.
  3. #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.
  4. #defaults write com.apple.finder AppleShowAllFiles TRUE/FALSE, then
  5. #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

Animated GIF eZ Logo

No need to dream up layouts and page views, just insert your "stuff".

Roll Your Own Social Network

News networks, and personal sized social networking sites are simple with eZ.