함수 filesize

Jmnote bot (토론 | 기여)님의 2020년 11월 2일 (월) 02:32 판 (봇: 자동으로 텍스트 교체 (-source +syntaxhighlight))
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 }}