https://github.com/martinmorando/bash
Notes, code, and experiments with Bash
https://github.com/martinmorando/bash
bash bash-scripting learning
Last synced: about 2 months ago
JSON representation
Notes, code, and experiments with Bash
- Host: GitHub
- URL: https://github.com/martinmorando/bash
- Owner: martinmorando
- License: mit
- Created: 2025-03-22T16:05:30.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-06-03T22:04:11.000Z (about 1 year ago)
- Last Synced: 2025-10-08T00:31:04.423Z (9 months ago)
- Topics: bash, bash-scripting, learning
- Language: Shell
- Homepage:
- Size: 40 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Notes, Code, and Experiments with Bash
## Quick Overview
- Bash: **B**ourne **A**gain **SH**ell
- Used in Linux and macOS
- Is the default shell of several Linux distributions
## Motivations for Mastering Bash
- Automate repetitive tasks with Bash scripts
- Versatile tool for software development and exploring cybersecurity topics
## Running Bash Scripts
1. Give execute permission: `chmod +x ./file.sh`
2. Run the script: `./file.sh`
## Commands Covered (some options missing)
| Name | Command | Options |
|---------------------------------|----------|----------------|
| Manual | man | -K |
| Print Working Directory | pwd | |
| Echo | echo | |
| Print Formatted | printf | |
| List | ls | -a, -l, -t, -S |
| Make Directory | mkdir | -v, -m |
| Change Directory | cd | |
| Copy | cp | |
| Move | mv | |
| Remove | rm | -r |
| Remove Directory | rmdir | |
| Touch | touch | |
| Concatenate | cat | -n |
| Global Regular Expression Print | grep | -i, -c |
| Word Count | wc | -l, -w, -c |
| History | history | |
| Clear | clear | |
| Head | head | -n |
| Tail | tail | -n |
| Basic Calculator | bc | |
| More | more | -n |
| Less | less | -N |
| Sort | sort | -r, -u |