Skip to content

Mac OS X Admin Tips

Forcing a Mac OS X update

Sometimes, Mac OS X just won't update. This just happened to me with Mac OS X Monterrey 12.0.1, where my Mac got stuck for at least three months.

To force an update to, say, Mac OS X Monterrey 12.3, open a terminal and download and launch the full installer:

softwareupdate --fecth-full-installer --full-installer-version 12.3

Copying with progress report

Copy source directory Source (note the lack of ending / to directory Destination

rsync -ahvz Source Destination
  • -a : archive mode, by using archive mode we can copy the files recursively and it preserves file permissions, user and group ownership’s.
  • -v : verbose
  • -h : human-readable
  • -z : in this mode it will compress the data

Caching keys store passphrase into keychain

Let's cache the keys store passphrase for a connection done from sour (mac) to dest (linux).

vim ~/.ssh/config
Add the following:
Host dest
    IgnoreUnknown UseKeychain
    UseKeychain yes
    AddKeysToAgent yes
    IdentityFile ~/.ssh/id_your_file