小编Ten*_*ers的帖子

哪个目录占用的空间最多

Jenkins 已停止构建,我可以从 df 中看到:/var 已达到最大值。在此之后,我可以看到罪魁祸首是 /var/lib/jenkins

52K     alternatives
...
4.0K    games
2.3G    jenkins   <--this one
4.0K    logrotate.status
...
12M     yum
2.4G    total
Run Code Online (Sandbox Code Playgroud)

但是,当我进入 jenkins 目录查看哪个文件夹消耗了这 2.3GB 的大部分时,出现了一些奇怪的结果:

$ sudo du -csh *
16K     config.xml
0       Connection Activity monitoring to slaves.log
0       Download metadata.log
0       Fingerprint cleanup.log
7.3M    fingerprints
4.0K    hudson.maven.MavenModuleSet.xml
4.0K    hudson.model.UpdateCenter.xml
4.0K    hudson.scm.CVSSCM.xml
4.0K    hudson.scm.SubversionSCM.xml
4.0K    hudson.tasks.Ant.xml
4.0K    hudson.tasks.Mailer.xml
4.0K    hudson.tasks.Maven.xml
4.0K    hudson.tasks.Shell.xml
4.0K    hudson.triggers.SCMTrigger.xml
4.0K    identity.key.enc
4.0K    jenkins.diagnostics.ooom.OutOfOrderBuildMonitor
4.0K    jenkins.model.ArtifactManagerConfiguration.xml
4.0K    jenkins.model.DownloadSettings.xml
4.0K    jenkins.model.JenkinsLocationConfiguration.xml
4.0K    jenkins.mvn.GlobalMavenConfig.xml
4.0K    jenkins.security.QueueItemAuthenticatorConfiguration.xml …
Run Code Online (Sandbox Code Playgroud)

shell disk-usage filenames jenkins

5
推荐指数
1
解决办法
7388
查看次数

标签 统计

disk-usage ×1

filenames ×1

jenkins ×1

shell ×1