我正在尝试删除文件夹,我不知道为什么它可以创建..我已经尝试过 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
尝试以下命令:
cd /root/data/xmpp-php/xmpphp
rm -rf \~
我是一名优秀的程序员,十分优秀!