Home > Backend Development > PHP Tutorial > Commands to clear file contents and count file sizes, clear statistics_PHP tutorial

Commands to clear file contents and count file sizes, clear statistics_PHP tutorial

WBOY
Release: 2016-07-12 09:02:16
Original
1014 people have browsed it

Command to clear file contents and file size statistics, clear statistics

Clear file contents: 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

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/1086212.htmlTechArticleCommand to clear the contents of the file and count the size of the file, clear the statistics and clear the contents of the file: true file name (or echo file name) Statistics file size: du -h --max-depth=...
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 Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template