root@webssh-8665446:~# tar - cvf new.tar *.txt
tar: You must specify one of the ‘-Acdtrux’, ‘–delete’ or ‘–test-label’ options
Try ‘tar --help’ or ‘tar --usage’ for more information.
原因:-后不能有空格,改成root@webssh-8665446:~# tar -cvf new.tar *.txt 即可
root@webssh-8665446:~# tar - cvf new.tar *.txt
tar: You must specify one of the ‘-Acdtrux’, ‘–delete’ or ‘–test-label’ options
Try ‘tar --help’ or ‘tar --usage’ for more information.
原因:-后不能有空格,改成root@webssh-8665446:~# tar -cvf new.tar *.txt 即可