random snippets

Moving the 5 oldest items from current folder to DIR2:

ls -Qrt | head -5 | xargs -i mv -v ./{} DIR2/

Setting screen resolution on MacOS (VMware) with VMware Tools installed:

sudo /Library/Application\ Support/VMware\ Tools/vmware-resolutionSet WIDTH HEIGHT

View IPMI information from ESXi Shell:

localcli hardware ipmi bmc get

Using exiftool, rename images with date/time filenames based on when they were taken/created:

exiftool -d '%Y-%m-%d %H.%M.%S%%-c.%%e' '-filename<CreateDate' .

Additionally, to update the creation timestamp of the file based on when the photo was taken/created:

exiftool "-filecreatedate<datetimeoriginal" .