Press "Enter" to skip to content

Posts tagged as “Bash”

CLI to Switch Amazon AWS Shell Environment Credentials

I work with many different AWS IAM Accounts and need to easily switch between these accounts. The good news is the AWS CLI tools now support a standard config file (~/.aws/config) that allows you to create profiles ¬†for ¬†multiple accounts in the one config file. You can select them when using the aws-cli with the --profile flag. But many other…

Install Pgrep and PKill for Mac OS X with Brew

My fingers still tend to do ps ax | grep some_program_name_I_want_to_kill and then do a kill 2012 to kill that process. Then I remember that I could use pgrep and/or pkill to do the same kind of thing. But then I remember I’m on a Mac which doesn’t have those commands built in, though most other *nix platforms do. So…