Skip to content

Instantly share code, notes, and snippets.

View abzaver's full-sized avatar

Alexander Zavershnev abzaver

  • North Carolina, USA
  • 07:32 (UTC -05:00)
View GitHub Profile

Bash Cheat Sheet

A cheat sheet for bash commands.

Command History

!!            # Run the last command

touch foo.sh
@abzaver
abzaver / README.md
Created June 10, 2025 16:42 — forked from magnetikonline/README.md
Bash string manipulation cheatsheet.

Bash string manipulation cheatsheet

Assignment
Assign value to variable if variable is not already set, value is returned.

Combine with a : no-op to discard/ignore return value.
${variable="value"}
: ${variable="value"}