[root@localhost src]# tar -zxvf /root/Desktop/daq-2.0.4.tar.qz
tar (child): /root/Desktop/daq-2.0.4.tar.qz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
当我运行该命令时,出现无法打开文件的错误。我不知道为什么。有人能帮我吗?
答案1
daq-2.0.4.tar.qz 不是您下载的文件的名称,它是daq-2.0.4.tar.gz带有 .gz 扩展名,因此命令tar -zxvf /root/Desktop/daq-2.0.4.tar.qz
无法找到它。
将目录更改为cd
包含 daq-2.0.4.tar.gz 的目录并运行以下命令:
tar-zxvf daq-2.0.4.tar。G是
我从上面的链接下载了 daq-2.0.4.tar.gz 到我的桌面,并使用上面的命令将其解压,并且成功了。结果:
daq-2.0.4/ daq-2.0.4/os-daq-模块/ daq-2.0.4/os-daq-modules/daq-modules-config.in daq-2.0.4/os-daq-模块/daq_nfq.c daq-2.0.4/os-daq-modules/daq_netmap.c daq-2.0.4/os-daq-模块/daq_dump.c daq-2.0.4/os-daq-modules/daq_static_modules.h daq-2.0.4/os-daq-modules/Makefile.in daq-2.0.4/os-daq-模块/daq_ipq.c daq-2.0.4/os-daq-模块/daq_ipfw.c daq-2.0.4/os-daq-模块/daq_pcap.c daq-2.0.4/os-daq-modules/daq_static_modules.c daq-2.0.4/os-daq-modules/daq_afpacket.c daq-2.0.4/os-daq-模块/Makefile.am daq-2.0.4/api/ daq-2.0.4/api/daq.h daq-2.0.4/api/daq_mod_ops.c daq-2.0.4/api/daq_api.h daq-2.0.4/api/daq_common.h daq-2.0.4/api/daq_base.c daq-2.0.4/api/Makefile.in daq-2.0.4/api/Makefile.am daq-2.0.4/复制 daq-2.0.4/自述文件 daq-2.0.4/sfbpf/ daq-2.0.4/sfbpf/win32-stdinc.h daq-2.0.4/sfbpf/sf_gencode.c daq-2.0.4/sfbpf/sfbpf-int.c daq-2.0.4/sfbpf/ipnet.h daq-2.0.4/sfbpf/sfbpf-int.h daq-2.0.4/sfbpf/IP6_misc.h daq-2.0.4/sfbpf/sfbpf.h daq-2.0.4/sfbpf/nlpid.h daq-2.0.4/sfbpf/sf-redefines.h daq-2.0.4/sfbpf/grammar.y daq-2.0.4/sfbpf/ethertype.h daq-2.0.4/sfbpf/ieee80211.h daq-2.0.4/sfbpf/sf_optimize.c daq-2.0.4/sfbpf/arcnet.h daq-2.0.4/sfbpf/ppp.h daq-2.0.4/sfbpf/sfbpf_dlt.h daq-2.0.4/sfbpf/llc.h daq-2.0.4/sfbpf/scanner.l daq-2.0.4/sfbpf/Makefile.in daq-2.0.4/sfbpf/sll.h daq-2.0.4/sfbpf/sunatmpos.h daq-2.0.4/sfbpf/sf_bpf_printer.c daq-2.0.4/sfbpf/sf_nametoaddr.c daq-2.0.4/sfbpf/runlex.sh daq-2.0.4/sfbpf/namedb.h daq-2.0.4/sfbpf/sf_bpf_filter.c daq-2.0.4/sfbpf/gencode.h daq-2.0.4/sfbpf/bittypes.h daq-2.0.4/sfbpf/atmuni31.h daq-2.0.4/sfbpf/Makefile.am daq-2.0.4/config.sub daq-2.0.4/daq.dsp daq-2.0.4/配置 daq-2.0.4/变更日志 daq-2.0.4/ltmain.sh daq-2.0.4/安装-sh daq-2.0.4/config.h.in daq-2.0.4/aclocal.m4 daq-2.0.4/depcomp daq-2.0.4/Makefile.in daq-2.0.4/m4/ daq-2.0.4/m4/loptions.m4 daq-2.0.4/m4/ax_cflags_gcc_option.m4 daq-2.0.4/m4/libtool.m4 daq-2.0.4/m4/lt~过时.m4 daq-2.0.4/m4/lt版本.m4 daq-2.0.4/m4/ltsugar.m4 daq-2.0.4/m4/sf.m4 daq-2.0.4/配置.ac daq-2.0.4/config.guess daq-2.0.4/缺失 daq-2.0.4/Makefile.am