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
http://www.bkjia.com/PHPjc/1086212.htmlwww.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=...