添加更多考古注释内容#170
Merged
Merged
Conversation
Member
Author
|
后面可以考虑将超过 100 字符的部分,拆分到前缀里面,这样最长长度能达到 255 字符。这个活需要改动些内容,也要多去测测,现在没啥动力做这个活。加注释和抛出异常说明就好 |
This reverts commit 964acb3.
Member
Author
|
由于 tar 有多个版本,官方 gnu 写的不清不楚,不能快速定位到所述问题。不如贴原来那个大学里面的链接,毕竟是从 1997 就在那的链接了,预计会比维基百科等更加稳定 |
kkwpsv
approved these changes
Jun 23, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Tar 文档
NAME
tar - create tape archives, and add or extract files
SYNOPSIS
/usr/sbin/tar c [ bBefFhilvwX [ 0-7 ]] [ device ] [ block ]
[ exclude-filename ... ] [ -I include-filename ]
filename ... [ -C directory filename ]
DESCRIPTION
tar archives and extracts files to and from a single file
called a tarfile . A tarfile is usually a magnetic tape, but
it can be any file. tar's actions are controlled by the key
argument. The key is a string of characters containing
exactly one function letter (c, r, t , u, or x) and one or
more function modifiers, depending on the function letter
used. Other arguments to the command are filenames (or
directory names) specifying which files are to be archived
or extracted. In all cases, appearance of a directory name
refers to the files and (recursively) subdirectories of that
directory.
Function Letters
The function portion of the key is specified by one of the
following letters:
Function Modifiers
The characters below may be used in addition to the letter
that selects the desired function. Use them in the order
shown in the SYNOPSIS.
EXAMPLES
To archive files from /usr/include and from /etc, onto
default tape drive 0 one might use:
ENVIRONMENT
If any of the LC_* variables ( LC_CTYPE, LC_MESSAGES,
LC_TIME, LC_COLLATE, LC_NUMERIC, and LC_MONETARY ) (see
environ(5)) are not set in the environment, the operational
behavior of tar for each corresponding locale category is
determined by the value of the LANG environment variable.
If LC_ALL is set, its contents are used to override both the
LANG and the other LC_* variables. If none of the above
variables is set in the environment, the "C" (U.S. style)
locale determines how tar behaves.
FILES
/dev/rmt/[0-7][b][n]
/dev/rmt/[0-7]l[b][n]
/dev/rmt/[0-7]m[b][n]
/dev/rmt/[0-7]h[b][n]
/dev/rmt/[0-7]u[b][n]
/dev/rmt/[0-7]c[b][n]
/etc/default/tar Settings may look like this:
archive0=/dev/rmt/0
archive1=/dev/rmt/0n
archive2=/dev/rmt/1
archive3=/dev/rmt/1n
archive4=/dev/rmt/0
archive5=/dev/rmt/0n
archive6=/dev/rmt/1
archive7=/dev/rmt/1n
SEE ALSO
ar(1), chown(1), cpio(1), csh(1), ls(1), mt(1), umask(2),
environ(5)
DIAGNOSTICS
Complaints about bad key characters and tape read/write
errors.
Complaints if enough memory is not available to hold the
link tables.
NOTES
There is no way to ask for the n-th occurrence of a file.
相关链接:
https://github.com/rubygems/rubygems/blob/master/lib/rubygems/package/tar_writer.rb#L312
ruby/rubygems#1376
https://www.linuxquestions.org/questions/linux-software-2/tar-keeps-reporting-99-character-limit-despite-using-posix-option-4175578854/
MidnightCommander/mc#2201
http://ibgwww.colorado.edu/~lessem/psyc5112/usail/man/solaris/tar.1.html
https://superuser.com/questions/1166820/tar-truncating-file-names-when-tarfile-is-transferred-from-linux-to-unix-solari