Skip to main content
This course material was developed as part of UNIVERSE-HPC, which is funded through the SPF ExCALIBUR programme under grant number EP/W035731/1

This course material was developed as part of UNIVERSE-HPC, which is funded through the SPF ExCALIBUR programme under grant number EP/W035731/1

Creative Commons License

The Bash shell

View Course Diagram

BASH
The Bash shell is a command-line interface typically used in Unix-based operating systems such as Linux and macOS, but is also available for Windows. It provides a way for users to interact with the operating system using text-based commands instead of a graphical user interface.
Some basic commands you might use in Bash include:
  • ls: Lists the files and directories in the current directory.
  • cd: Changes the current directory to a specified directory.
  • mkdir: Creates a new directory.
  • rm: Deletes a file or directory.
  • echo: Prints a message to the terminal.
In addition to these basic commands, you can use Bash to write scripts, which are collections of commands that can be executed together. Bash scripts can be used for tasks such as automating repetitive tasks, managing files, and running programs.
Learning Bash can take some time, but it's a powerful tool for working with Unix-based operating systems. There are many online resources available to help you learn, including tutorials, books, and online communities.