Where to start First steps track · 15 stages
Linux Labs

bash — the command shell

cheat sheet · Ubuntu 24.04; Bash 5.2.21 https://lab.dimsanych.ru/en/wiki/bash/

Cheat sheet

  • bash --version shell version
  • help builtin help
  • type pwd command type
  • help pwd command help
  • set -o shell options
  • history session history

Options

Distinguish bash invocation options from set options and shopt settings: these are separate interfaces, not one flat option list. bash script.sh runs a script in another shell. source script.sh runs it in the current one and can change its variables or directory.

Use set -o to inspect shell options and shopt to inspect additional settings. These diagnostic invocations do not change the mode. Before copying settings from an example, identify which shell should receive them.

Loading…