Make an Alias in Bash or Zsh Shell in macOS with Terminal
To make aliases of macOS Unix commands in your bash or zsh shell on macOS and earlier versions, it is done via your .bash_profile or .zshrc file which lives in your home account directory, if the file does not already exist, just create one. As of macOS 10.6 Catalina and its successor Big Sur, Apple…
Read MoreHow to Add to the Shell Path in macOS Big Sur and Catalina using Terminal
The shell path for a user in macOS is a set of paths in the filing system whereby the user has permissions to use certain applications, commands and programs without the need to specify the full path to that command or program in the Terminal. So instead of running something like this, with a path to…
Read MoreSearch for multiple IP addresses in webserver log
To search for an IP address in a server log, grep is a tool to do it. To search for a single IP address, you need to know where the log file is then either navigate to it or use an absolute path, if you are already in the correct directory use grep like so……
Read MoreInstall and set up wp-cli WordPress on shared and local hosting
WordPress has a command line tool called wp-cli which operates similar to what Drush does for Drupal, it runs on OSX/Linux operating systems with a minimum of PHP 5.3.2 or later and WordPress 3.5.2. This guide will go through getting and installing wp-cli and basic usage it covers for either a local or production server environment. Install wp-cli curl…
Read More