tar

tar: Error is not recoverable: exiting now

匿名 (未验证) 提交于 2019-12-03 03:04:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: when I untar doctrine -rw-r--r-- 1 root root 660252 2010-10-16 23:06 Doctrine-1.2.0.tgz I always get this error messages root@X100e:/usr/local/lib/Doctrine/stable# tar -xvzf Doctrine-1.2.0.tgz . . . Doctrine-1.2.0/tests/ViewTestCase.php Doctrine-1.2.0/CHANGELOG gzip: stdin: decompression OK, trailing garbage ignored Doctrine-1.2.0/COPYRIGHT Doctrine-1.2.0/LICENSE tar: Child returned status 2 tar: Error is not recoverable: exiting now The untar operation works, but I always get this error messages. Any clues what I do wrong? 回答1: I would try

How to [tar and] compress marked files in Emacs

匿名 (未验证) 提交于 2019-12-03 02:56:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: 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

Interesting usage of tar… but what is happening?

匿名 (未验证) 提交于 2019-12-03 02:56:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I saw the following interesting usage of tar in a co-worker's Bash scripts: `tar cf - * | (cd <dest> ; tar xf - )` Apparently it works much like rsync -av does, but faster. The question arises, how? -m EDIT : Can anyone explain why should this solution be preferable over the following? cp -rfp * dest Is the former faster? 回答1: On the difference between cp and tar to copy the directory hierarchies, a simple experiment can be conducted to show the difference: alastair box:~/hack/cptest [1134]% mkdir src alastair box:~/hack/cptest [1135]% cd

Docker ERROR: Error processing tar file(exit status 1): unexpected EOF

匿名 (未验证) 提交于 2019-12-03 02:56:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I needed space and executed: docker rmi $(docker images -f "dangling=true" -q) Since then I can't with docker-compose: docker-compose build , I get the error: ERROR: Error processing tar file(exit status 1): unexpected EOF . I tried to remove all images, reinstall docker, but nothing will do: always the same error, after quite some time. I built on another system and it worked, which suggests that this is a wrong-state issue. Any idea what I should clean? Using: 回答1: There is an built in command to remove unused images (Version 1.13+):

How to extract filename.tar.gz file

匿名 (未验证) 提交于 2019-12-03 02:44:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I want to extract an archive named filename.tar.gz . Using tar -xzvf filename.tar.gz doesn't extract the file. it is gives this error: gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error exit delayed from previous errors 回答1: If file filename.tar.gz gives this message: POSIX tar archive, the archive is a tar, not a GZip archive. Unpack a tar without the z , it is for gzipped (compressed), only: mv filename.tar.gz filename.tar # optional tar xvf filename.tar Or try a generic Unpacker like unp ( https://packages.qa.debian

Table is specified twice, both as a target for &#039;UPDATE&#039; and as a separate source for data

匿名 (未验证) 提交于 2019-12-03 02:29:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to update multiple rows in a column but when I execute query getting error. Somebody guide me where I am wrong. Thanks in advance UPDATE TestTaker SET TestTaker.Email = 'Replaced' WHERE TestTaker.Id IN (SELECT TestTaker.Id FROM TestTaker INNER JOIN Questionnaire ON (TestTaker.id = Questionnaire.TestTaker_id) WHERE Questionnaire.Project_id IN(SELECT Project.Id FROM Project WHERE NAME LIKE 'abcd')); 回答1: You are using table 'TestTaker' multiple times in that query, so you have to assign a 'alias' for that table and have to specify

How to untar file in node.js

匿名 (未验证) 提交于 2019-12-03 02:26:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: There are some untar libraries, but I cannot get them working. My idea would be something like untar(bufferStreamOrFilePath).extractToDirectory("/path", function(err){}) Is something like this available? 回答1: Just an update on this answer, instead of node-tar , consider using tar-fs which yields a significant performance boost, as well as a neater interface. var tarFile = 'my-other-tarball.tar'; var target = './my-other-directory'; // extracting a directory fs.createReadStream(tarFile).pipe(tar.extract(target)); 回答2: The tar-stream module is

npm audit Arbitrary File Overwrite

有些话、适合烂在心里 提交于 2019-12-03 02:21:02
I recently updated my version of angular using ng update and when running npm audit it found 1 high severity vulnerability but offered no suggestions on how to resolve it. It usually suggests to upgrade a package from package.json like: "angular-devkit/build-angular" but I am already using their latest version. === npm audit security report === Manual Review Some vulnerabilities require your attention to resolve Visit https://go.npm.me/audit-guide for additional guidance High Arbitrary File Overwrite Package tar Patched in >=4.4.2 Dependency of @angular-devkit/build-angular [dev] Path @angular

tar: file changed as we read it

匿名 (未验证) 提交于 2019-12-03 02:14:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am using make and tar to backup. When executing makefile, tar command shows file changed as we read it . In this case, the tar package is ok when the warning comes up but it stops the tar command for the following backup the file showing the warning in fact doesn't change -- it is really strange that the warning comes up the files showing the warning come up randomly, I mean, everytime I run my makefile, the files showing the warning are different --ignore-failed-read doesn't help. I am using tar 1.23 in MinGW I just changed my computer to

linux常用命令全集

吃可爱长大的小学妹 提交于 2019-12-03 02:13:21
系统信息 arch 显示机器的处理器架构 uname -m 显示机器的处理器架构 uname -r 显示正在使用的内核版本 dmidecode -q 显示硬件系统部件 - (SMBIOS / DMI) hdparm -i /dev/hda 罗列一个磁盘的架构特性 hdparm -tT /dev/sda 在磁盘上执行测试性读取操作 cat /proc/cpuinfo 显示CPU info的信息 cat /proc/interrupts 显示中断 cat /proc/meminfo 校验内存使用 cat /proc/swaps 显示哪些swap被使用 cat /proc/version 显示内核的版本 cat /proc/net/dev 显示网络适配器及统计 cat /proc/mounts 显示已加载的文件系统 lspci -tv 罗列 PCI 设备 lsusb -tv 显示 USB 设备 date 显示系统日期 cal 2007 显示2007年的日历表 date 041217002007.00 设置日期和时间 - 月日时分年.秒 clock -w 将时间修改保存到 BIOS 关机 (系统的关机、重启以及登出 ) shutdown -h now 关闭系统 init 0 关闭系统 telinit 0 关闭系统 shutdown -h hours:minutes & 按预定时间关闭系统