Ubuntu & Bash tutorial & basic utilities

An introduction to the CLI (Command Line Interface) and Bash on Ubuntu Linux aka a bash tutorial The default shell that is installed on Ubuntu Linux is bash. Alternatives exist, but they’re beyond the scope of this tutorial (check our post here for more info on how to isntall a better alternative to bash called Zshell or zsh). Bash is available on almost all Linux distributions, so this tutorial will work on most Linux distributions as well. What is a shell? Simply put, the shell is a program that takes your commands from the keyboard and gives them to the operating system to perform. In the old days, it was the only user interface available on a Unix computer. Nowadays, we have graphical user interfaces (GUIs) in addition to command line interfaces (CLIs) such as the shell. Bash is the most popular shell application for Linux, and is the default on Ubuntu and hundreds of other Linux distributions, Mac OS X, and soon Windows 10. The basics are: You type one or more command(s), hit enter, and it runs the command(s). Use the up/down arrows to go through your bash history. Ctrl+P also works Use Ctrl+R to search the history of commands used previously. Hitting tab will autocomplete commands. Instead of typing cd ~/myfolder1/ you can just type cd ~/my<tab> and it’ll either autocomplete fully or if there are still more folders (like my234 and myfolder1), it’ll show you your options. You can enter multiple commands by separating them with “;” or “&&”. ; allows commands […]