在我的软件遇到一些崩溃问题后,我重新安装了系统。我有一个单独的/和/home
当我跑步时,df -h我获得:
root@sougata-SATELLITE-L750:/home# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 29G 3.8G 23G 15% /
udev 2.0G 4.0K 2.0G 1% /dev
tmpfs 402M 860K 401M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 2.0G 22M 2.0G 2% /run/shm
/dev/sda6 558G 182G 348G 35% /home
Run Code Online (Sandbox Code Playgroud)
它显示我在主文件夹中使用了 182 GB,但我在主文件夹中的任何地方都找不到这些文件。那么我跑ls -l /home
root@sougata-SATELLITE-L750:/home# ls -l /home
total 96
drwx------ 2 sougata sougata 16384 Oct 10 2012 lost+found
drwxr-xr-x 30 sougata sougata 4096 Aug 16 11:27 sougata
drwxr-xr-x 54 sougata sougata 73728 Aug 9 08:31 sougatapc
Run Code Online (Sandbox Code Playgroud)
这些文件是否保存在/lost+found文件夹中?
ls -l /home
Run Code Online (Sandbox Code Playgroud)
向您显示有 2 个用户 -sougata和sougatapc. 他们每个人都会有子目录在其中,例如Downloads,Documents,Pictures等,您可以通过上市,ls -l /home/sougata。您的文件存储在这些子目录中,很可能不会丢失。
要更好地分析您的磁盘,请使用Disk Usage Analyzer,这将为您提供磁盘使用情况的图形视图。