【问题标题】:How to create an empty tar file in AIX如何在 AIX 中创建一个空的 tar 文件
【发布时间】:2012-05-25 09:35:31
【问题描述】:

我的第一个问题...

如何在AIX中创建一个空的tar文件,我试了好几次,都没有成功。

$touch myfile.tar 不起作用。

【问题讨论】:

    标签: shell tar aix


    【解决方案1】:

    试试这个。在 Linux 中工作。

    tar cvf your-empty-tar-filename.tar --files-from /dev/null
    

    【讨论】:

    • 拉胡尔,别工作...tar: --files-from: A file or directory in the path name does not exist. tar: 0511-180 /dev/null is not a valid tar file type.
    • tar 的错误是tar: Unexpected end-of-file while reading from the storage media.
    • 适用于我,在 Linux (Ubuntu 14.04) 上
    猜你喜欢
    • 2020-04-19
    • 1970-01-01
    • 1970-01-01
    • 2011-02-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多