D******n 发帖数: 2836 | 1 I used gunzip -l to list the information about the size of the
uncompressed
file. But it turned out to be way off compared to the one i actually had
after uncompression, why is it? |
|
e*******e 发帖数: 1837 | 2 我现在有一个gunzip(.gz)的文档文件(.txt), 在command line下有没有可能只解压或
者直接看一小部分文档? 比如pipe一部分解压文件到more?
谢谢! |
|
|
r*****s 发帖数: 11 | 4 just one command, i remember it is something like:
gunzip filename.tar.gz |tar vxf -
but it does not work
anyone help? Thanks |
|
j***y 发帖数: 87 | 5 gunzip -c filename.tar.gz | tar xvf -
tar -xvfz filename.tar gz (linux)
gzip -dc filename.tar.gz| tar xvf - |
|
w*y 发帖数: 74 | 6 我从网上下载了fileName.ps.gz文件,在cygwin里面用gunzip fileName.ps.gz来解压,却
告诉我fileName.ps.gz not in gzip format,真是奇了怪了.拿位大侠给指点一下.多谢. |
|
g***l 发帖数: 2753 | 7 fedora 20, use dd to backup partitions. There are two partitions on the disk
/dev/sdb2 and /dev/sdb3
My usual image backup is as follows:
1. Mount and zero out the empty space:
dd if=/dev/zero of=temp.dd bs=1M
until full empty disk is wiped with zeros, then
rm temp.dd
2. dd the partition while compressing it:
dd if=/dev/sdb2 conv=sync,noerror bs=64K | gzip -c > /mnt/wine/sdb2.ddimg.gz
dd if=/dev/sdb3 conv=sync,noerror bs=64K | gzip -c > /mnt/wine/sdb3.ddimg.gz
But today when I tried to put the s... 阅读全帖 |
|
h******b 发帖数: 6055 | 8 var directory = require('fs');
function processFile(filename) {
// dependencies
var fs = require('fs');
var zlib = require('zlib');
var csv = require('csv');
// filenames
var sourceFileName = filename;
mainFileName = 'main_' + filename;
// streams
var reader = fs.createReadStream(__dirname + '/original/' + sourceFileName),
writer = fs.createWriteStream(__dirname + '/transformed/' + mainFileName),
gunzip = zlib.createGunzip(),
gzip = zlib.createGzip();
//Main File
csv()
.from.stream(reader.pipe(g... 阅读全帖 |
|
k****i 发帖数: 101 | 9 // tested, should work :)
(main = () => {
var cluster = require('cluster'),
fs = require('fs')
if (cluster.isMaster) {
(check = () => {
var mand = 'Usage: node thisScript inputDir outputDir ',
opt = '[optional: numberOfWorkerProcesses; default:
numberOfCpuCores]'
if (process.argv.length < 4) {
console.log(mand + opt)
process.exit(1)
}
})();
(schedule = () => {
var ind = process.argv[2],
files = fs... 阅读全帖 |
|
c*****t 发帖数: 1879 | 10 Use a version of tar that supports gunzip directly using
tar tvzf filename
which lists all the files in the tar without doing gunzip first. |
|
g*********e 发帖数: 14401 | 11 chmod
crontab
mkdir
find
gunzip
tar
diff
patch
top
du
ks
groups
echo
tail
head |
|
c*****o 发帖数: 1702 | 12 最难的就这3个了(sed, grep, awk),再难就得写perl了,
其他的基本的有
ls,cd,cp,scp,mkdir, chomd +x, ps
程序相关的有
vi/vim,git, cc,g++/gcc,javac,gunzip,tar -xvf等等。
事实上你可以直接去找path里面的可执行命令,大多在usr/bin里面,自己找找吧 |
|
m****r 发帖数: 6639 | 13 但是怎么会每个文件都出问题? 我用了winzip和winrar和gunzip, 都不行. |
|
m******t 发帖数: 99 | 14 Try this one line command:
awk '{odd[$1," v.s. ",$3]=$5/$7} END {for (combined in odd) print
combined, odd[combined]}' test
Where test is the text file after gunzip. |
|
|
y***y 发帖数: 56 | 16 tar -xvf pXXXX.tgz
gunzip -d pxxxx.gz
chmod +x pxxx |
|
h**h 发帖数: 132 | 17 I downloaded oracle database from its website
but after gunzip, the file is in .cpio format
how can burn this to CD?
thanks |
|
s******y 发帖数: 1 | 18 when I used "gunzip lnx_920_disk1.cpio.gz", it said "invalid compressed
data--format violated". What does that mean? Appreciate! |
|
w****y 发帖数: 1 | 19 Hope this works for you:
Directions to extract the files
1. Run "gunzip " on all the files. Eg. lnx_920_disk1.cpio.gz
2. Extract the cpio archives with the command "cpio -idmv < "
Eg. cpio -idmv
Important Note: Some browsers will uncompress the files but leave the
extension the same (gz) when downloading. If the above steps do not work for
you, try skipping step 1 and go directly to step 2 without changing the
filename. Eg. "cpio -idmv |
|
f******g 发帖数: 111 | 20 You can use ''file'' command available on linux to see the type of the file.
sometimes, when you download a file, the file may have been expanded.
in my case, i was downloading a ps.gz file. but i could not use gunzip to expand it
at last, i was told to use ''file'' to detect the type of the file disregarding
the suffix, then it ended up with finding out the file actually has been expanded.
but the stupid windows application did not change its name accordingly.
so i had to change the suffix by f |
|
l********k 发帖数: 14844 | 21 自己顶一个:afio
docstore.mik.ua/orelly/unix3/upt/ch38_05.htm
There are good arguments both for and against compression of tar archives
when making backups. The overall problem is that neither tar nor gzip is
particularly fault-tolerant, no matter how convenient they are. Although
compression using gzip can greatly reduce the amount of backup media
required to store an archive, compressing entire tar files as they are
written to floppy or tape makes the backup prone to complete loss if one
block of th... 阅读全帖 |
|
|
|
t*****g 发帖数: 1275 | 24 or a more convenient equivalence - gzcat |
|
b******n 发帖数: 592 | 25 为什么不用zlib,很方便的阿..如果用popen, 要用 "gunzip -c xxxx | "吧。 |
|
p***o 发帖数: 1252 | 26 也可以处理的时候gzip一下,读的时候在管道里gunzip,能省
不少磁盘I/O。现在都是多核的机器,闲着也是闲着。 |
|
k**********g 发帖数: 989 | 27
何谓 轻量级 ?
in LOC ?
in megabytes? before or after gunzip ? |
|
c*****t 发帖数: 1879 | 28 It's a tar-ed then gzip-ed file.
gunzip filename.tgz
tar xf filename.tar |
|
s****l 发帖数: 78 | 29 try the 2 commands bah.
gunzip *.tgz
==> then it will be uncompressed into a *.tar file
tar -xvf *.tar
==> done |
|
s*****g 发帖数: 219 | 30 Linux支持参数 z。在别的Unix上,麻烦一点。
gunzip help.tgz help.tar
tar -xvf help.tar |
|
c********l 发帖数: 447 | 31 I thought I downloaded some *.tar.gz files,
but they turned out to be *.pkg files,
how to handle with them?
I tried renaming the files into *.gz and "gunzip" but seems no use.
any suggestion?
thanks a lot! |
|
z****g 发帖数: 2 | 32 or]
gzip -cd file | tar xvf - |
|
w*****n 发帖数: 94 | 33 wget has nothing to do with cgi ba?
The compilation instructions for unix programs are often found in an
INSTALL file, the README file also contains important information.
General steps are:
1) gunzip -c wget-xxx.tar.gz | tar xvf -
2) ./configure
3) make
4) make install |
|
j*****o 发帖数: 320 | 34 gunzip xxx.tgz
tar xvf xxx.tar
or
tar xvfz xxx.tgz |
|
w**a 发帖数: 1024 | 35 我在www.gnu.com下载了gcc的manual
好像是压缩的ps文件。
eg.
gcj.ps.gz
但是我用gunzip 解压缩的时候, 出问题了:
这个文件不是gzip文件。
困惑。
这个该怎么解开啊 |
|
e*******t 发帖数: 7 | 36 try winzip in Windows. if gzip/gunzip can work, then
Winzip should work. |
|
dy 发帖数: 12 | 37 Sometimes some browser gunzip files automatically but keep
the original file name, I think. You can directly open it
with ghostview ba. (I think you can directly open it even
in ghostview even if it is real ps.gz file) |
|
h**h 发帖数: 132 | 38 【 以下文字转载自 Database 讨论区 】
【 原文由 hugh 所发表 】
I downloaded oracle database from its website
but after gunzip, the file is in .cpio format
how can burn this to CD?
thanks |
|
j***y 发帖数: 2074 | 39 hi, all:
i tried to install glib into our lab's Sparc workstation with SunOS5.
1. i downloaded the source from gnu's website: http://www.gtk.org/
2. gunzip it, and tar xvf it.
3. in the source directory, run the command "sh config"
4. make
5. make install
the steps 1 - 4 is all right without any error. however, when i do
step 5, it tells me the destionation ("usr/local/lib") file system is
read only.
so the installation is unsuccessful.
i logged in as administrator -- "root".
and i found the use |
|
c*****t 发帖数: 1879 | 40 No.
1. Download gnu make from ftp.gnu.org.
2. gunzip and untar.
3. change into that directory created and run
./configure prefix=/your-home-dir-path/
4. run
make
5. run
make install
6. add ~/bin to your path in ~/.login
7. source ~/.login
8. rehash
9. run your program
In fact, this sequence works for most of the gnu programs. |
|
d***d 发帖数: 24 | 41 how about rename your file to metameme.2.1.alpha.tar.gz
then: gunzip -c metameme.2.1.alpha.tar.gz | tar xvf - |
|
w*y 发帖数: 74 | 42 查看了以往贴子,明白了,谢谢以往的贴子.
却
. |
|
c******y 发帖数: 37 | 43 No, you can unzip it anywhere, but you also
need to install the precompiled pkg:
1) cd /tmp && gunzip gcc*.gz
2) pkgadd -d./gcc-3.3-sol8-sparc-local
checksum error? Could be the file you downloaded
is broken. Go download it again. |
|
wy 发帖数: 14511 | 44 gunzip file.tar.gz
tar xvf file.tar |
|
f********h 发帖数: 149 | 45 tar zxvf the_files or gunzip |
|
c****j 发帖数: 258 | 46 1. download the gcc package (sunfreeware.com)
2. verify the package
3. remove the old gcc if you have, better to keep the orig. package (pkgrm)
4. unzip your download file (gunzip)
5. install the package (pkgadd -d gcc-xxx-solaris-local)
6 export your PATH to include /usr/local/bin
you are ready to use gcc. run "crle" if neccessary for runtime linking env. |
|
l**********n 发帖数: 5272 | 47 我有一个巨大的压缩文件,a zipped folder, 我的磁盘空间不够容纳全部解压后的文
件,而我只想得到其中所有的文件列表。我的方法就是 gunzip bigfolder.tar.gz 然
后extract, 然后 ls -R 但这样必须要有足够的空间。能否直接把解压的内容倒入到
trash 同时得到 ls -R ?
或者不必解压,直接得到 ls -R ?
谢谢指教。 |
|
z*******m 发帖数: 87 | 48 请教大牛,在windows系统中如何用SAS读取gzip文件?文件非常大,解压后我的电脑空
间都不够了。所以想在SAS里面直接读取。
顺便请教,以下语句是不是只适用于unix系统?
filename name pipe 'gunzip -c /directory/file.gz'; |
|