Linux Crash Course - The head and tail Commands

Поділитися
Вставка
  • Опубліковано 20 лип 2024
  • In the Linux Crash Course series, we'll go over one important foundational Linux topic each episode. This series includes tutorials, demonstrations, and more! In this episode, the head and tail commands are both covered. These commands enable you to view the first and last ten lines of a file. But there's also some additional functionality that we'll explore in this video as well.
    Thanks to Linode for sponsoring the Linux Crash Course series! Check out their Linux-focused cloud platform and spin up your own Linux server ➜ learnlinux.link/akamai
    🎓 BRAND NEW UDEMY COURSES AVAILABLE!
    Check out my new courses on Udemy and take your learning even further!
    • Getting Started with Ansible: Automation Made Easy ➜ learnlinux.link/ansible
    • LPI Linux Essentials Complete Course & Workshop ➜ learnlinux.link/linux-essentials
    🐧 SUPPORT LINUX LEARNING!
    • Grab some Linux swag ➜ merch.learnlinux.tv
    • Become a Channel Member ➜ learnlinux.link/member
    • Become a Patron ➜ learnlinux.link/patron
    • 5% discount on LPI exam vouchers ➜ learnlinux.link/lpi-voucher
    • Check out my latest book ➜ ubuntuserverbook.com
    • Grab an awesome Pi-powered KVM ➜ learnlinux.link/tinypilot
    • Jay's Gear - Server, Computer and Video Production Stuff ➜ learnlinux.link/amazon
    Note: Royalties and/or commission is earned from each of the above links
    ⏰ TIME CODES
    00:00 - Intro
    01:50 - Linode
    03:39 - Basic usage of the head command
    05:33 - Basic usage of the tail command
    08:21 - Viewing a different number of lines with the head and tail commands
    09:24 - Combining the head and tail commands with other commands
    12:03 - Following log files with the tail command*🎓 FULL LINUX COURSES FROM LEARN LINUX TV*
    • Linux Crash Course ➜ linux.video/cc
    • Learn tmux ➜ linux.video/tmux
    • Learn vim ➜ linux.video/vim
    • Bash Scripting Series ➜ linux.video/bash
    • Proxmox VE ➜ linux.video/pve
    • Getting Started with Ansible (Udemy) ➜ learnlinux.link/ansible
    • LPI Linux Essentials Workshop (Udemy) ➜ learnlinux.link/linux-essentials
    🌐 LEARN LINUX TV ON THE WEB
    • Main site ➜ www.learnlinux.tv
    • Community ➜ community.learnlinux.tv
    • Official Github Account ➜ github.com/LearnLinuxTV
    • Enterprise Linux Security Podcast ➜ enterpriselinuxsecurity.show
    • The Homelab Show Podcast ➜ thehomelab.show
    • Jay on Udemy ➜ www.udemy.com/user/jay-lacroix-3
    • Jay on Twitter ➜ x.com/JayTheLinuxGuy
    • Content Ethics ➜ www.learnlinux.tv/content-ethics
    • Request Assistance ➜ www.learnlinux.tv/request-ass...
    ⚠️ DISCLAIMER
    Learn Linux TV provides technical content that will hopefully be helpful to you and teach you something new. However, this content is provided without any warranty (expressed or implied). Learn Linux TV is not responsible for any damages that may arise from any use of this content. Always make sure you have written permission before working with any infrastructure and that you are compliant with all company rules, change control procedures, and local laws.
    #Linux #LearnLinux #DevOps
  • Наука та технологія

КОМЕНТАРІ • 31

  • @greg_1992
    @greg_1992 2 роки тому +5

    For Fedora users. There's 'messages' file log instead 'syslog' in our distro. Just thought it'd be helpful.

  • @charlieelm8329
    @charlieelm8329 2 роки тому +3

    I have been loving these videos more and more, they are an incredibly concise and useful reference for a beginner like me. Command line ultilities are becoming such a familiar thing: I keep wondering just how much can be accomplished with just a handful of well directed input/output streams. I can't wait for more!

  • @arootube
    @arootube 2 роки тому +1

    "You and I both know ... but that doesn't matter"
    This sums up all of customer service.

    • @deanwhite8413
      @deanwhite8413 14 днів тому

      I laughed. This is my mom with literally any account on any device that uses electricity.

  • @thesyedhub
    @thesyedhub 2 роки тому +1

    Your content quality has improved drastically since the time we met! Great work sir.

  • @arkoprovo1996
    @arkoprovo1996 2 роки тому +1

    I learn new things every time I see your videos ... -f is so cool!! ♥

  • @AriannaEuryaleMusic
    @AriannaEuryaleMusic 2 роки тому +1

    I love your videos, I have learned so much from them, to me this is the Best Learning Linux channel, very complete, concise and clear... Thank You!

  • @adiposerex5150
    @adiposerex5150 2 роки тому +1

    Thank you, Mr. Jay. Now I want to buy a Linux laptop. I probably could use the head and tail command on my MacBook, but I like to tinker.

  • @Romek_S
    @Romek_S 2 роки тому +1

    This trick with extra Enters on tail -f is very useful, thanks!

  • @12Q46HPRN
    @12Q46HPRN 2 роки тому

    Outstanding video as always! I've used the basic head/tail command in the past, but was not aware of the -f option. I also learned about the syslog and auth.log files. Thanks for all of that!

  • @DommageCollateral
    @DommageCollateral Місяць тому

    thanks for making this. i just setup foreman and it was terrible but i learned a lot. you content was an amazing help. please dont stop. i just started my linux journey about 7-8 months ago and i reaaaally love linux. but its also different and terminals can suck (sometimes i just wanna code). I need some sort of guideline about what to learn, because sometimes it can get sooo overwelming, for example when i couldnt get k8s to run because i didnt had a static hostname and it created new nodes everytime i booted my machine. and i have not even started to learn iptables..... :D

  • @DL-xf3ur
    @DL-xf3ur 2 роки тому

    Thanks as always Jay!

  • @sussusamogus7831
    @sussusamogus7831 10 місяців тому

    great video as always Jay

  • @portfedh
    @portfedh 2 роки тому

    Thanks Jay! I always enjoy your content.

  • @bw_merlin
    @bw_merlin Рік тому

    I have really been enjoying this series.

  • @13thravenpurple94
    @13thravenpurple94 Рік тому

    Great work! Thank you

  • @ivanetinajero
    @ivanetinajero 2 роки тому +1

    Great Content. It will be useful if you can make a video only explaining the most important log files for different services in Ubuntu. It will be awesome for solving problems.
    Regards from Mexico.

  • @kychemclass5850
    @kychemclass5850 2 роки тому

    Good coin!
    Thanks Jay.

  • @michaelplaczek9385
    @michaelplaczek9385 2 роки тому

    I love these videos

  • @deanwhite8413
    @deanwhite8413 14 днів тому

    Thanks.

  • @send2gl
    @send2gl 2 роки тому

    That was interesting, used Linux for around 10 years and never knew of head command. Not sure how useful it is though. The multiple pipe option is useful.

  • @v4gab0ndINNIT
    @v4gab0ndINNIT 2 роки тому +1

    Noooo. Thank you for these amazing tuts

  • @kjakobsen
    @kjakobsen 2 роки тому

    Does Linode support nested virtualization?

  • @cleightthejw2202
    @cleightthejw2202 2 роки тому

    I have a question on the 'lines'.
    Are those lines an established permanent length or can 1 'line' go on-&-on?

    • @d00dEEE
      @d00dEEE 2 роки тому +2

      "lines" are delimited by the newline characters in the files, so lines are of arbitrary length (could be 10, 100, 1000 characters or whatever).

  • @TheFartfish
    @TheFartfish 2 роки тому

    Food for algorithm ;-)

  • @d00dEEE
    @d00dEEE 2 роки тому +1

    Between head and tail are more or less...

  • @christopherjackson2157
    @christopherjackson2157 2 роки тому +1

    The ninja turtles game is pretty good fyi ;)

  • @SteveMacSticky
    @SteveMacSticky 2 роки тому

    I couldn't make heads or tails of what you were talking about 😅

  • @robertopontone
    @robertopontone 2 роки тому +2

    great content, thank you so much, but please PLEASE stop changing camera at every sentence: it is like being on a boat during a storm 😵‍💫

  • @NekoiNemo
    @NekoiNemo 2 роки тому

    The whole video i was waiting for that "it will help you make heads or tails of your logs" joke, and it never came. My disappointment is immeasurable and my day is ruined