a collection of bash-tutorials
I mainly recommend learning from
- LinkedIn online courses (www.linkedin.com/learning-login)
- Coursera online courses
- gnu manual page (Bash Reference Manual) . (LINK2)
Learning how to use text editor (nano, vi(m), atom, vscode)
- LinkedIn online courses
Learning how to use regular expressions (Regex)
- LinkedIn online courses
- Basic (BRE) and extended (ERE) regualr expressions
- Sources
Learning how to use parameter expansion
Learning how to use grep, searching strings and patterns
- man grep reference @man7.org
- easy exercise @ostenchnix.com
- medium exercise @hackerrank.com
- hard exercise @tldp.org
- https://www.cyberciti.biz/faq/howto-use-grep-command-in-linux-unix/
Expanding (using) variables Source
eg
$ example="Hello world" # assign var
$ echo $example # current standard, 2022
Hello world
$ echo "$example" # old fashion
Hello world
$ echo '$example' # single quote, just show everything as simple text
$example
$ echo '\$example' # single quote
\$example
$ echo "\$example" # double quote, so escaping $ can be done
$example
A list
- Bash cheat sheet: Top 25 commands and creating custom commands
- top command in Linux with Examples - GeeksforGeeks
- Linux Bash Commands: 101 Bash Commands and Tips for Beginners to Experts - DEV Community
- Bash cheat sheet: Top 28 commands for you to learn 🤺 - DEV Community
- Top 10 Bash file system commands you can’t live without | Hacker Noon
- 16 Top Command Examples in Linux [Monitor Linux Processes]
- Top 25 Linux Commands
- 16 Must-Know Bash Commands for Data Scientists | by Giorgos Myrianthous | Towards Data Science
Frequently used bash commands
-
pwd, ls, cd, mkdir/rmdir, touch, cat, uname, head/tail, cp, mv, less/more, find/locate, which, grep, echo, sudo, chmod, man/--help, apt/apt-get, sort, wc
-
wget, iptables, traceroute, cURL
-
vi/vim, nano, jed, atom
-
clear, exit, cut, jobs, ping, top, sed, lsblk, mount, df, du, ps, kill, service, batch, shutdown, comm, ln, cmp, dd, alias, chown, whoami, whatis, cal, fortune, history, yes, banner, rev, htop, tar, zip, unzip, passwd, shred, neofetch, hostname, useradd, userdel
-
34 Linux Basic Commands Every User Should Know (Cheat Sheet)
TLDP
- https://tldp.org/LDP/abs/html/
- https://tldp.org/guides.html
- https://tldp.org/LDP/abs/html/exercises.html
GNU
Redhat
Wikibooks
- A collection of sources - by It's FOSS
- Bash Tutorial | Bash Scripting Tutorial - Javatpoint
- BASH Programming - Introduction HOW-TO
- Bash Scripting Tutorial - Ryans Tutorials
- Understanding Bash: Elements of Programming | Linux Journal
- Bash scripting cheatsheet
- How to program with Bash: Syntax and tools | Opensource.com
- Shell programming with bash: by example, by counter-example
- Bash Scripting Tutorial for Beginners - Linux Tutorials - Learn Linux Configuration
- 30 Bash Script Examples
- How to program with Bash: Syntax and tools | Opensource.com
- A lot of exercises - HackerRank
- 89 exercises - exercism.org
- https://ecs-network.serv.pacific.edu/past-courses/fall-2018-ecpe-170/lab/bash-scripting-exercise
- https://www.linuxtopia.org/online_books/bash_guide_for_beginners/sect_01_07.html
- http://parallel.vub.ac.be/documentation/linux/unixdoc_download/exercises/Scripts.Ex.html
- http://www-h.eng.cam.ac.uk/help/tpl/unix/scripts/node16.html
- https://dccn-hpc-wiki.readthedocs.io/en/latest/docs/bash/exercise_programming.html
- 19 exercises - innolitics.com
- https://www.quora.com/What-are-some-resources-for-shell-scripting-exercises
- http://pages.stat.wisc.edu/~jgillett/605/linux/linuxExercises.pdf
- https://www.unix.com/unix-for-beginners-questions-and-answers/284054-exercise-bash.html
- https://people.duke.edu/~ccc14/duke-hts-2018/cliburn/Bash_Exercise_1_Solutions.html
To be continued...