Linux Crash Course - The df and du Commands

  Рет қаралды 31,126

Learn Linux TV

Learn Linux TV

Күн бұрын

Пікірлер: 68
@davelamont
@davelamont 2 жыл бұрын
Your videos are always teaching me more about Linux. Keep em coming and I will keep watching and learning. Thanks for all you do.
@soubinan
@soubinan 2 жыл бұрын
Thank you for this video :) There is also the so useful du command with the threshold option to filter only bigger files `du -h -t 100M /tmp/*` for example to show only files greater than 100MB in /tmp
@LearnLinuxTV
@LearnLinuxTV 2 жыл бұрын
Thanks for the tip!
@lawrencedoliveiro9104
@lawrencedoliveiro9104 2 жыл бұрын
5:00 actually gibibytes. You need “-H” for decimal multiples, “-h” for binary.
@predragnikolic1259
@predragnikolic1259 2 жыл бұрын
Thanks!
@omaralhalboosi2713
@omaralhalboosi2713 2 жыл бұрын
You are amazing sir, thank you from my heart for making it so clear and understandable.. all respect to you and the family from Chicago 🇺🇸
@MT-er6tl
@MT-er6tl 2 жыл бұрын
Maksunnserjf
@mason8714
@mason8714 2 жыл бұрын
love learning new things from this channel - you are doing a great job Jay
@anandus3174
@anandus3174 2 жыл бұрын
I'm a linux admin who always use du -sch * inside /var/log to find disk consuming logs. I didn't know the meaning of s & c switches 😅😅
@d00dEEE
@d00dEEE 2 жыл бұрын
Ha ha, I do the same thing. I've got a bunch of commands that I use with switches that I just type from habit, probably looked them up decades ago, but forgot since then. 'netstat -tunlp' and 'ps -ealf' come to mind right away. I think I'll go man them now.
@anandus3174
@anandus3174 2 жыл бұрын
@@d00dEEE yup. I use netstat -ntpl ps aux 😅😅
@maxdiamond55
@maxdiamond55 3 ай бұрын
Nice Segway into the pop os review when you plugged in the usb key Jay
@JayantBB78
@JayantBB78 2 жыл бұрын
Wow. Another right to point, no nonsense video. Love your videos. Keep posting.
@lawrencedoliveiro9104
@lawrencedoliveiro9104 2 жыл бұрын
8:07 You can specify the -x option multiple times, if you want to exclude more than one filesystem type from the listing. For example, on my Debian system, I have a filesystem of type “devtmpfs” mounted on /dev.
@bw_merlin
@bw_merlin 2 жыл бұрын
This was super awesome and super helpful. Please keep this kind of content up.
@auto117666
@auto117666 2 жыл бұрын
Good stuff. I always learn something new about these 40 year old command line utils from this channel. :)
@BDBD16
@BDBD16 2 жыл бұрын
30 Years as Linux was released 1991, if we are talking true Unix, try more like 50 years.
@shallex5744
@shallex5744 2 жыл бұрын
@@BDBD16 possibly older than 30 if the commands were made for the GNU system before Linux came along
@BDBD16
@BDBD16 2 жыл бұрын
@@shallex5744 I see what you did there you little daemon.
@shallex5744
@shallex5744 2 жыл бұрын
@@BDBD16 i don't think i did anything
@JohnBortins
@JohnBortins 2 жыл бұрын
Outstanding!
@ciobysv23
@ciobysv23 2 жыл бұрын
Regarding the output of the df -hT command is worth to mention that when using ext4, as the filesystem by default, 5% of the blocks will be reserved for the super-user, to avoid fragmentation and if we sum the output of the columns Used + Avail the value will be different from what's displayed in the Size column. (445 GB in this case) and the remaining 23 GB up to the displayed size of 468 GB is in fact the 5% reserved space. This reservation can be adjusted with the help of the tune2fs command.
@lawrencedoliveiro9104
@lawrencedoliveiro9104 2 жыл бұрын
11:58 Actually mebibytes. And unlike the df command, you add “--si” to ask for decimal units. (Calling them “SI” units is misleading, since the binary multipliers are also defined by SI.)
@DL-xf3ur
@DL-xf3ur 2 жыл бұрын
Thanks as always Jay. Excellent.
@gauravsrivastava17
@gauravsrivastava17 2 жыл бұрын
Learning Linux will be so easy with these videos
@chillnacho
@chillnacho 2 жыл бұрын
I love this crash course series.
@TheInternetFan
@TheInternetFan 9 ай бұрын
so grateful for this video. I had a '/' directory that was 93% full. Gave the : du -sm / and it was hanging. I guess --max-depth 1 could have helped navigate the filesys in order to pin point which subdirectory was too heavy. thank you for teaching me this switch.
@srb1855
@srb1855 2 жыл бұрын
excellent and very informative video - particularly the exclude option for df ... and the max depth option for du. 👍
@lawrencedoliveiro9104
@lawrencedoliveiro9104 2 жыл бұрын
15:28 And here’s another feature of using du on multiple directories: what happens when one directory is contained within another? For example, my current directory contains source code for some programming project. It also has a .git subdirectory containing the Git commit history for that project. If I do du -ks .
@lawrencedoliveiro9104
@lawrencedoliveiro9104 2 жыл бұрын
that will show me the total usage for the entire directory. But if I do du -ks .git . now something wonderful happens: it first reports the usage for the .git subdirectory, then it shows the usage for the source directory _minus that of the .git subdirectory_ . So I see just the size of the current source tree, not including the commit history.
@Enes-ho2rb
@Enes-ho2rb 2 жыл бұрын
This is really awesome tutorial. Great work man.
@NekoiNemo
@NekoiNemo 2 жыл бұрын
Thank you for mentioning ncdu. For some reason it's not mentioned often, especially to new users, and it's so much better for interactive use than just plain du. I wish somebody has told me about it years ago when i just started using linux
@HopliteSecurity
@HopliteSecurity 2 жыл бұрын
This was a game changer! Thank you so much for this amazing video and keep up the fantastic work ❤
@d00dEEE
@d00dEEE 2 жыл бұрын
Thanks for the reminder about ncdu! I was thinking "what's that tui-based du that sorts by size?" for most of the video, but couldn't remember what it was called.
@anthonychaple3031
@anthonychaple3031 2 жыл бұрын
Great video man 👍🏻. Hey would you consider making a video simulating the RHCSA exam? This series would compliment that perfectly and honestly all other videos i can find simulating the RHCSA exam are very low quality, i think one from you would help a lot of people. Thanks beforehand
@carlallison9530
@carlallison9530 2 жыл бұрын
Great teaching as usual the way you have mastery of the command line and how you move and insert different commands is a teaching within its self. please consider and do a teaching on how you move letters and commands and insert different commands with ease because to a newbie it's difficult to understand how you do what you do.
@ArniesTech
@ArniesTech 2 жыл бұрын
Thanks as always for the informative content 💪🙏
@wanak5795
@wanak5795 2 жыл бұрын
thank you you are great teacher
@LearnLinuxTV
@LearnLinuxTV 2 жыл бұрын
Thank you! 😃
@sairak3514
@sairak3514 2 жыл бұрын
Thank you so much!
@KyronG55
@KyronG55 9 ай бұрын
I always facing problem of getting / of getting 100% full. but unable to find exactly what directories or miunt point in / directories.
@janis.eglitis
@janis.eglitis 2 жыл бұрын
There's also a "gdu" command which you can install `sudo apt install gdu`.
@undergrounder
@undergrounder 2 жыл бұрын
Thank you!
@mihai6564
@mihai6564 7 ай бұрын
thanks for the video
@cleightthejw2202
@cleightthejw2202 2 жыл бұрын
about the 'root drive'- if there are multiple drives is there only 1 that is root over all of them or is it ''root' from each drive? What would make it the 'root'? The fact that is it the initial and 'over all' controlling point that allows access to pretty much (if not) everything else? Also, what is a 'bootable' usb? Are al usb's bootable or no? If not, why not? What are instances of the differences- especially the bootable usb?? Maybe you have vids on these already. I'm not aware of them if they do exist (obviously).
@bellatrix625
@bellatrix625 2 жыл бұрын
There is always one root directory in a linux system. If you have multiple drives with Linux installed then you will have multiple root directories in corresponding drives. And if you want to use it in one linux system then you need to mount it there as normal directory/file and this directory acts as root for that mounted drive.
@jasonthomas5647
@jasonthomas5647 2 жыл бұрын
I installed 22.04 with standard “use entire disk” on my 170G SSD and df-H command says half of it is 100% full and I can’t acces the rest! I lonly have xfcedesktop and a few small programs running and it says it’s taking up 77G! No way! Now I can’t upgrade my system because it says there’s no more room. Something’s not right. How do I access the rest of the 80G and how do I clear out the bloat? I’m tempted to scrap the whole thing and start over!
@cyberhifi2629
@cyberhifi2629 2 жыл бұрын
I think I am the first viewer of this video🙂🙂
@madebytl
@madebytl 2 жыл бұрын
You are my g
@asdf51501
@asdf51501 2 жыл бұрын
Good commands to know.
@KR1ML0N
@KR1ML0N 2 жыл бұрын
Could you not just use ./ for current dir?
@fazzanimohsen320
@fazzanimohsen320 2 жыл бұрын
gooooooooood
@SteveMacSticky
@SteveMacSticky 2 жыл бұрын
thanks very much
@10lauset
@10lauset 2 жыл бұрын
.. Cheers to you. ..
@benmcwhirter4566
@benmcwhirter4566 2 жыл бұрын
Thanks. I just yeeted 24G from my home directory that I didn't no was there.
@rursus8354
@rursus8354 2 жыл бұрын
*Kernel panic!* (Perhaps once or twice a year)
@TheFartfish
@TheFartfish 2 жыл бұрын
Food for algorithm ;-)
@BobDoe_69
@BobDoe_69 2 жыл бұрын
nice
@BMcC78
@BMcC78 2 жыл бұрын
Jay, the boring linux guy... this is great to fall asleep to.
@BashirAhmed-uh9pp
@BashirAhmed-uh9pp 2 жыл бұрын
The good Device
@khawarbaig2074
@khawarbaig2074 2 жыл бұрын
i really like it from pakistan
@homelemon2579
@homelemon2579 2 жыл бұрын
平衡
@restfulchest
@restfulchest 3 ай бұрын
Young Amy Lewis Amy Miller Donald
@kennyroostam290
@kennyroostam290 2 жыл бұрын
why du -h - -max-depth 1 /home/jay shows more folders than sudo du -hsc /home/jay*?
@simonsonjh
@simonsonjh 2 жыл бұрын
The -x option isn't much use on ZFS systems showing filesystems such as "rpool/USERDATA/simonson_mn5ygm"
@ManojKumarVishwas
@ManojKumarVishwas Жыл бұрын
du -h -d1 /var/
@fordprefect7779
@fordprefect7779 2 жыл бұрын
Thanks!
Modernize your Linux Storage with btrfs!
46:34
Learn Linux TV
Рет қаралды 156 М.
Demystifying the Top Command in Linux | Linux Crash Course Series
27:08
Quando A Diferença De Altura É Muito Grande 😲😂
00:12
Mari Maria
Рет қаралды 42 МЛН
Tuna 🍣 ​⁠@patrickzeinali ​⁠@ChefRush
00:48
albert_cancook
Рет қаралды 135 МЛН
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 55 МЛН
Linux Crash Course - Understanding Logging
29:10
Learn Linux TV
Рет қаралды 53 М.
Linux Command-Line Tips & Tricks: Over 15 Examples!
31:37
Learn Linux TV
Рет қаралды 222 М.
What is $PATH on a Linux Shell? (The Linux Crash Course Series)
21:52
Learn Linux TV
Рет қаралды 36 М.
Linux Crash Course - sudo
26:11
Learn Linux TV
Рет қаралды 71 М.
Linux Crash Course - The head and tail Commands
18:00
Learn Linux TV
Рет қаралды 12 М.
Linux Crash Course - Formatting & Mounting Storage Volumes
32:28
Learn Linux TV
Рет қаралды 265 М.
Linux Crash Course - Understanding File & Directory Permissions
35:48
Learn Linux TV
Рет қаралды 121 М.
Linux Crash Course - The ps Command
15:19
Learn Linux TV
Рет қаралды 50 М.
Choosing the Right Browser for Linux: Pros & Cons of Popular Options
15:26
Секрет Моего ПК
1:00
George
Рет қаралды 843 М.
Organize Your Home With These Must-Have Smart Gadgets #shorts  Pt-2
0:22
ТРЕШОВЫЙ ПК С WB ЗА 16 тысяч рублей
26:33
Ремонтяш
Рет қаралды 361 М.