“Как получить размер файла в Linux” Ответ

размер файла Linux

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

Как получить размер файла в Linux

du -sh filename # gives size of filename
Attractive Anteater

Как проверить размер файла в 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

Найдите размер файла в 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

Ответы похожие на “Как получить размер файла в Linux”

Вопросы похожие на “Как получить размер файла в Linux”

Больше похожих ответов на “Как получить размер файла в Linux” по Shell/Bash

Смотреть популярные ответы по языку

Смотреть другие языки программирования