≡ Menu

Mac OS X

How to remove all old and outdated brew packages on MacOS

I am using Homebrew to install packages on MacOS Sierra or Mac OS X. I noticed multiple version of bash or curl installed in /usr/local/Cellar/bash/. How can I delete an outdated version of brew packages and only keep the latest version on my system?
[click to continue…]

Sysadmin because even developers need heroes!!!

How to use curl command with http/2 on MacOS X

I am using a MacOS sierra (version 10.12.1). How do I use curl command with http2/ protocol? I am getting an error that read as follows:

            curl -I --http2 https://google.com
            curl: (1) Unsupported protocol

How do I solve this problem and use cURL with HTTP/2 on Mac OS X or MacOS Sierra?
[click to continue…]

How to get Ethernet Link Speed in MAC OS X Through Command Prompt

I‘m a Mac OS X user. How do I find out my Ethernet Link Speed in terminal using bash shell prompt? How do I see my current Ethernet connection Speed in Mac OS X?
[click to continue…]

OS X install Amazon AWS command-line interface (CLI) tool

How do I setup and install the official Amazon AWS Command Line Interface (cli) on an Apple Mac OS X system?
[click to continue…]

How to enable colorized output for the ls command in Mac OS X Terminal

I am new to Apple OS X. How do I enable colorized output for my ls command on Apple Mac OS X just like the ones that shown on my Ubuntu Linux server? How do I configure Mac OS X Terminal app to have color ls output?
[click to continue…]

How to use curl command with proxy username and password on Linux or Unix

My sysadmin provided me the following proxy details:
       IP: 202.54.1.1
       Port: 3128
       Username: foo
       Password: bar

The settings worked perfectly with Google Chrome and Firefox browser. How do I use it with the curl command? How do I tell the curl command to use my proxy settings from Google Chrome browser?
[click to continue…]

How to undefine and unset a bash environment variable on Linux or Unix

I have set the shell variable. I no longer need the variable. How do I undefine or unset a variable in bash on a Linux or Unix-like desktop system?
[click to continue…]

How to delete a single command from history on a Linux, OS X and Unix Bash shell

I‘m working in Ubuntu bash terminal application and remotely on a RHEL server in cloud platform. I typed the wrong and dangerous command. I no longer wish to remember dangerous command in the history file. How can I remove or delete a single command from bash history file?
[click to continue…]

How to secure and lock down Apple OS X 10.11 (El Capitan) with osxlockdown

Is there is an easy way to audit and lock down (secure) Apple OS X 10.11 (El Capitan) unix operating system?
[click to continue…]

How to find out zone information for given country on Linux or Unix

How do I find out the current time for each zone name specified on the command line on a Linux, FreeBSD, OS X or Unix-like system? How do I report time zone information for Singapore or Japan on the command line?
[click to continue…]