Home > php教程 > php手册 > body text

Commands to clear file contents and count file sizes

WBOY
Release: 2016-07-06 13:30:48
Original
1250 people have browsed it

Clear the contents of the file: true File name (or echo file name) Statistics file size: du -h --max-depth=1 /usr/local/nginx/logs/* (* means in the logs folder All files) Statistics folder size: du -sh folder

Clear the contents of the file: true > file name (or echo “” > file name)

Statistical file size: du -h --max-depth=1 /usr/local/nginx/logs/* (* indicates all files in the logs folder)

Statistics folder size: du -sh folder


Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template