The brew command is a package manager designed for macOS and Linux operating systems. It provides a convenient way to install, update, and manage software packages and libraries on your system. Originally created for macOS, brew has gained popularity among Linux users as well, thanks to the availability of Linuxbrew, a version of brew specifically […]
Mac
brew –cask: CLI workflow for the administration of macOS applications distributed as binaries
The brew –cask command is a CLI (Command-Line Interface) workflow for the administration of macOS applications distributed as binaries. It is part of the Homebrew package manager, which is a popular tool for managing software packages on macOS. Prior to the introduction of the brew –cask command, there was a separate command called brew cask […]
brew bundle: Bundler for Homebrew, Homebrew Cask and the Mac App Store
The brew bundle command is a bundler for Homebrew, Homebrew Cask, and the Mac App Store. It is part of the Homebrew package manager, which is a popular tool for managing software packages on macOS. The brew bundle command allows you to define and manage a “bundle” file that specifies a list of dependencies and […]
homeshick: command not found
homeshick is a command line tool that allows you to synchronize your “dotfiles” (i.e. configuration files that are typically stored in your home directory and begin with a “.” like .bashrc) across multiple computers using Git. It’s a simple and powerful way to keep your personal configurations in version control and easily replicate them on […]
homeshick Command Examples in Mac
homeshick is a command line tool that allows you to synchronize your “dotfiles” (i.e. configuration files that are typically stored in your home directory and begin with a “.” like .bashrc) across multiple computers using Git. It’s a simple and powerful way to keep your personal configurations in version control and easily replicate them on […]
hdiutil Command Examples in Mac
hdiutil works with disk images, such as ISO or DMG files downloaded from the Internet. You can mount, unmount, create, resize, verify, and even burn images onto discs. To mount an ISO file mydisk.iso as a volume and access its contents, run: # hdiutil attach mydisk.iso # ls /Volumes MyDisk hdiutil Command Examples 1. Creating […]
Understanding Mac file timestamps
Each file has three timestamps associated with it (stored as the number of seconds since the Epoch, Jan 1, 1970). The three timestamps are: Access time (atime): The timestamp when the file was last accessed. Modification time (mtime): The timestamp when the file was last modified. Change time (-ctime): The timestamp when the metadata for […]
Mac Terminal diskutil Command Examples
The diskutil command operates on disk partitions: mounting and unmounting, getting information, renaming, erasing, and more. Read-only operations can be done by any user, but writing and mounting require an administrator. For example, if you have a portable USB drive mounted: $ df -h /Volumes/MyUSB Filesystem Size Used Avail Capacity Mounted on /dev/disk1s2 1.8Ti 813Mi […]
Mac Terminal vi[m] Editor Commands
A text editor is an application that enables you to view, create, or modify the contents of text files. Text editors were originally created to write programs in source code, but are now used to edit a wide variety of text-based files. Various types of text editors are compatible with Linux. However, text editors do […]
How to Install dmg File on Mac from Command Line
Installing software is the most common way to customize your Mac so that it can perform the tasks you need. When downloading and installing software from the Internet, make sure that you trust the source to avoid infecting your computer with malware by mistake. Many applications are distributed as disk images, a compressed binary format. […]