How to see the directory size in Linux with command line

In this Video we cover the du command. du estimate’s the file space usage

First we look at the du mange page and then we cover some real world examples

Use du to list files size

du [file]

Make du human readable

du -h

Use du to list directory size (summarize)

du -sh /home

Use du to summarize directory’s under a parent

du -h –max-depth=1 /etc

Du one file system

du -sxh /mnt

Exclude files from du

du –exclude=’*.gz’

How to see file system disk usage from command line in Linux

In this video we cover the df command. DF reports file system disk space usage. DF differs from du because it looks at the file system and not files or directories.

We look at the man page for df and then we do some examples and what the output means

List disk usage on all file systems

df -a

Df human readable

df -h /

Use DF to check inodes

df -i

Show only local filesystems

df -hl

Linux ls command

In this video I go over the most important command in Linux which is the ls command. Ls is how to list directory content.

 

First we look at the ls man page.  then we go over some ls examples

Ls show hidden file (all)

ls -a

Ls long listing

ls -l

Ls recursive

ls -lR

Ls human readable file sizes

ls -hs

Sorting by size with ls

ls -AlhS

Shoring by size in reverse

ls -AlhSr

Sorting by modified time with ls

ls -Alt

Workstation build

I wanted to build a new workstation for video editing and opensource fun. I didn’t realize the the RYZEN processor does not support on board video but after installing a motherboard speaker and contacting ASUS through online chat I ordered a GTX 1050 Ti video card and success.

 

In this build I use:

AMD RYZEN 5 1600 6-Core 3.2 GHz

G.SKILL Flare X Series 16GB (2 x 8GB) 288-Pin DDR4 SDRAM DDR4 2400 (PC4 19200)

ASUS PRIME B350-PLUS Motherboard

GIGABYTE GeForce GTX 1050 Ti

Seagate 4TB BarraCuda SATA 6Gb/s 256MB Cache

ROSEWILL Gaming 80 Plus Gold 650W Power Supply

Corsair Carbide Series 270R – Mid-Tower ATX Case

EDUP Wireless Usb Adapter 5.8GHz/2.4GHz Dual Band