For system, network and cloud administrators
tmux is a very useful tool when working with the terminal. It basically allows you to start multiple sessions and each one of these sessions can have multiple panes inside it. tmux is a terminal tool focused on window and session management. tmux is available for: Debian/Ubuntu, Fedora, RHEL/CentOS, Arch Linux, OpenSUSE, macOS.
Action | Keyboard keys |
---|---|
Copy | Command + C |
Paste | Command + V |
Undo | Command + Z |
Open new browser tab | Command + T |
Reload/refresh browser tab | Command + R |
Close browser tab | Command + W |
Inside a macOS terminal, apart from the general keyboard shortcuts (like closing or opening a new tab), I sometimes find myself in need to do things differently.
brew install bash-completion
echo "[ -f /usr/local/etc/bash_completion ] && . /usr/local/etc/bash_completion" >> ~/.bash_profile
source ~/.bash_profile
Whenever I’d leave my computer open for more than 30-40 minutes without touching it, I’d always find it locked or with my VPN disconnected (which is really frustrating, especially when working remotely).
The command below will disable sleeping on your computer and it will keep it awake even if your laptop is not connected to a power source. So, open your terminal and type:
sudo pmset sleep 0