列出磁带中的目录需要很长时间,因为 cpio 命令必须处理整个归档文件。
以下示例说明如何列出磁带机 0 中的磁带上的文件。
$ cpio -civt < /dev/rmt/0 -rw-r--r-- 1 root other 0 Jul 28 14:59 2004, filea -rw-r--r-- 1 root other 0 Jul 28 14:59 2004, fileb -rw-r--r-- 1 root other 0 Jul 28 14:59 2004, filec drwxr-xr-x 2 root other 0 Jul 28 14:59 2004, letters drwxr-xr-x 2 root other 0 Jul 28 15:00 2004, reports 16 blocks $ |