FAQ/zh: Difference between revisions

Weijia (talk | contribs)
Created page with "== 为什么使用 <hash>-<name> 而不是 <name>-<hash>? =="
Tags: Mobile edit Mobile web edit
Weijia (talk | contribs)
Created page with "在少数需要深入查看 /nix/store 的情况下,将哈希值的前几位放在开头更方便记忆和使用。 也就是说,几乎可以仅通过哈希的前 4-5 个字符唯一地识别一个存储路径。 (这比先输入完整的包名再加上哈希的前几位要更高效。)"
Line 76: Line 76:
== 为什么使用 <hash>-<name> 而不是 <name>-<hash>? ==
== 为什么使用 <hash>-<name> 而不是 <name>-<hash>? ==


<div lang="en" dir="ltr" class="mw-content-ltr">
在少数需要深入查看 /nix/store 的情况下,将哈希值的前几位放在开头更方便记忆和使用。
For the rare cases where we have to dig into the /nix/store it is more practical to keep in mind the first few letters at the beginning than finding a package by name.
也就是说,几乎可以仅通过哈希的前 4-5 个字符唯一地识别一个存储路径。
Ie, you can uniquely identify almost any storepath with just the first 4-5 characters of the hash.
(这比先输入完整的包名再加上哈希的前几位要更高效。)
(Rather than having to type out the full package name, then 4-5 characters of the hash.)
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">