Using Bash and the Terminal to understand files

  Рет қаралды 61,910

Luke Smith

Luke Smith

Күн бұрын

Пікірлер: 173
@dominikdrapaa6472
@dominikdrapaa6472 4 жыл бұрын
Finally everyone will be able to find Jesus using only few simple commands.
@xtdycxtfuv9353
@xtdycxtfuv9353 4 жыл бұрын
not possible on linux. You must use temple os
@yana_2_6_0
@yana_2_6_0 4 жыл бұрын
Had to kek at " | grep Jesus"
@Miguel_GM
@Miguel_GM 3 жыл бұрын
Amen.
@GhostofTradition
@GhostofTradition 3 жыл бұрын
sudo apt Jesus
@marisa2555
@marisa2555 4 жыл бұрын
I've been piping cat into less for the past 2 months because I figured that's how you were supposed to use it. Thank you for showing me the way before I did it in front of a girl
@mohammad6361
@mohammad6361 4 жыл бұрын
Was the girl Alice?
@ribosomerocker
@ribosomerocker 4 жыл бұрын
I believe bat does that for you
@rafaelpolonio4837
@rafaelpolonio4837 3 жыл бұрын
alias cat="rm -f"
@eduardoantunes2958
@eduardoantunes2958 3 жыл бұрын
@@rafaelpolonio4837 holy shit that's evil
@rohanofelvenpower5566
@rohanofelvenpower5566 2 жыл бұрын
@@rafaelpolonio4837 anyone READING THAT DO NOT TRY IT! IT WILL REMOVE YOUR SYSTEM32 AND OTHER PREVIOUS WINDOWS CRAP LEFT ON YOUR MACHINE and improve your linux speed and stability on your laptop/PC
@kunt230
@kunt230 4 жыл бұрын
Luke going to: i swithced to bash Next week: Why terminator beats st Next next week: desktop environments are superior to suckless crap Nex next next week: Ubuntu LTS graphical cuztomization
@rexevan6714
@rexevan6714 4 жыл бұрын
Next month: How to install Windows
@fanitriastowo
@fanitriastowo 4 жыл бұрын
Haha, windows go brrrrr
@f23anone82
@f23anone82 4 жыл бұрын
@lopez santos Next next tutorial: "Cool guys I found, that can help install Zoom on my Mac just for 199.99$'
@undifini
@undifini 4 жыл бұрын
It’s evolving just backwards
@castillokevin37
@castillokevin37 4 жыл бұрын
In 2 months: hi guys, I've discovered that Linux is just for people that don't value their time.
@strygian192
@strygian192 4 жыл бұрын
Luke is the only person I've ever heard talk about 'hardcore piping' with Jesus on his screen
@abubakrakram6208
@abubakrakram6208 4 жыл бұрын
4:16 I don’t know what that was, but I didn’t realize how much I needed it in my life.
4 жыл бұрын
The tr utility is not good for making text uppercase because it works only on the English alphabet. It does not translate letters like äčéšđǫž. To do a proper lowercase to uppercase, use sed 's/./\U&/g'. To convert uppercase to lowercase, it's 's/./\L&/g'. The entire UTF-8 range is supported. Another great option in sed is the y command, which does the similar thing as tr. For example, sed 'y/ckpt/ggbd/' will Spurdify text.
@jonasrivers3675
@jonasrivers3675 4 жыл бұрын
>using utf lol no one cares, god's chosen text encoding is ascii
@RusselGosu
@RusselGosu 4 жыл бұрын
besd sed ever
@notuxnobux
@notuxnobux 2 жыл бұрын
There is no such thing as uppercase unicode. Some languages do uppercase characters different than others even if you use the exact same lowercase character (also applies to lowercase). The correct way to do it is to set LANG locale before calling the program if you want correct behavior
@technologicalwaste7612
@technologicalwaste7612 4 жыл бұрын
The best part of these videos is when you use a less than optimal solution and one of the commenters gives a correction. I have learnt a number of obscure and useful new things this way.
@simonedeiana2696
@simonedeiana2696 4 жыл бұрын
Luke really be pumping out a stockpile of all the useful linux videos he wanted to make in order to abandon the channel for the next few years and just concentrate on the podcast and transcribing latin books ngl
@Caellyan
@Caellyan 4 жыл бұрын
3:25 "that's not very readable by me - a human" That's exactly what a machine would say. It's okay, we don't discriminate, you're very welcome our AI friend.
@thestopper5165
@thestopper5165 Жыл бұрын
As we say here in the future - "Show us your hands". MidJourney joke. Midjourney's a thing here in the future. I use Arch btw. I'll see myself out...
@srclevenger
@srclevenger 4 жыл бұрын
"When I was looking for Jesus, I cat'd it into grep." Someone's AI is going to learn from this video and get very confused.
@macfhlannchadharonan4668
@macfhlannchadharonan4668 4 жыл бұрын
Good quality stuff, liking these style of videos.
@sergius4691
@sergius4691 4 жыл бұрын
Same
@nate8064
@nate8064 4 жыл бұрын
Steve from Minecraft is really out here helping us find Jesus.
@larryloudman
@larryloudman 4 жыл бұрын
Not only I've discovered how to find Jesus with grep, but also learned about "The Resurrection of Jesus in Luke". Keep this golden knowledge of a torch blazing!
@Forrest-T
@Forrest-T 4 жыл бұрын
I realize it's not the point, but you can achieve everything you did with "cat jdthesis.txt | grep Jesus | less" using just less itself. The '&' key in less does a filter-search to only display lines that match whatever pattern you type, in this case "Jesus".
@code_explorations
@code_explorations 4 жыл бұрын
Forrest Timour TIL!
@RaveenKumar
@RaveenKumar 4 жыл бұрын
I can't eat dinner without watching Luke's Videos.
@mangoleeallan
@mangoleeallan 4 жыл бұрын
im a simple man i see portage in the thumbnail > i press like
@RaftProduction
@RaftProduction 4 жыл бұрын
8:40 Did you just cat into grep? Oh no no no no
@miharkula
@miharkula 4 жыл бұрын
I was about to comment on that. I remember in a different video he said not to do that and just grep the file without the need for cat.
@derick1259
@derick1259 4 жыл бұрын
He explains later in the vid about that.
@anonymous4711_
@anonymous4711_ 4 жыл бұрын
@Գասպար Վարդանյան it's also fine in scripts, since those grow from commands you probably tried in the terminal first. You would have to rework them to comply with a meme from KZbin...
@bahathir_
@bahathir_ 4 жыл бұрын
To get extra info from media files, try mediainfo or, ffprobe also nice.
@machman23
@machman23 4 жыл бұрын
Nice one, thnaks
@sethcenterbar
@sethcenterbar 4 жыл бұрын
Wow I can wait until next time when we get into “hardcore piping” 😳
@ano1nymus1
@ano1nymus1 4 жыл бұрын
>All system configuration is stored in text files Try telling that to the gnome project and dconf, which is pretty much just a copy of how Windows does the registry. They used to use gconf which was similar, but was stored in an xml file back in Gnome 2 (and xfce still does it with xconf), but dconf is just a single binary file.
@AtomToast
@AtomToast 4 жыл бұрын
A useful trick to some people might be to use `setopt noclobber` in your zshrc. This will prevent zsh from automatically overwriting files with > in interactive sessions
@Zrtx112
@Zrtx112 2 жыл бұрын
Love how Luke uses "ohkay" as a comma in a sentence
@VarretInxve
@VarretInxve 4 жыл бұрын
I’ve been a DevOps developer for a year now and I’ve learned a lot about how to do things properly instead of painfully hacking my way around, thanks for them videos
@engageintellect
@engageintellect 4 жыл бұрын
Great video. Really enjoying the direction you have been going in lately with your content. With each video I become skilled at the cmd. 👏
@davidwiedemann9926
@davidwiedemann9926 4 жыл бұрын
I got really excited when I saw a ‘emerge @world’ in the background, thought you were using gentoo...
@primalpenguin
@primalpenguin 4 жыл бұрын
The thumbnail got me lol
@paulo9523
@paulo9523 4 жыл бұрын
Come for the Linux stuff, stayed for the Time Traveling and Jesus
@MarkVP
@MarkVP 4 жыл бұрын
Thanks for the video. Really useful.
@franky_lion54
@franky_lion54 4 жыл бұрын
my daily Luke,great 👏👏
@TheJohnniePlays
@TheJohnniePlays 4 жыл бұрын
cool, when we gonna learn to use web browser to go to pronhub and read interesting plots?
@miguelperezpal
@miguelperezpal 4 жыл бұрын
You are a dev gem.
@DannyMexen9
@DannyMexen9 4 жыл бұрын
In a previous video, I mentioned that I use Manjaro-i3. Tonight, I bit the bullet and reinstalled Arch running dwm, dmenu, st and surf (with Firefox as a fallback). It's amazing. It's not scary. Thanks for the push.
@CrossbowBeta
@CrossbowBeta 4 жыл бұрын
Nu shell has entered the server
@davidjulien5013
@davidjulien5013 4 жыл бұрын
Alright I got a question for you : Why d'you change your group from 'luke' to 'wheel' ? Or if you didn't, why making your home dir owned by 'luke:wheel' instead of 'luke:luke' ? I mean I know you're part of the 'wheel' group to run 'sudo' and stuff like that, but why changing your home's permissions ?
@sergeyturivnyi2538
@sergeyturivnyi2538 4 жыл бұрын
Thank you for the video. I'd like to hear from you about files metadata, indexing, and simulinks
@bahathir_
@bahathir_ 4 жыл бұрын
In GNU less, we can use "&" for list only lines with the search pattern Enjoy Thank you
@derick1259
@derick1259 4 жыл бұрын
open bob
@bahathir_
@bahathir_ 4 жыл бұрын
@@jatre5938 Yes, the picture was taken more than 20 years ago. :) the time I started using Slackware Linux v2.0. :) and still using it on x86_64 laptop/desktop.
@GooogleGoglee
@GooogleGoglee 4 жыл бұрын
Nice video and content! Would love to see more about these features. For example: how to count how many times the word "Jesus" is present in the log file?
@Dhi_Svajita
@Dhi_Svajita 4 жыл бұрын
what audio device do you used to record your videos @Luke_Smith ?.man its sounds awesome!
@oopiumluola
@oopiumluola 4 жыл бұрын
I don't even use linux idk why I keep watching luke
@uyohn
@uyohn 4 жыл бұрын
Great video
@ess3nt1al38
@ess3nt1al38 4 жыл бұрын
Really useful tutorial, thank you a lot! Btw its so sad ur comment section is only memes now
@adityams1659
@adityams1659 4 жыл бұрын
Loved the tutorial ❤️
@solitude4524
@solitude4524 4 жыл бұрын
Cool video
@ezengondolkozom3700
@ezengondolkozom3700 4 жыл бұрын
cool comment 😎
@DanielOliveiraMenelkir
@DanielOliveiraMenelkir 4 жыл бұрын
Talking about the alias of cp, other alias I also use is to `dd status=progress`, `grep --color=auto` and `diff --color=auto`
@vishwaskc3018
@vishwaskc3018 4 жыл бұрын
Where is god? grep Jesus -inr / 👍
@JR-pk1fr
@JR-pk1fr 4 жыл бұрын
Dude. That thumbnail image LMAO 😆
@gaonkarprajwal
@gaonkarprajwal 4 жыл бұрын
Luke why dou you use .mp4 for your recording. Say if ffmpeg abruptly terminates you'll most likely get a corrupted output. Maybe use .mkv?
@jlebrech
@jlebrech 4 жыл бұрын
less is an improved version of the more command
@simonedeiana2696
@simonedeiana2696 4 жыл бұрын
in other words: less is more
@jonasrivers3675
@jonasrivers3675 4 жыл бұрын
hurrr cat go meow
@ecibel1
@ecibel1 4 жыл бұрын
It would be great if you could tell us what you use to record your videos. Thank you
@sachahjkl
@sachahjkl 4 жыл бұрын
the bracket, carret thingy is called a chevron
@SimGunther
@SimGunther 4 жыл бұрын
Text >>>>>> GUI _Ironically uses gui to access text_
@jonasrivers3675
@jonasrivers3675 4 жыл бұрын
tmux is a window manager change my mind
@RaveenKumar
@RaveenKumar 4 жыл бұрын
Luke, can you do videos on how to use git and mercurial?
@jaynulanishat7522
@jaynulanishat7522 4 жыл бұрын
yes @Luke please
@erich8456
@erich8456 4 жыл бұрын
This was cool. Thanks. And I'm glad you found Jesus :--)
@garrysingh4484
@garrysingh4484 4 жыл бұрын
Awesome 👍👍 I Have A Question How To Open "About This Mac" At "Storage Tab" Via Terminal Command On Mac ??? I Can Open "About This Mac" Via Terminal Command open -a "About This Mac" But I Am Not Able To Open About This Mac Specifically At "Storage Tab" ( Third Tab Option Within About This Mac Window ) How Do I Achieve This ??? - I Can Achieve This Via Simulating Key Code Through Applescript Or Oascript Is There a Way To Automatically Open "About This Mac at Storage Tab" Instead Of Default Tab Via Command
@VulcanOnWheels
@VulcanOnWheels 4 жыл бұрын
This > is called the greater-than sign. These [ ] are brackets.
@arnoudrattink1572
@arnoudrattink1572 4 жыл бұрын
: angular brackets, (): brackets, []: square brackets, {}: curly brackets, is what programmers name these
@blackrastafarian
@blackrastafarian 4 жыл бұрын
From a practical perspective, how often do you do updatedb? I made a script utilizing find to list all my ebook and feed it into dmenu, but it's painfully slow in my intel Celeron machine. I might consider using locate, but I don't know how practical will it get if I need to frequently update the db.
@whaaaaaaaaaaaaaaaaaaaaaaaaaat
@whaaaaaaaaaaaaaaaaaaaaaaaaaat 4 жыл бұрын
Might not be the answer you're looking for but I use Recoll and it has a realtime indexing option that allows which directories to monitor. (Idk about locate tho since I heard it the first time in this video)
@blackrastafarian
@blackrastafarian 4 жыл бұрын
@@whaaaaaaaaaaaaaaaaaaaaaaaaaat interesting, I haven't heard about recoll. It seems to be not a part of default Linux distro install and a quick glance at its docs tell me about GUI option. Does it have command line interface for scripting purpose?
@whaaaaaaaaaaaaaaaaaaaaaaaaaat
@whaaaaaaaaaaaaaaaaaaaaaaaaaat 4 жыл бұрын
@@blackrastafarian Yes, just add the '-t' flag. It also has a Python API if the CLI is not enough. I currently use the CLI with Rofi as my interface.
@blackrastafarian
@blackrastafarian 4 жыл бұрын
@@whaaaaaaaaaaaaaaaaaaaaaaaaaat that's nice to know, thanks for telling me about recoll
@majorgamerjay5221
@majorgamerjay5221 4 жыл бұрын
Why this guy doesn't have 1mil already?
@6w817
@6w817 4 жыл бұрын
Portage with verbose output in the thumbnail nice
@Ashkimbo
@Ashkimbo 4 жыл бұрын
I guess you could say... less is more!
@f23anone82
@f23anone82 4 жыл бұрын
"Hardcore piping" and "finding Jesus" in one place. It's almost I'm back to Christian summer camp...
@user-ek8cd1gg3f
@user-ek8cd1gg3f 4 жыл бұрын
wc, head and tail are essential too! Also, people might want to take a look at bat for a cat with syntax highlighting and automatic piping into less (I have cat aliased to bat -p) github.com/sharkdp/bat/
@shamsartem
@shamsartem 4 жыл бұрын
Why are you cat-ing into grep, Luke
@_siggi_783
@_siggi_783 4 жыл бұрын
Can ye do vid on making keyboard shortcuts?
@love.ly.
@love.ly. 4 жыл бұрын
Thank you for helping me find Jesus!
@Conta_Google
@Conta_Google 4 жыл бұрын
How do make your terminal colorful?
@haywalkca
@haywalkca 4 жыл бұрын
Did you switch to nginx so that you can livestream to your site?
@caubert
@caubert 4 жыл бұрын
I still don't understand why Luke abandoned Void Linux, why Artix? more common?
@Dther99
@Dther99 4 жыл бұрын
I don't remember the exact video, but he said that he couldn't live without the AUR.
@caubert
@caubert 4 жыл бұрын
thnx
@caubert
@caubert 4 жыл бұрын
this actually solves the, pic any distro, if it stays to ARCH problem with LARBS...
@mnymic
@mnymic 4 жыл бұрын
imap.yandex.com. You are breaking my heart, Luke. Shame on you! (But thanks for keeping it up with your channel, anyway)
@0xpacman
@0xpacman 4 жыл бұрын
Luke, can you make a video about magic files ?
@jasonleo
@jasonleo 4 жыл бұрын
oh, Jesus!
@wytrzeszczwytrzeszcz7739
@wytrzeszczwytrzeszcz7739 4 жыл бұрын
I hope in hardcore pipeing episode we will see stdin,stdout and stderr
@krisdabrowski5420
@krisdabrowski5420 4 жыл бұрын
To Luke and Luke's friend: Become Orthodox Christian! Heterodoxy is provably bloat.
@nonenothingnull
@nonenothingnull 4 жыл бұрын
Why are you putting portage emerge in the background
@agenttank
@agenttank 4 жыл бұрын
are these BTC and MIOTA prices?
@mrdryu95
@mrdryu95 4 жыл бұрын
Which is the program with audio bars in the beginning?
@greenkb43
@greenkb43 4 жыл бұрын
pulsemixer
@filipkomsic5419
@filipkomsic5419 4 жыл бұрын
Oh NO! Did he just pipe cat into grep? :')
@filipkomsic5419
@filipkomsic5419 4 жыл бұрын
10:40 forgive me you've corrected yourself
@fanuchman
@fanuchman 4 жыл бұрын
"Me, a human" - Nice try Luke ...
@ungerfall
@ungerfall 4 жыл бұрын
I just started typing "Only Linux Brainlets CAT into GREP!!!", but then...saved
@yash1152
@yash1152 Жыл бұрын
no link to the next file?
@timmofonnius
@timmofonnius 4 жыл бұрын
What does mean $9600 on top of your UI?
@kirk0831
@kirk0831 4 жыл бұрын
wait, you use cat first then grep??? I remember you taught us not to use cat to grep??
@mytech6779
@mytech6779 Жыл бұрын
If I'm writing any potentially dangerous command like a dd I will start it with a pound sign so that it won't run if I bump the enter key. $# dd if=abd bs=4M of=/dev/sda1 status=progress Then only after careful review for typos and correct files I remove the pound.
@RapiBurrito
@RapiBurrito 4 жыл бұрын
Wouldn't those >>>
@castillokevin37
@castillokevin37 4 жыл бұрын
An awk vídeo will be nice.
@ozkroca9003
@ozkroca9003 4 жыл бұрын
"It feels weird to call them brackets"... call them kets, quantum physics style
@lunarpassion
@lunarpassion 4 жыл бұрын
Wait a sex is your primary user group is wheel?
@gnubik4217
@gnubik4217 4 жыл бұрын
Jitherington Jesus Log.
@stevanmiladinovic4007
@stevanmiladinovic4007 3 жыл бұрын
*Makes a video on why not to pipe into grep* 9:00
@user-31569
@user-31569 4 жыл бұрын
i would like that titleimg as a wallpaper please.
@crackpippi
@crackpippi 4 жыл бұрын
You should not use 'wheel' as your primary group.
@Klayperson
@Klayperson 4 жыл бұрын
y'all needa grep Jesus
@webbonyoutube
@webbonyoutube 4 жыл бұрын
Two minute club
@jalebss5351
@jalebss5351 4 жыл бұрын
Why too much ads recently, you need money, I see.
@omemester6985
@omemester6985 3 жыл бұрын
Hey man you never made that hard core piping video
@tristanbellingham6759
@tristanbellingham6759 4 жыл бұрын
They're called "Greater than", not bracket things lmao
@travisdula
@travisdula 4 жыл бұрын
Angle brackets is a proper term in the domain of computer science
@tristanbellingham6759
@tristanbellingham6759 4 жыл бұрын
@@fingr2420 I definitely wouldn't call them brackets in this context though
@NullStaticVoid
@NullStaticVoid 3 жыл бұрын
'bracket'?!
@cyperdevelopment
@cyperdevelopment 4 жыл бұрын
hey are you bug hunter ?
@WafflesOinc
@WafflesOinc 4 жыл бұрын
10:40 true, we find Jesus in church
@kippers12isOG
@kippers12isOG 4 жыл бұрын
3 mid rolls this video. Luke getting paid
@PaulIannazzo
@PaulIannazzo 4 жыл бұрын
much jesus, but no god
Regular Expressions (Regex): All the Basics
21:39
Luke Smith
Рет қаралды 57 М.
The Most Important Question in Linux: Extensibility
14:36
Luke Smith
Рет қаралды 36 М.
黑的奸计得逞 #古风
00:24
Black and white double fury
Рет қаралды 27 МЛН
Who’s the Real Dad Doll Squid? Can You Guess in 60 Seconds? | Roblox 3D
00:34
龟兔赛跑:好可爱的小乌龟#short #angel #clown
01:00
Super Beauty team
Рет қаралды 73 МЛН
Bash commands to not look dumb at the Interview...
12:16
Luke Smith
Рет қаралды 78 М.
A Demonstration of Modern Web Bloat
11:55
Luke Smith
Рет қаралды 134 М.
Are You Just TOO SMART to Learn Anything?
12:36
Luke Smith
Рет қаралды 145 М.
Terminal vs. Bash vs. Command line vs. Prompt
11:06
Luke Smith
Рет қаралды 240 М.
Vimrc and Vim Plug-In Overview
13:24
Luke Smith
Рет қаралды 112 М.
Command Line Tricks That Make Me the Coolest Guy in the Office
11:36
Mental Outlaw
Рет қаралды 104 М.
Become a shell wizard in ~12 mins
12:25
CODE IS EVERYTHING
Рет қаралды 255 М.
Protect Your Data from Glowfriends! (Recovering & Deleting Data)
17:31
Filtering .log files, with cat, grep, cut, sort, and uniq
15:36
黑的奸计得逞 #古风
00:24
Black and white double fury
Рет қаралды 27 МЛН