“Como obter o tamanho de um arquivo no Linux” Respostas de código

Tamanho do arquivo Linux

cd dir ; du -hsx * | sort -rh | head -20 
# example output
# 300MB    some_backup_file.log
# 1.8GB    some_huge_file.war
Grumpy Gemsbok

Como obter o tamanho de um arquivo no Linux

du -sh filename # gives size of filename
Attractive Anteater

Como verificar o tamanho do arquivo no Linux

ls -l filename   #Displays Size of the specified file
ls -l *          #Displays Size of All the files in the current directory
ls -al *         #Displays Size of All the files including hidden files in the current directory
ls -al dir/      #Displays Size of All the files including hidden files in the 'dir' directory
David Cao

Encontre o tamanho do arquivo no Linux

ls -l filename   #Displays Size of the specified file
ls -l *          #Displays Size of All the files in the current directory
ls -al *         #Displays Size of All the files including hidden files in the current directory
ls -al dir/      #Displays Size of All the files including hidden files in the 'dir' directory
Yawning Yacare

Respostas semelhantes a “Como obter o tamanho de um arquivo no Linux”

Perguntas semelhantes a “Como obter o tamanho de um arquivo no Linux”

Mais respostas relacionadas para “Como obter o tamanho de um arquivo no Linux” em Shell/Bash

Procure respostas de código populares por idioma

Procurar outros idiomas de código