CentOS回收站大小设置方法如下:
sudo yum install trash - cli
。~/.bashrc
或~/.bash_profile
中添加export TRASH_MAX_SIZE=100M
(示例值,可按需调整),然后source ~/.bashrc
。/etc/trash.conf
或~/.trashrc
,添加或修改max_size = 100M
。sudo yum install quota
。/etc/fstab
,为相关分区添加x - gvfs - trash - max - size=1073741824
(示例为1GB,以字节为单位)等选项,然后sudo mount - o remount /
。