• Pular para navegação primária
  • Skip to main content
  • Home
  • Sobre/About
  • Projetos
  • Fotografia
  • Blog
    • Feed/RSS
  • Boletim/Newsletter
    • Humanist Techology Newsletter
    • Boletín Tecnología Humanista
    • Boletim Tecnologia Humanista

Celso Bessa (sɛwsʊ bɛ:sa)

Prefiro construir pontes a muros

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

Sobre Celso Bessa

Prefiro construir pontes à muros. Cidadão, desenvolvedor,Media Democracy Fund fellowship alumni e fundador da WoWPerations.

Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International (exceto fotografias com produto de terceiros ou pessoas)
Otimizado pela WoWPerations e hospedado na Digital Ocean
(Assinando Digital Ocean através deste link do programa indicação, você ganha crédito de 100 dólares para serem utilizados em até 60 dias, e eu ganho uma pequena comissão)