如何删除子目录中的波浪形文件夹

时间:2015-01-09 16:43:56

标签: linux

我试图删除文件夹,我不知道为什么它可以创建.. 我已经尝试了rm -rf~,但它删除了根文件夹

how to delete    ~     (squiggly folder in sub directory) folder 
below the path


# pwd
/root/data/xmpp-php/xmpphp
# ls -ltr
total 56
-rw-r----- 1 root root  1819 Jan  9 19:18 webclient_example.php
drwxr-xr-x 4 root root  4096 Jan  9 19:18 tests
-rw-r----- 1 root root  1647 Jan  9 19:18 cli_longrun_example_bosh.php
-rw-r----- 1 root root  2688 Jan  9 19:18 cli_longrun_example.php
drwxr-xr-x 3 root root  4096 Jan  9 19:18 XMPPHP
-rw-r----- 1 root root  1686 Jan  9 19:18 README
-rw-r----- 1 root root 18390 Jan  9 19:18 LICENSE
drwxr-xr-x 6 root root  4096 Jan  9 19:18 .svn
-rw-r----- 1 root root   637 Jan 10 00:41 ~               i want to delete this folder
-rw-r----- 1 root root   640 Jan 10 01:14 sendmessage_example.php    

1 个答案:

答案 0 :(得分:1)

尝试以下命令:


cd /root/data/xmpp-php/xmpphp
rm -rf \~