“Jak uzyskać rozmiar pliku w Linux” Kod odpowiedzi

Rozmiar pliku Linux

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

Jak uzyskać rozmiar pliku w Linux

du -sh filename # gives size of filename
Attractive Anteater

Jak sprawdzić rozmiar pliku w 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

Znajdź rozmiar pliku w 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

Odpowiedzi podobne do “Jak uzyskać rozmiar pliku w Linux”

Pytania podobne do “Jak uzyskać rozmiar pliku w Linux”

Więcej pokrewnych odpowiedzi na “Jak uzyskać rozmiar pliku w Linux” w Shell/Bash

Przeglądaj popularne odpowiedzi na kod według języka

Przeglądaj inne języki kodu