Become a shell wizard in ~12 mins

preview_player
Показать описание
In this video we're running through all the important things you need to know in order to get comfortable using the shell and see how you can compose commands together to build out super handy chains that'll save you a lot of time.

#terminal #linux #bash
Рекомендации по теме
Комментарии
Автор

0:28 line terminology

0:47 ls (list)
1:19 cd (current directory)
1:22 pwd (path to working directory)
1:26 echo
1:30 cat (concatenate)
1:33 touch
1:41 cp (copy)
1:47 mv (move)

1:51 <target> <destination> convention

2:02 rm (remove)
2:24 ln (link)
2:35 less
2:50 more
2:56 man (manual)
3:27 grep (global regular expression print) (find strings)
3:36 find (find files/dir)
3:47 sed (stream editor) (find and replace text)
4:25 awk (extract text data)
4:43 sort
4:55 head, tail

5:12 piping, pipe operator < | >
5:46 xargs (split input into chunks and pass as arguments)

6:07 running subshells < $( ) >
6:32 redirection < > >
6:47 appending < >> >
6:54 file content into stdin < < >
7:04 fzf (fuzzy finder)
7:24 compgen - c (lists all cmds)

7:31 Lots of useful command combinations

11:55 key takeaways

sleepybraincells
Автор

I listen to this every evening to fall asleep in peace

tnfish
Автор

ASMR: shell commands to fall asleep to

StiekemeHenk
Автор

Goes from newbie to advanced real quick! I use the terminal a lot as a software engineer, but this taught me a couple things and I feel like I understand some things better.

BobbyMully
Автор

probably the best video on overview of shell commands that ive seen so far

Snowdennnn
Автор

I cannot express enough how much I needed this video. I just started a Systems class and my profs teaching style does not mesh well with my brain. THIS THOUGH!???! There is hope - thank you so much ❤

quelaa
Автор

currently taking a Linux class in college and this is was very helpful. I am already familiar with some the commands you showed but the short cuts and pipelines you showed were super valuable in making things easier!

mathiasbauer
Автор

Great video and the slow, calming BG music is a very nice touch.

imjusthereforlolz
Автор

I just become death destroyer of the terminal world!!

HopeUnveiled
Автор

Impressed that you introduced me to a couple of commands I was not aware of and I pride myself in writing one liners that wrap 3 lines. Specifically `compgen` and `fd`. The latter of course written by the same fellow who's created `bat` which is wonderful replacement for `cat`.

Another interesting way to use `xargs` is by inserting the output in a specific location in a command. e.g.
$ aws ecs list-clusters | rg blah | cut -d / -f 2 | tr -d '", ' | xargs -n1 -I{} aws ecs describe-services --services {} --cluster {}

One I use fairly often while writing a long command where I need to switch to looking something else up is prepending the command with a `#` and hitting return, it parks the command as a comment which you can go back to editing but doesn't execute anything when initially entered.

Try this in a chromium based browser with a ton of tabs open... `cmd + shift + a`... start typing the title of what you are looking for ;)

Torque
Автор

The xargs command section was really good!

Something as simple as aliasing 'logs' to open a fzf with all your docker containers and choose one to check the logs for is just so useful

Rikaisan
Автор

I never thought the shell could be relaxing but you have done it. Good work.

cobraflunkie
Автор

Explained more and better in 12 minutes than our teachers in a whole semester.

Hersatz
Автор

The Ctrl-X Ctrl-E to edit command in $EDITOR is actually very very useful! Thanks for telling us that!

miigon
Автор

Thank you so much for bringing fzf to my attention! Just the type of tool I've always wanted but never knew existed.

demidevil
Автор

You...., wizard...., has a new worshipper. Me is, from now on, following your magic.

wazuma
Автор

My line editing became a lot less painful once I figured out I could use the emacs bindings on it. Also, I didn’t know about c-x, c-e which in retrospect makes a lot of sense.
Thanks for teaching me something

driden
Автор

Have been using linux for a few things for like 5 years, and just only now realized man stands for manual

sammy
Автор

Holy crap. I learned some cool new tricks. Thank you. I was really skeptical at first.

Markadown
Автор

Glad this came up on my feed. Shoutout algorithm

jaywaup