linux 存储
Last updated on November 22, 2024 pm
🧙 Questions
Linux文件存储相关的操作
☄️ Ideas
查看文件夹占比
df
查询文件夹下各个文件夹使用情况
binlog中的数据可能会非常大
sudo du -h --max-depth=1 /var/log
原始磁盘目录
4.0K /mnt
140K /root
4.0K /home
148M /boot
144M /var
0 /sys
4.0K /srv
468K /run
4.0K /media
du: cannot access '/proc/1496/task/1496/fd/3': No such file or directory
du: cannot access '/proc/1496/task/1496/fdinfo/3': No such file or directory
du: cannot access '/proc/1496/fd/4': No such file or directory
du: cannot access '/proc/1496/fdinfo/4': No such file or directory
0 /proc
4.0K /opt
1.7G /usr
0 /dev
16K /lost+found
32K /tmp
36M /etc
2.0G /
文件软连接
Note:
一定要是全路径地址
# sudo ln -s /var/lib/clickhouse/store /data/clickhouse/store
sudo ln -s ${sourcePath} ${targetPath}
查看部分文件内容
dd if=demo.txt of=out.txt skip=0 ibs=1 obs=1 count=1024
docker overlay2 爆炸
# 谨慎使用,他会将所有未使用的镜像全部删除
docker system prune -a
🔗 Links
linux 存储
https://ispong.isxcode.com/os/linux/linux 存储/