Cleaning the nix store: Difference between revisions

Klinger (talk | contribs)
Jalil (talk | contribs)
m Remove unnecessary leading white space from command
Line 7: Line 7:
Sometimes <code>result</code> files created by an ad-hoc <code>nix-build</code> bind a lot of resources, these can be found by running:
Sometimes <code>result</code> files created by an ad-hoc <code>nix-build</code> bind a lot of resources, these can be found by running:


<syntaxhighlight lang=shell>
<syntaxhighlight lang="shell">
  nix-store --gc --print-roots | egrep -v "^(/nix/var|/run/\w+-system|\{memory|/proc)"
nix-store --gc --print-roots | egrep -v "^(/nix/var|/run/\w+-system|\{memory|/proc)"
</syntaxhighlight>
</syntaxhighlight>