Learn the "ls" command! Lil' Linux Lesson!

Поделиться
HTML-код
  • Опубликовано: 28 окт 2024

Комментарии • 170

  • @VeronicaExplains
    @VeronicaExplains  Год назад +20

    One simple way to support the channel is buy the shirt from today's video, or one of the other designs I have on my website! I host and run the merch store myself- it's a great way to help me make more videos, and get a fun something for yourself!
    vkc.sh/product-tag/trackball-person/

    • @channelgogrvk
      @channelgogrvk Год назад

      i would happily purchase but there's no shipping to iceland 😭

    • @VeronicaExplains
      @VeronicaExplains  Год назад +2

      Oh no! I think there should be. There's a few countries where VAT tables didn't update. Let me see what I can do- hoping we can get shipping there soon.

    • @aquinamedia4508
      @aquinamedia4508 Год назад

      Shipping to Sweden worked, just put a tiny order in 😊

    • @VeronicaExplains
      @VeronicaExplains  Год назад +1

      @@aquinamedia4508 Thank you so much! 😊

    • @aquinamedia4508
      @aquinamedia4508 Год назад

      @@VeronicaExplains All my pleasure, i'll support in any way i can ☺

  • @stevenhammberger7054
    @stevenhammberger7054 Год назад +4

    This channel has it all - Linux commands, playing with old hardware, and commiserating over the insanely cold Minnesota winters.

  • @ChrisHarringtonMinneapolis
    @ChrisHarringtonMinneapolis Год назад +36

    Arguments? That sounds like something I used to have on social media.

    • @bountoj
      @bountoj Год назад +2

      Arguments? I barely knew her. 0_o

  • @charlesbarilleaux2784
    @charlesbarilleaux2784 Год назад +9

    Props for the “use traditional, not some special package” comment. I use a variety of current and historical UNIXes (mostly MacOS), that may not have it for a variety of reasons. I can count on `ls` being there!

  • @MeriaDuck
    @MeriaDuck Год назад +1

    As a part time teacher currently teaching Linux, I will certainly recommend your channel to my students.

  • @NuAngelDotNet
    @NuAngelDotNet Год назад +2

    More of these for your most favorite Lil' Linux commands, please! Thank you!

  • @pascalschreiber3383
    @pascalschreiber3383 Год назад +16

    You're right, you have to know the basics first before going any further.
    Speaking of the basics, I'd find it interesting to explain file permissions on Linux. Maybe in a next video? Thanks to you .👍

    • @LeftoverBeefcake
      @LeftoverBeefcake Год назад

      +1 vote for a file permissions lil' Linux lesson

    • @BocusVeLucy
      @BocusVeLucy Год назад +1

      rwx_rwx_rwx I seperated them with underscore so it is easier to read. First part is owner’s permissions, second part is group permissions and last part is permission for others. R is read W is write and X is execute permission. If permission is - - x, it mean last bit is on so it value is 1 which is equal to 2^0. If permission is - w x, two bits are turned on so it is 1 + 2 = 3 or 2^0 + 2^1 = 3. If all permissions are given r w x, then it is 1 + 2 + 4 or 2^0 + 2^1 + 2^2 = 7. So if you see something like - rwx_rwx_rwx it is value is 777. You can change permission of a file with chmod command. Simply execute it like this chmod value filename. For example to set permission to -rwx_r-x_rw - on hello.txt, you can execute chmod 756 hello.txt

  • @JeffPomaybo
    @JeffPomaybo Год назад +4

    Why does it all sound so simple and reasonable when its explained well? thank you for your knowledge, its genuinely helpful.

  • @KrishnaDraws
    @KrishnaDraws Год назад +20

    Love this video - so useful! More of this type of content, please :)

    • @VeronicaExplains
      @VeronicaExplains  Год назад +1

      Thank you! I'm hoping to do more Lil' Linux Lessons in the next year, as well as a few deeper dives into topics that are challenging in a small space.

  • @CronoCloudAuron
    @CronoCloudAuron Год назад +8

    Love the alliteration. One thing I have done for ls use is to set my dircolors so that directories use “reverse“ colors so they stick out more in a listing. Mine show as white text on a light blue background. Every time you say “Linux is awesome, and so are you.“ it warms my heart with wholesome goodness.

  • @mickeh5278
    @mickeh5278 Год назад +13

    More of this kind of content please even though I like all your other videos😃 Great explained as usual.

  • @radical_ans
    @radical_ans Год назад +20

    The fun part is finding anagrams of various argument combination. I.e. ls -halt

    • @jyvben1520
      @jyvben1520 Год назад +1

      the lahtr did make me think of latrine, the mind works in mysterious ways ...

  • @cynrez
    @cynrez Месяц назад

    Learning about Linux and hope to get my cert before the end of the year. Since I needed a little extra help so I looked up in RUclips and found your channel and I’m OBSESSED!! Thank you also girl power 🥺♥️

  • @sandraviknander7898
    @sandraviknander7898 Год назад +4

    How have I not come across your channel before, you’re amazing. Informative and entertaining!
    Super cool that you are a cobol dev! Always wanted to take an afternoon to try it out but always other projects coming in the way. 😅

  • @peteryates308
    @peteryates308 Год назад +3

    Totally agree that knowing how the standard tools work is a must, especially when you don't know where your scripts might run.
    The ergonomics of modern tools is such a huge advantage though; I don't need to think when I use fd, ag or rg but (despite 20 years' use) I do have to think about find and grep.

  • @videobenny3
    @videobenny3 Год назад +1

    You had me at the bouncing Amiga ball. Fascinating how it was using cycled colors to imitate facet animation.

  • @680x0
    @680x0 Год назад +4

    Ha! You managed to do it again (teach me something new I didn't know about a Unix/Linux command): that the -h option (which I've used for years with the df command) also applies to ls! Hooray! Linux _is_ awesome, and so is Veronica! :-)

    • @VeronicaExplains
      @VeronicaExplains  Год назад +1

      I'm glad it was useful- thank you so much!

    • @d00dEEE
      @d00dEEE Год назад

      You may already know these other dash-haitches, but just in case:
      'ls -lh | sort -h +4'
      and
      'du -h | sort -h'

    • @JarrodCoombes
      @JarrodCoombes Год назад +1

      @@d00dEEE Tweak that last command to du -sh ./* | sort -h and you get a nice sorted list of the each sub directory summary, rather than a massive list of every file under your current path.

  • @wyattE415
    @wyattE415 Год назад

    Kind of like "oh just use software center to get software packages, not 'apt' or 'apt-get.'" or "no one needs terminal." If I want to retrieve, extract, and install a tar.gz from the terminal, that is my prerogative and am able to and I agree it is helpful to learn different ways to do things on any OS, but especially Linux because it's so robust.
    Also, I love the way you go over Linux concepts on here. It seems that many Linux channels that have tutorials do not actually teach Linux, but rather the person teaches us how they learned to use Linux and how they do it, and they always act as if that's the only canonical (ha pun!) procedure for doing so.

  • @stockwellengineeringhints3527
    @stockwellengineeringhints3527 Год назад

    I only recently learned about the ls command in the last few years. I just always used "dir" as that's what I knew from the old DOS days back in the early '90s.

  • @Hey-Yaz
    @Hey-Yaz Год назад +1

    "The terminal's totally triumphant in the tableau of tried and true technology tendencies" LOL!! This needs to be on both sides of a T-Shirt for mech. Where do you come up with these great lines? Another informative video. Thanks!

  • @jayzsphotography6
    @jayzsphotography6 Год назад

    I have been using the "ls" command for years and I learned something new, thanks Veronica!

  • @mikehosken4328
    @mikehosken4328 Год назад +2

    I agree with the learning the standard packages commands. If the new package is great it will become the standard. For instance nano replaced vi as the default editor

  • @ksukat87
    @ksukat87 Год назад +4

    Ah yes. ls. Fun note: different variants of unix (at&t and bsd) have different arguments for the ls command. Also, my favorite is to pipe the output of ls to more so its paginated. I also alias the ls command in my shell init script so I don't have to type in the ls arguments every time. Nice intro to ls. Thanks.

  • @neilbrideau8520
    @neilbrideau8520 Год назад +2

    Ive been rolling code on Linux since '96 and by FAR my most used command is ls. Your production value has come a long way and I think it is very entertaining BTW. PS ls -1 is way better than ls -l if you are saving a list of files to be processed later.

  • @eignnx_1738
    @eignnx_1738 Год назад +2

    "Linux is awesome! And so are you :)"
    My heart melts every time 😭 Thank you for such a fun and wholesome channel

  • @neverping
    @neverping Год назад

    I really liked that you mentioned that although there are alternatives for main Unix commands, sometimes you are limited to company's compliance on what you can have on your computer and on servers.
    For instance, I had a manager that navigates into files and directories using the "midnight commander", or simply "mc". It's a uself tool that resembles Norton Commander. He's very good at it. But when he have to look at directories on a server, I could see that he "lags" on going into different directories quickly by using the famous "tab tab tab" with Bash / ZSH auto-complete. It's not that he doesn't know. It's just that he is more used with mc for dir/file viewing rather than doing on the shell.

  • @davidwright507
    @davidwright507 Год назад

    I was issuing the "ls -ltra" command for years but wasn't sure why.
    I need to use the manpage command more often. Great content!!

  • @willemvandebeek
    @willemvandebeek Год назад

    Merry Christmas, best wishes for the new year, and thank you for calling me awesome, Veronica, you are awesome too. :)

  • @Karla_Finch-Cluff
    @Karla_Finch-Cluff Год назад

    Heck yeah, this was great information! I did not know ls could dump to a text file, thanks!

  • @esra_erimez
    @esra_erimez Год назад +2

    I love visiting with Veronica even if I know ls already 😀

    • @VeronicaExplains
      @VeronicaExplains  Год назад

      It's always great to see you here in the comments! :)

  • @okona1up
    @okona1up Год назад +2

    Your style totally reminds me of Technology Connections. (-:

  • @tekdragon
    @tekdragon Год назад +2

    I stick with "ls" though I do often splurge and use the "ll" alias for "ls -l" that many distros have pre-configured. love your vids!

    • @JarrodMcKitterick
      @JarrodMcKitterick Год назад

      Originally I used "ll" in LPMud's as a "long look". Once I started running Linux servers at home I made the "ll" alias for "ls -l". Didn't know it was a common pre-config. Nice

  • @jchidley
    @jchidley 9 месяцев назад

    Yep. Doing sysadmin work requires you to get the best out of the least functional common tools tools. Here documents, bash, awk and sed are really useful. I am a touch typist and I did an international job. I had to use multiple keyboard layouts, sometimes without the benefits of the keys themselves (remote access) - oh the fun I've had finding the #, $ , / or \ keys!

  • @fabienmargerie6815
    @fabienmargerie6815 Год назад

    👍😎You too are awesome Veronica! Love The Lil' Linux Lesson! See you soon. 👋

  • @Lokra_
    @Lokra_ Год назад

    Wow, now you have secured at least 1000 more videos for the rest of the most used commands on Linux.

  • @YOLOjst1s
    @YOLOjst1s Год назад

    Hii!! I've never seen some Linuxtuber make such great quality and beautiful contents :)
    As someone who is a newbie in these I want to request that you add more lessons like this (in your own pace ofcrs).
    I would really like u to share what alias commands u use .thanks for your content .

  • @Neptutron
    @Neptutron Год назад

    I love the way you talk in 0:33, it reminds me of Zack Freedman - the way all the words start with the same letter :D

  • @SudipRajbanshi05
    @SudipRajbanshi05 Год назад

    That's a great video! Well explained
    Please more videos on these topics

  • @dcc1165
    @dcc1165 Год назад

    Another reason to stick with traditional tools in your scripts means they are almost guaranteed to be portable (yes, I know there are caveats, but that's not the point). Some systems may not have the new-fangled tools installed or they may not be supported at all. I guess Ken Thompson and Dennis Ritchie knew what they were doing when they first create Unix and all its bits and bobs :).

  • @send2gl
    @send2gl Год назад

    Used ls for ages but learnt about other useful flags. Didn't realise the -h which is used on other terminal commands, shall use that in future.

  • @kiaranlomas1949
    @kiaranlomas1949 Год назад

    Brilliant, Love this sort of comment delivered with such a great attitude and smile 🙂 More Please

  • @MauricioLeonCalvo
    @MauricioLeonCalvo Год назад +1

    Well explained! Thank you! and yes, Linux is awesome!

  • @devoidbmx1
    @devoidbmx1 Год назад

    Thanks, I’ve been using Linux for about a month and I didn’t know about the -a or -l arguments which I will start using often.

    • @VeronicaExplains
      @VeronicaExplains  Год назад

      Glad it was helpful! Another I didn't cover is if you want to paginate a really long listing.
      I do `ls -lt | less` a lot. The `l` and the `t` are a long listing by modified time (so I can see the most recent files), the `|` pipes the results of the command into the next command, which is `less`, a pagination feature. In a folder with hundreds of files it can be a great way to see at a glance what's new.

    • @devoidbmx1
      @devoidbmx1 Год назад

      @@VeronicaExplains Wow thanks for the response. I know how to | GREP, but it is funny - in the shower yesterday I was wondering "what the hell does the pipe mean. Appreciate it!

  • @Adiusza
    @Adiusza Год назад

    This is the most usefull tutorial about ls command i have ever seen or read ...omg :O

  • @zameerpashablr
    @zameerpashablr Год назад

    Best for Learners and the expertise too. Love your explanations. Simply the best and Awesome too.

  • @hafsaesam3743
    @hafsaesam3743 4 месяца назад

    Thank you, Veronica!

  • @AndreaIppolitoIppo
    @AndreaIppolitoIppo 7 месяцев назад

    In case anyone's wondering about the terminal font Veronica is using, using some highly sophisticated tools (i.e. comparing stuff with my eyes on screen :D) I figured out that it should be Iosevka
    Put it in my config and it looks the same, very nice font

    • @VeronicaExplains
      @VeronicaExplains  7 месяцев назад +1

      Absolutely- in this video (and most of the time) I'm using Iosevka. A very nice typeface indeed.

  • @6502Assembler
    @6502Assembler Год назад +2

    You should throw in a section about DIR_COLORS in the environment.

  • @JarrodMcKitterick
    @JarrodMcKitterick Год назад

    Yay for the LLL. It was fun to play along. Must be synchronicity. Woke up, put on the T568b shirt, and a new vSplains. Going to be a good day!

  • @ripleysmith7583
    @ripleysmith7583 Год назад +1

    Love your videos. Thank You for making them.

  • @richardahlquist5839
    @richardahlquist5839 Год назад

    I have got to agree about knowing the basics. I mean you can jump into an ages old box on a 2.x kernel and LS will still be there.

  • @DeputatKaktus
    @DeputatKaktus Год назад

    According to a friend of mine, there is a secret club or society, membership in which is by invitation only, that you only get to join once you know every argument of the ls command by heart. What they do, I don’t know. But it probably involves lists.

  • @EricCorsi
    @EricCorsi Год назад

    Well played and concise. Very nice.

  • @NebulaM57
    @NebulaM57 10 месяцев назад

    Great video! Thank you for sharing. Can I ask, is there a 'config' file that would let you make ls -h a default? Meaning, any time I use ls, it will actually use ls -h? (I'm not at my Linux box at the moment to check the MAN pages).

  • @afiqhamzah2463
    @afiqhamzah2463 Год назад

    Subscribed. love the 80s/90s vibe

  • @NachtmahrNebenan
    @NachtmahrNebenan Год назад

    My favorite for a first view into a directory is `ls -hAlF` (think of a Halfling you're asking for information - who will not talk about a second breakfast tho).

  • @dagaspadini6543
    @dagaspadini6543 Год назад

    This is the first time I've ever heard of exa, but I guess I'll stick to ls.
    For work I had to deal with some AIX and Solaris servers that didn't even had watch or htop installed, so it's good to know to use "old" commands just in case.

  • @ringo8410
    @ringo8410 Год назад

    Learning ls before using exa is a bit like learning C++ before moving on to something like Java: you get a sense of the fundamentals before using something that does a lot of the dirty work for you. Java doesn't require a lot of the setup for data structures that C++ does, but having to do that setup in C++ gives you a deeper understanding of them. I don't know if that makes sense at all..

  • @jebidiahcarlyon3543
    @jebidiahcarlyon3543 Год назад

    Awesome, I was sure I would learn something - but learned a few gems! Now I'm wondering if I can write some shell scripts to create list of files by regex. Thank you!

  • @jyvben1520
    @jyvben1520 Год назад

    When using linux at home, i prefer to add mc (midnight commander) it presents so many linux commands,
    and you can integrate custom commands/scripts somewhere

  • @shrizza
    @shrizza Год назад

    Just the thought of `ls`ing my Downloads directory makes me look over my shoulder.

  • @BoyceBailey
    @BoyceBailey Год назад

    These are the every day commands I need for the windows 10 end of life move.

  • @unclerubo
    @unclerubo Год назад

    Thanks, Linux mom!

  • @jeffreyphipps1507
    @jeffreyphipps1507 Год назад

    Oddly, I've never used any thing for this except ls - for decades. I didn't know there was anything else.

  • @epotnwarlock
    @epotnwarlock Год назад +1

    I switched to Trackball, its underrated

  • @IrrationalExuberance
    @IrrationalExuberance Год назад

    Veronica, you use the exact same PS1 config value that I do. Good prompt taste.

    • @IrrationalExuberance
      @IrrationalExuberance Год назад

      Just realized all the RedHats use this for their default ; ) been a while since I used one but that explains why I do this on other distros now haha

  • @keithlambell1970
    @keithlambell1970 Год назад +1

    I only recently discovered the "-h" option. I use it all the time now (because I am a human) :-)

  • @gjermundification
    @gjermundification Год назад +1

    I have used `ls -lAh` mapped to ll, however these days I use `exa -l` for ll alias or `exa -lTL 2` for lt

  • @rezydev
    @rezydev Год назад

    Loved the content. Thanks

  • @spreadneck2063
    @spreadneck2063 Год назад

    You should do one on bash aliases!

  • @alecclews
    @alecclews Год назад

    Fun game (because ls has so many options). See if ls will take your name as an option string e.g. `ls -veronica`. Unfortunately `-e` is not a valid option. However, `ls -vronica` works.

  • @jerrymckee4332
    @jerrymckee4332 Год назад +1

    nothing like good old POSIX standards!!

  • @DevilsReject765
    @DevilsReject765 Год назад +1

    Just found your channel and subscribed 💃

  • @Rothkeen
    @Rothkeen Год назад

    Damn I love these types of videos. Thanks Veronica

  • @MarkAngeloTorres-s8g
    @MarkAngeloTorres-s8g Год назад

    linux mom is cool, i love your videos!

  • @philippklostermann7768
    @philippklostermann7768 Год назад

    It's like: You can use pico, but you should still be able to handle vi. (And then you don't need pico.)
    I've never heard of exa and it doesn't seem to be part of a basic debian install. Googleing for it names features as advantages over ls, that I know from ls. So what is exa for?

  • @us8330
    @us8330 Год назад

    I like your videos, your english is perfect!!

  • @alishafogle6053
    @alishafogle6053 Год назад

    I have a request for a video. Can you do a video on OpenVPN? Please and thanks for the great videos.

  • @joeruss1834
    @joeruss1834 Год назад

    Shout out to the `ll` alias! I always forget that > and >> exist since I use them so rarely.

    • @Benoit-Pierre
      @Benoit-Pierre Год назад

      its not enabled by default on debian, you need to edit your/system bashrc or bash_profile

  • @VEKTOR_87
    @VEKTOR_87 Год назад

    Thank you really helpful

  • @stevdodd7515
    @stevdodd7515 Год назад

    Fun and informative 👏👏

  • @DeirdreYoung1
    @DeirdreYoung1 Год назад

    ls is awesome.. and so are you 😀

  • @ronm6585
    @ronm6585 Год назад

    Thank you.

  • @crazybeerd
    @crazybeerd 4 месяца назад

    I like to install "sl" so that if I mistype the "ls" command by inverting it the steam locomotive chugs across the screen. Then instead of getting annoyed at my typo it makes me laugh instead every time. 😂

  • @Fweddle
    @Fweddle Год назад

    *sees the title*
    Mwhahaah. My unix class prepared me for this day

  • @ryoukaip
    @ryoukaip Год назад

    thank you so much!

  • @stopspyingonme9210
    @stopspyingonme9210 Год назад

    Just stick to bop-it. It’s called a man page not a wo-man page. Just kidding this channel is great.

  • @ShdxW
    @ShdxW Год назад

    Took me longer than I'd like to admit to realize that I was looking at a printed list of Who albums at 3:05 lol

  • @aquinamedia4508
    @aquinamedia4508 Год назад +2

    YOU'RE AWESOME!

  • @peterreed3104
    @peterreed3104 Год назад

    Hey, Teach I have my hand up it's tired now its been up for four months waiting for the next Lesson. "Please Ma'am Can we have some More"?

  • @doobybrother21
    @doobybrother21 Год назад

    Are you sure about the powerdrill/hammer analogy ?

    • @VeronicaExplains
      @VeronicaExplains  Год назад

      Very sure! There's nothing wrong with having a great set of power tools, but if you don't know how to swing a hammer there's going to be trouble when all you have is a box of nails.
      I've been in dozens of situations where all I have is the classic UNIX tools, due to vendor vexation or container constraints. Not to mention hyper-secure environments which require ten layers of bureaucracy to get a package approved. And all of that ignores the scripting issue- if you are scripting, you should really stick with lowest-common-denominator tools. More dependencies equals worse scripts, generally.

    • @doobybrother21
      @doobybrother21 Год назад +1

      @@VeronicaExplains So you don't use a hammer to drive in screws when you are carpenting. That is good to know :)

    • @Benoit-Pierre
      @Benoit-Pierre Год назад

      @@VeronicaExplains nails sux. when all I have is nails, I go buy some screws.
      nails are only good for weight compensation when I have balance issues, or replace wood stick with something stronger.

  • @lillywho
    @lillywho Год назад

    I'm just now starting out on the video, so I'll be very disappointed if you don't mention ``sl`` ;P
    Edit: What, really no sl, the anti typo learning tool for sl? Banter aside though, if you haven't heard of it yet, you should take a look at the github repos with the various forks. It's adorable!

  • @vdochev
    @vdochev Год назад

    ls works.

  • @AschKris
    @AschKris Год назад +1

    I like -A because it hides the . and .. directories
    I don't know if it is standard though

    • @GSBarlev
      @GSBarlev Год назад

      Oh wow! I didn't know this existed! Thanks for the tip!

    • @Benoit-Pierre
      @Benoit-Pierre Год назад

      -A is not -a
      Linux is case sensitive. it's not DOS. In fact even Windows is case sensitive for arguments.
      on ls this mistake will just produce an error. on other commands like hdparm it may just kill your machine ... physically.
      no -a is not standard. you may have it on most platforms, but may not have it on all.
      she goes too fast on the difference between UNIX , System V, POSIX , and GNU. They are different sets of standards.

  • @lillithsleeps
    @lillithsleeps Год назад

    Veronica help! Am I going crazy or did you take down a video you made on QEMU? Did I imagine you made a video that you didn't?

    • @lillithsleeps
      @lillithsleeps Год назад

      nevermind! It didn't show up on your videos page on your profile but I see youtube suggested it for me just now 🤣

  • @forestsmills
    @forestsmills Год назад

    I always setup an alias so that 'ls' actually runs ls -a. I hate getting tricked into thinking that some file I need doesn't exist.

  • @grandgab
    @grandgab Год назад +1

    I hope there will be some more video in the Lil' Linux Lesson!

  • @david486038
    @david486038 Год назад

    You really are such a great teacher. Thankyou for these videos!

    • @VeronicaExplains
      @VeronicaExplains  Год назад

      Thank YOU for the support! I very much appreciate it!

  • @jugnu361
    @jugnu361 Год назад

    LS -LAR

    • @Benoit-Pierre
      @Benoit-Pierre Год назад +1

      LS command not found.
      linux is case sensitive.

  • @JoanDoe-pq5fu
    @JoanDoe-pq5fu Год назад

    Homage to Zack freedman?