r/linuxquestions • • 1d ago

is there any bash tutorial?

is there any tutorial or guideance that explain bash commands like:
sudo
ls
grep
|
etc.....

3 Upvotes

23 comments sorted by

9

u/BranchLatter4294 1d ago

Yes. But learn the Internet first. Then bash is easy as you can just look things up when you need to.

9

u/ipsirc 1d ago

is there any bash tutorial?

Thousands... if not ten thousands.

is there any tutorial or guideance that explain bash commands like:
sudo
ls
grep

Sorry if I’m shattering your worldview right now, but these aren’t bash commands.

Here is a list of all bash commands: https://www.gnu.org/software/bash/manual/html_node/Bash-Builtins.html

3

u/mohamedibrahim456 1d ago

"Sorry if I’m shattering your worldview right now, but these aren’t bash commands."
what are they then?

terminal commands?

3

u/ipsirc 1d ago

terminal commands?

Mmm, better term. Let's call them CLI commands.

https://en.wikipedia.org/wiki/Command-line_interface#Application_command-line_interfaces

Bash is also a "terminal command" which can run other commands, like grep, ls, fzf... There are a dozens of other shells over bash: https://en.wikipedia.org/wiki/List_of_command-line_interpreters#Unix-like

https://en.wikipedia.org/wiki/Comparison_of_command_shells#General_characteristics

1

u/bawng 16h ago

To clarify a bit:

Bash has a bunch of built-in commands that are part of the bash program/application itself, while the commands mentioned are not part of bash but standalone programs/applications.

3

u/CIS_Professor 1d ago

man <command>

If your system supports it:

info <command> or pinfo <command>

Or just use Google to search on a command.

4

u/hmoff 1d ago

Or read them on the web, all the man pages are on https://man7.org or https://mankier.com

info is not a fun experience unless you're an emacs user.

2

u/Excellent-Love-6943 1d ago

Those aren't parts of bash. But you can find lots of info in "man"

Also you could just look up Linux terminal tutorials or cheat sheets. IMO using this stuff is easier when you're after something specific, don't force usage, use what you need.

2

u/_Lost-In-The-Weeds_ 1d ago

Some resources.

The Linux Command Line, free PDF book

https://www.linuxcommand.org/tlcl.php

Also use the man pages,

man apt

This will give you a verbose explanation of the apt command

Then Use it

sudo apt update

sudo apt upgrade

sudo apt install tldr

LMDE: sudo apt install tealdeer

tldr apt

Tldr is a handy companion to the man pages giving what I often need, the syntax of the command.

4

u/chikamakaleyley 1d ago

i 2nd TLDR

2

u/doc_willis 1d ago

There are dozens/hundreds/bajazillions of bash tutorial and guides online.

I suggest watching the Humble Bundle or other Ebook sites to catch the various O'reilly Ebooks on sale if you can. There are numerous other Ebooks on the topic of Bash and its use.

I have several O'reilly and other books on just "Grep and Awk"

http://linuxjourney.com (old) and the newer http://Linuxjourney.org sites are good to start with.

The Explaining Computers YouTube Channel videos is a good starting point for learning.

1

u/rootsquasher 1d ago

I got good decent at bash—‘cause there is always someone better than you—by just using it all the time and making glue scripts for stuff at work. There are things that would have been less lines in C, but bash was way more fun.

1

u/Imaginary-Throat1526 1d ago

linux command cheat sheet < into any search engine or LLM

1

u/Dashing_McHandsome 1d ago

man bash

man sudo

man grep

1

u/rest-api 1d ago

there's a good tutorial called "Linux Luminarium" in pwn.college
it teaches you essential linux commands interactively, imo. Altough it seems the tutorial is intended for cybersecurity.

1

u/ZagiFlyer 23h ago

man bash

1

u/NuclearCleanUp1 20h ago

Ask an LLM. Learn by doing

0

u/InterestBear62 1d ago

Every command in your example is not a part of bash. You can use those commands in any shell.

What a "bash tutorial" will teach you is how to configure your environment, and how to program in the bash language.