명령어 등등

du -sh / du -bsh 파일 용량 찾는 명령어

mcdn 2022. 5. 27. 14:24
반응형

https://stackoverflow.com/questions/11720079/linux-command-to-get-size-of-files-and-directories-present-in-a-particular-folde

 

linux command to get size of files and directories present in a particular folder?

How can I see the size of files and directories in Linux? If use df -m, then it shows the size of all the directory at the top level, but, for the directories and files inside the directory, how do I

stackoverflow.com

du -sh directory_name    #Gives you the summarized(-s) size of the directory in human readable(-h) format
du -bsh *                #Gives you the apparent(-b) summarized(-s) size of all the files and directories in the current directory in human readable(-h) format

du -sh directory_name     

du -bsh *                

 

알아두자 명령어

이렇게 쓰임 

반응형