Skip to content

Instantly share code, notes, and snippets.

View garily's full-sized avatar
:octocat:
🤯

Gary garily

:octocat:
🤯
  • Imblicrb Hitsaou
View GitHub Profile
@garily
garily / mongodb_macOS_first_install.md
Last active February 20, 2020 05:21
Installing mongoDB on macOS with Homebrew
# install mongodb-community using homebrew
$ brew tap mongodb/brew
$ brew install mongodb-community

# back up default config file
$ cp /usr/local/etc/mongod.conf{,.bak}

# to start the service at system startup
$ brew services start mongodb-community
@garily
garily / macOS(OS_X)_System_Utilities_and_Their_Corresponding_Command-Line_Management_Tools.md
Last active March 4, 2023 18:51
macOS(OS X) System Utilities and Their Corresponding Command Line Management Tools

Having used macOS/OS X for several years, I have come to realize that sometimes command line (cli) access for system preferences can be vital or life-saving when running into problems with macOS' system functionalities. Additionally, macOS also comes with a bunch of useful functionalities only accessible via command line (some of them require installation via xcode-select --install). Sadly, many of these exist without having been updated for years and their documentations have been moved to Apple's Document Archive website. It is really disappointing that Apple seems to be no longer advocating command line operations for users of Macintosh.

Anyway, the following is an incomplete quick index of corresponding cli commands I have discovered for managing several macOS configurations/services. Most of these commands reside under /usr/bin or /usr/local/bin.

References: man pages of corresponding commands from either a macOS distribution or [Ap