gpt4 book ai didi

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

转载 作者:太空宇宙 更新时间:2023-11-04 10:58:38 24 4
gpt4 key购买 nike

我正在尝试删除文件夹,我不知道为什么它可以创建..我已经尝试过 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 \~

关于linux - 如何删除子目录中的波浪形文件夹,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27865211/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com