• Pular para navegação primária
  • Skip to main content

Celso Bessa

Prefiro construir pontes a muros

  • Home
  • Sobre
  • Projetos e Sites
  • Blog
Você está em: Home / blog / Linux/MacOs tip: use du to check folder and files sizes (disk usage)

Linux/MacOs tip: use du to check folder and files sizes (disk usage)

29 dezembro, 2020 por Celso Bessa

Whenever you are using terminal on Unix, Linux and MacOs and need to check the amount of space used by a folder or files, you can use the `du` command:

// basic use. Gives the size in bytes of all files and folders in the folder you are in
du

// gives the size in "human readable" units like kilobytes, megabytes, gigabytes of all files and folders.
du -h

// gives an one line summary of the space occupied by all files and folders
du -s

// combines human readable and summary options
du -hs

Arquivado em: blog Marcados com as tags: Linux, MacOs, technology, tecnologia

Celso Bessa

Prefiro construir pontes à muros. Cidadão, desenvolvedor, cientista de dados. Fellow de tecnologia Media Democracy Fund e fundador da WoWPerations.

Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International (exceto fotografias com produto de terceiros ou pessoas)
Hospedado e otimizado pela WoWPerations