Linux Crash Course - The lsof Command

preview_player
Показать описание
In the Linux Crash Course series, you'll learn all the skills you'll need to become a seasoned Linux Administrator, one video at a time! In this episode, we'll take a look at the lsof command, which you can use to view open files on your Linux server or workstation. This is definitely a very useful command, so don't miss out!

Thanks to Akamai for sponsoring today's video!

*💬 CHECK OUT OUR FORUMS*
Have a Linux question? Want to share a tip? Or maybe just hang out?

*👕 GRAB SOME LINUX SWAG!*

*🐧 SUPPORT LINUX LEARNING!*
_Note: Royalties and/or commission is earned from each of the above links_

*⏰ TIME CODES*
00:00 - Intro
02:15 - Akamai
03:41 - Basic usage of the lsof command
05:16 - Overview of the header columns of lsof output
12:09 - Filtering the output of the lsof command by user
14:49 - Narrowing down the output of lsof by process
16:19 - Using the lsof command to find processes by process ID
17:11 - A real-world example of the lsof command in action!
19:59 - Excluding a user from the output of the lsof command
21:06 - Using the lsof command to view open files by IPv4 and IPv6 IP addresses

*Full Courses from Learn Linux TV*

*🌐 LEARN LINUX TV ON THE WEB*

*⚠️ DISCLAIMER*
LearnLinuxTV produces 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). LearnLinuxTV is not responsible for any damages that may arise from any use of the content and information that's being provided. The viewer is expected to follow best judgement and to make his/her/their best decisions while working with production or non-production software, systems and hardware.

#Linux #LinuxTutorial #DevOpsTutorial
Рекомендации по теме
Комментарии
Автор

One of the few tech youtuber who understand accessibility. I've seen many tech/programming youtubers showing a 4K screen with text elements that are not discernible or that requires a magnifier software in order to be seen.

cordovajose
Автор

Even regular desktop users need to know about the lsof command. Sometimes you run into a removable storage device that just won’t unmount.

OcteractSG
Автор

At 23:45. You say “-c to show ‘by process’ “ …. It would really helpful if you mentioned what the C stands for. Why didn’t they use - P for process. In Linux, I’m always asking the same question – what is the history behind that syntax? Where did this originate from? When questions like that are answered in my brain I can remember things much easier.

richardwalters
Автор

I primarily use it in development when I get that a port is already in use. I use it to f Ok and the process using the port. For example if I wanted to know the process using the port 4003, I use
"lsof -i :4003"

LoneWolf-hgix
Автор

It's often overlooked that everything in Linux is a file.

AlienResidents
Автор

sneaky jay the doxxer at the end 0___0
great video :)

sussusamogus
Автор

You don't need lsof to see which process is using which file.
Just write a C program which uses the getdents() system call, and go through the "/proc" directory.

djemietelminigeekandhacke
Автор

Thank you Jay, I appreciate your work

Dariodeath
Автор

I had one situation where the .xsession-errors file was taking up GBs of space on a Debian install. The lsof command was a godsend.

whiskeylinux
Автор

Even for a seasoned Linux tech I learned some stuff!

petercdejong
Автор

*Looks at your desk and thinks* "Edifiers, Ultrawide.. yep yep" *looks at your majesticly manscaped beard on that handsome face*... *looks at presentation and rest of your video portfolio*.. *nods approvingly and subscribes*... my wife started laughing seeing me do this.. I say "What?! I'm just a sucker for people with brains and good taste" 👍😎👍

hvanmegen
Автор

Thank you so much Jay. I do appreciate your work.

act..
Автор

Hey whats the wireless keyboard/trackpad combo you have? Im looking for something just like that but the ones i see are all garbage

Naeidea
Автор

init gives pid to any new command that runs?!? did I get transported to a different timeline without noticing?

protonjinx
Автор

Wasn't akamai around in the isp boom of the 90's, big player, hosting cache servers, firewalls and such products? Last mile buzzword..

over 30 years ago, I barely remember stuff

petevenuti
Автор

If you going to do a video on init systems, can you also on kernel modules?

petevenuti
Автор

hi thanks for your great clips but something i miss that i haven't seen is a way to be able to document all the smart commands and tips shown in your videos. saw that in a previous clip you showed how to set up gitlab. why not go ahead and show ex, template gitbook and be able to use it to document everything we get to learn in these courses.

Theborg
Автор

Thank you for these instructional videos. I'm learning how to navigate my Linux system from you. I'm primarily a gamer, but love to tinker, so your videos help me out a lot! Not to be off topic, but do you have a kit for your editing machine? Or do you edit with your recording machine? If so, what video card do you use?

flyinhawaiian
Автор

Hey that was my last comment on what your next video should be.

fsxspen
Автор

With only Firefox open I have 186962 open files. Browsers. 😆

peterjansen