“Comment obtenir la taille d'un fichier dans Linux” Réponses codées

Taille du fichier Linux

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

Comment obtenir la taille d'un fichier dans Linux

du -sh filename # gives size of filename
Attractive Anteater

Comment vérifier la taille du fichier dans 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

Trouvez la taille du fichier dans 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

Réponses similaires à “Comment obtenir la taille d'un fichier dans Linux”

Questions similaires à “Comment obtenir la taille d'un fichier dans Linux”

Plus de réponses similaires à “Comment obtenir la taille d'un fichier dans Linux” dans Shell/Bash

Parcourir les réponses de code populaires par langue

Parcourir d'autres langages de code