Delete folder name with space

Funny, I don’t realize if folder name containing space :

ftp# ls -nl
total 10
drwxr-xr-x  7 1005  1005   512 Apr  1 08:12  wulan 3
-rw——-  1 1005  1005     7 Sep  6 10:46 .ftpquota
-rw-r–r–  1 1005  1005  4274 Sep  6 10:46 conntact.gif

Using standard tab not work :

ftp# rm -rf wu

Until I know it’s space in the first name of the folder

Using escape character will definitely work :

Type \ and space, follow by tab for completion

ftp# rm -rf \ wulan\ 3/

ftp# ls -nl
total 8
-rw——-  1 1005  1005     7 Sep  6 10:46 .ftpquota
-rw-r–r–  1 1005  1005  4274 Sep  6 10:46 conntact.gif
ftp#

Yes, it work

Tags: