함수 filesize

filesize
os.path.getsize

1 Bash[ | ]

stat -c%s /etc/hosts
ls -l /etc/hosts | awk '{print $5}'
du -b /etc/hosts | awk '{print $1}'

2 PHP[ | ]

echo filesize('/etc/hosts');

3 Python[ | ]

import os
print( os.path.getsize('/etc/hosts') )

4 Perl[ | ]

print -s '/etc/hosts';

5 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}