![]() |
newbie: how to see the size of file under bash?
hi, i "thought" by issuing: ls -s -h would allow me to see of size of the file in that directory.
but this morning, when i used the GUI interface, the file size i have in bash is diff then the one i got in GUI for example, if i do: ls -s -h 400K myfile under GUI, right click icon, Properties: 78MB i must not fully understand what "man ls" meant when it gives option such as -h and -s so how to see the size of the file using bash? :) thank you |
Quote:
dont' right click the Icon......go to directory it is in and right click the file |
thank you, but if i wanna know the size of the directory in bash, what is the command?
say ls i have 2 folders in this directory: folder1 and folder2. i'd like to see size of folder1 without cd into it, how can that be done in bash? thank you for help.... |
Use du
Example Code:
du -h /home/user1 |
| All times are GMT -5. The time now is 08:52 AM. |