User Tools

Site Tools

tools:bash

bash (and related shells)

bash is a command-line shell for interacting with and controlling a Linux system. It is the most popular shell on Linux, and is the default shell on most distributions. Many similar shells (such as zsh, which is also the default shell for the Terminal in macOS) use a lot of the bash commands detailed in this guide as well.

There are many, many, many commands that one can use in Bash, and it also includes a scripting language so you can make your own custom commands and macros. With enough knowledge of its functions, one could literally run an entire machine from within bash and never even have to leave the shell.

Being able to work entirely within bash means you can use the full range of your computer's potential, without having to install a resource-heavy interface such as Gnome or Windows. This is incredibly useful when it comes to working on older machines, low-power machines like the Raspberry Pi, and remote environments.

This collection of quick-reference cheat sheets has a brief run-down of various essential Bash commands and flags. You can use the `man` and `type` commands to find out more info about any of these commands. (See “Finding Commands and Docs” in Part 1: Getting Started.

Part 1

Getting Started - Shell and filesystem traversal. Displaying file data. Finding and getting help with commands. Basic file operations like moving, renaming, and deleting files & directories.

Part 2

Shortcuts and Piping Commands - Keyboard shortcuts. Chaining together multiple commands. Command history. Metacharacter reference.

Part 3

Managing Processes - Tracking and stopping system processes. Process signal codes.

Part 4

Users and Permissions - Adding, modifying, and deleting users. Managing groups and group membership. Reassigning file/folder ownership and setting file permissions.

Part 5

Managing Files and Archives - Working with file archives. File transfer.

Part 6

Shell Customization - Setting up custom aliases. Defining environment variables. Colorizing prompts and hostnames.

More Reading

If you are in need of something a bit more thorough, check out The Bash Beginner's Guide or The Linux Command Line and Shell Scripting Bible.


This article is part of a series on Command Line
bash: Overview - Getting Started - Shortcuts & Piping - Managing Processes - Users & Permissions - Files & Archives - Customization
Other *nix & MacOS: zsh
Windows: PowerShell

tools/bash.txt · Last modified: 2024/10/17 01:30 by Humphrey Boa-Gart

Find this page online at: https://bestpoint.institute/tools/bash