An open API service indexing awesome lists of open source software.

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

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 |