如何[tar和]压缩Emacs中的标记文件 [英] How to [tar and] compress marked files in Emacs
问题描述
dired +
中,我选择了四个文件,其中 *
然后按 Z
来压缩它们。我回答了 y
到提示,并在mini-buffer中看到一些状态更新。我在哪里可以找到压缩文件?我在一个文件( Cu
Z
)中测试,Emacs在一个文件中运行gzip并将其设为.gz文件。如何在[Emacs中]压缩标记的文件? (为了抢占关于tar,gzip,其他格式和档案的一般哲学或方法学讨论,想要的是将四个文件存储在一个文件中作为压缩数据,如果可以通过tar和gzip实现,或者将每个文件直接压缩到一个档案中,并不重要。)
如果 dired +
就像 dired
,你可以标记文件然后点击!(在标记的文件上运行一个shell命令),并将命令指定为 tar -czf foo.tar.gz *
*
是一个特殊标记,由标记文件的名称替换)。
In dired+
in Emacs 23.2.1 on a Debian Squeeze variant I selected four files with *
and then pressed Z
to compress them. I answered y
to the prompt and saw some status updates in the mini-buffer. Where do I find the compressed file? I tested on one file (C-u
Z
) and Emacs ran gzip on the one file and made it a .gz file. How do I [tar and] compress marked files in Emacs?
(To preempt any philosophical or methodological discussions about tar, gzip, other formats and archives in general, all I want is the four files to be stored in one file as compressed data. If that can be achieved via tar and gzip or compressing each directly into an archive doesn't matter.)
If dired+
is anything like dired
, you can mark the files and then hit ! (to run a shell command on the marked files) and specify the command as tar -czf foo.tar.gz *
(the *
is a special marker that is replaced by the names of the marked files).
这篇关于如何[tar和]压缩Emacs中的标记文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!