cd /usr/local/directadmin/data/admin
echo -n “” > tickets.list
保留最近500封
cp tickets.list tickets.list.backup
tail -n 500 tickets.list.backup > tickets.list
rm tickets.list.backup
cd /usr/local/directadmin/data/admin
echo -n “” > tickets.list
保留最近500封
cp tickets.list tickets.list.backup
tail -n 500 tickets.list.backup > tickets.list
rm tickets.list.backup
评论前必须登录!
注册