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 - Наука та технологія
For Fedora users. There's 'messages' file log instead 'syslog' in our distro. Just thought it'd be helpful.
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!
"You and I both know ... but that doesn't matter"
This sums up all of customer service.
I laughed. This is my mom with literally any account on any device that uses electricity.
Your content quality has improved drastically since the time we met! Great work sir.
I learn new things every time I see your videos ... -f is so cool!! ♥
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!
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.
This trick with extra Enters on tail -f is very useful, thanks!
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!
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
Thanks as always Jay!
great video as always Jay
Thanks Jay! I always enjoy your content.
I have really been enjoying this series.
Great work! Thank you
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.
Good coin!
Thanks Jay.
I love these videos
Thanks.
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.
Noooo. Thank you for these amazing tuts
Does Linode support nested virtualization?
I have a question on the 'lines'.
Are those lines an established permanent length or can 1 'line' go on-&-on?
"lines" are delimited by the newline characters in the files, so lines are of arbitrary length (could be 10, 100, 1000 characters or whatever).
Food for algorithm ;-)
Between head and tail are more or less...
The ninja turtles game is pretty good fyi ;)
I couldn't make heads or tails of what you were talking about 😅
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 😵💫
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