1753416 Members
7574 Online
108793 Solutions
New Discussion юеВ

Remove a file

 
Jess_13
Advisor

Remove a file

Hi admins,

I would like to delete a file that I uploaded to my server using ftp.

# pwd
/patches
# ls
T64V51BB26AS0005-20050502.com&UserID=CA1340630
patch_kit
t64v51ab21as0004-20030206.tar
# rm T64V51BB26AS000520050502.com&UserID=CA1340630
318433 ( <--pop out automatically)
# rm: T64V51BB26AS0005-20050502.com: No such file or directory

I wonder why the system recognize only T64V51BB26AS0005-20050502.com but not the whole thing.

Please help!
3 REPLIES 3
Jess_13
Advisor

Re: Remove a file

Using ftp to remove instead go in the server
Steven Schweda
Honored Contributor

Re: Remove a file

The ampersand ("&") is a special character to
the shell. Quote the file name next time.
Johan Brusche
Honored Contributor

Re: Remove a file


touch test\&.dat
ls test*
test&.dat

rm test\&.dat

Using \ as escape character...

_JB_