tar

What's a good tar utility for Windows? [closed]

一世执手 提交于 2019-12-18 04:29:34
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 years ago . I use Cygwin regularly, but I have a need these days to extract tar.gz and tar.bz2 files on other people's Windows machines. They don't want Cygwin; they need a GUI. I've tried 7-zip, which some other people in our company were using, but 7-zip makes the braindead decision to require you to first uncompress a

how to untar file in memory (c programming)?

不羁的心 提交于 2019-12-18 03:48:36
问题 Let me explain what I'm trying to realize: I have a encrypted tar file. I can decrypt it in memory, but obviously I can't write the decrypted data back to hard disk as a real file. The decrypted data is structured as a char* buffer in memory; how can I untar it in memory? I can't find answer with libtar library. I also tried to untar it with execlp("tar", "tar", "-xvO", (void*)0) . But it didn't work as I thought. Anyone can give me a hint of the best solution? Thanks! 回答1: I made an example,

tar备份与恢复 cron任务

十年热恋 提交于 2019-12-17 23:18:51
一.tar备份包 • 归档的含义 – 将许多零散的文件整理为一个文件 – 文件总的大小基本不变 • 压缩的含义 – 按某种算法减小文件所占用空间的大小 – 恢复时按对应的逆向算法解压 常见的压缩格式 .gz ---> gzip .bz2 ---> bzip2 .xz ---> xz • tar 集成备份工具 – -c:创建归档 – -x:释放归档 – -f:指定归档文件名称,必须在所有选项的最后 – -z、-j、-J:调用 .gz、.bz2、.xz 格式的工具进行处理 – -t:显示归档中的文件清单 – -C:指定释放路径 二.备份与恢复 制作tar包(打包) 格式: tar 选项 /路径/压缩包的名字 被压缩的源数据....... eg: ]# rm -rf /opt/* ]# tar -zcf /opt/abc.tar.gz /etc/passwd /etc/shadow /home/ tar: 从成员名中删除开头的“/” ]# ls /opt/ ]# tar -jcf /opt/file.tar.bz2 /etc/passwd /etc/shadow /home/ tar: 从成员名中删除开头的“/” ]# ls /opt/ ]# tar -Jcf /opt/nsd.tar.xz /etc/passwd /etc/shadow /home/ tar: 从成员名中删除开头的“/

How to extract a single file from a remote archive file?

混江龙づ霸主 提交于 2019-12-17 18:41:37
问题 Given URL of an archive (e.g. a zip file) Full name (including path) of a file inside that archive I'm looking for a way (preferably in Java) to create a local copy of that file, without downloading the entire archive first . From my (limited) understanding it should be possible, though I have no idea how to do that. I've been using TrueZip, since it seems to support a large variety of archive types, but I have doubts about its ability to work in such a way. Does anyone have any experience

tar: file changed as we read it

谁都会走 提交于 2019-12-17 10:34:14
问题 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

Zip files with Java: Is there a limit?

隐身守侯 提交于 2019-12-17 09:57:07
问题 I'm creating a backup routine for my application with Java. However, when the zip file is over 4GB, or has more than 65,000 files (approximately), the zip file is corrupted. I'm also testing the Apache Commons Compression for compacting to tar.gz, but it has file name limit of 100 characters. I was wanting to test this API compressing to zip, but I wonder what exactly is the problem with the java zip. So, the real question is: I'm doing something wrong, it is limit of Java Zip implementation,

建立 arm-linux 交叉编译环境

随声附和 提交于 2019-12-17 09:35:14
我们使用以下版本的文件为例子建立 arm-linux 交叉编译环境: 编译环境 redhat 7.2 或 8.0 binutils-2.14.tar.gz ftp://ftp.gnu.org/gnu/binutils/binutils-2.14.tar.gz gcc-core-2.95.3.tar.gz ftp://ftp.gnu.org/gnu/gcc/gcc-2.95....e-2.95.3.tar.gz gcc-g++2.95.3.tar.gz ftp://ftp.gnu.org/gnu/gcc/gcc-2.95....+-2.95.3.tar.gz glibc-2.2.4.tar.gz ftp://ftp.gnu.org/gnu/glibc/glibc-2.2.4.tar.gz glibc-linuxthreads-2.2.4.tar.gz ftp://ftp.gnu.org/gnu/glibc/glibc-l...ds-2.2.4.tar.gz linux-2.4.21.tar.gz ftp://ftp.kernle.org/pub/linux/kern...x-2.4.21.tar.gz patch-2.4.21-rmk1.gz # linux kernel patch for arm ftp://ftp.arm.linux.org.uk/pub/linu...-2.4

Linux常用命令全集

风流意气都作罢 提交于 2019-12-16 12:32:19
系统信息 arch 显示机器的处理器架构(1) uname -m 显示机器的处理器架构(2) 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 关闭系统(1) init 0 关闭系统(2) telinit 0 关闭系统(3) shutdown -h hours

Linux常用命令大全

人盡茶涼 提交于 2019-12-16 03:49:28
系统信息 arch 显示机器的处理器架构(1) uname -m 显示机器的处理器架构(2) 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 关闭系统(1) init 0 关闭系统(2) telinit 0 关闭系统(3) shutdown -h hours

Linux常用命令大全

自闭症网瘾萝莉.ら 提交于 2019-12-16 03:34:47
Linux常用命令大全(非常全!!!) 最近都在和Linux打交道,感觉还不错。我觉得Linux相比windows比较麻烦的就是很多东西都要用命令来控制,当然,这也是很多人喜欢linux的原因,比较短小但却功能强大。我将我了解到的命令列举一下,仅供大家参考: 系统信息 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 设置日期和时间 - 月日时分年