r/linuxquestions • • 4h ago

is there any bash tutorial?

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

4 Upvotes

18 comments sorted by

8

u/BranchLatter4294 4h ago

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

8

u/ipsirc 4h 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 4h 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 4h 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

5

u/CIS_Professor 4h ago

man <command>

If your system supports it:

info <command> or pinfo <command>

Or just use Google to search on a command.

3

u/hmoff 3h 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 4h 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_ 4h 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 4h ago

i 2nd TLDR

2

u/doc_willis 4h 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 4h 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 3h ago

linux command cheat sheet < into any search engine or LLM

1

u/Dashing_McHandsome 3h ago

man bash

man sudo

man grep

1

u/InterestBear62 3h 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.

1

u/rest-api 2h 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 1h ago

man bash