Customize directory colors  bash

You can use the command ls —color (or an alias) to show directories with colours for folders, files, links, etc. However, you may not realise these colours can be easily configured using bashrc and a configuration file. Edit your .bashrc file (in your home directory) to include the following line ... Continue reading

Bash Command Substitution  bash

Bash command substitution performs a given command replacing the marker with the resulting standard output. It is particularly useful when you want to store the output of a command in a variable or as an alternative method of chaining multiple commands together. Bash command substitution is achieved by wrapping your ... Continue reading

Control-R Through Your History  bash

Interactively search through your command line history with a simple keyboard shortcut. At a new shell prompt (bash or on Mac) press Ctrl-R Start typing the search string to lookup in your bash history. As you type the top matching command in your history will appear. Hit Return ... Continue reading

Use screen to manage persistent sessions  bash

GNU Screen is a command-line application that allows use of multiple virtual sessions within a single real terminal or remote session. Importantly, it allows for persistent running of command-line applications independent of the shell that initiated them program, meaning active applications can persist during disconnection. Continue reading