0

I tried to compress a backup file via tar command on Linux (Oracle Enterprise Linux 8) but after the execution, i created a file named '--use-compress-program=pigz' by mistake.

The problem is, i can't delete this file with any of the commands. Tried commands below:

rm -rf '--use-compress-program=pigz'
rm -rf \'--use-compress-program=pigz\'
rm -rf *compress*

Any of these doesn't work. They all give errors below:

rm: unrecognized option ....
rm: cannot remove ... No such file or directory

Any suggestions on how to delete this file?

Edit:

[root@testserver backup]# find ./*use-compress-program* | od -c
0000000   .   /   -   -   u   s   e   -   c   o   m   p   r   e   s   s
0000020   -   p   r   o   g   r   a   m   =   p   i   g   z  \n
0000036

[root@testserver backup]# ls -l total 330929080 -rw-r----- 1 root root 243887951248 Apr 20 08:34 backup.tar.gz -rw------- 1 root root 93746165248 Apr 20 08:46 backup2.dmp -rw-r----- 1 root root 293076992 Apr 19 16:52 '--use-compress-program=pigz'

0 Answers0