I want to know if there is any unix command to view the size of the file?
eg.
i have a directory letter
in this i have file a,b,c,d,e.
i just want to know the size of file d and not any other.
I want to know if there is any unix command to view the size of the file?
eg.
i have a directory letter
in this i have file a,b,c,d,e.
i just want to know the size of file d and not any other.
ls -l d
Isolating just the file size is a bit of a challenge. The output from ls also depends on your locale etc; there really ought to be a separate command for getting a file's size in computer-friendly form.
thanks for your reply
Can you provide some pointer to that challenge :o.
I really need that answer
check if this works for you:
ls -l filename | awk '{print $5}'
also check that stat command