git .

删乱码

删除单个文件或者是空文件夹

[testusr@test-server ~]$ ls -i
403978635 ?  403978629 ???  136614872 applications     956987 bin  473150356 freeware  403978637 ??j?6??r?,0ʏ?????QY??5?    1870038 logs  202248742 sbin  473121881 tomcat
[testusr@test-server ~]$ ll -i
total 12
403978635 -rw-r--r--  1 root    root       0 Jan 18 10:45 ?
403978629 -rw-r--r--  1 root    root       0 Jan 18 10:45 ???
136614872 drwxrwxr-x 15 testusr testusr 4096 Oct 24 11:40 applications
   956987 drwxrwxr-x 13 testusr testusr 4096 Oct 24 11:52 bin
473150356 drwxr-xr-x  6 testusr testusr  165 Jan 18 10:45 freeware
403978637 -rw-r--r--  1 root    root       0 Jan 18 10:45 ??j?6??r?,0ʏ?????QY??5?
  1870038 drwxrwxr-x  4 testusr testusr 4096 Jan  4 15:30 logs
202248742 drwxrwxr-x  2 testusr testusr   84 Oct 25 11:34 sbin
473121881 drwxrwxr-x  4 testusr testusr   37 Oct 24 10:41 tomcat
[testusr@test-server ~]$ find -inum 403978635 -delete
[testusr@test-server ~]$ ll 
total 12
-rw-r--r--  1 root    root       0 Jan 18 10:45 ???
drwxrwxr-x 15 testusr testusr 4096 Oct 24 11:40 applications
drwxrwxr-x 13 testusr testusr 4096 Oct 24 11:52 bin
drwxr-xr-x  6 testusr testusr  165 Jan 18 10:45 freeware
-rw-r--r--  1 root    root       0 Jan 18 10:45 ??j?6??r?,0ʏ?????QY??5?
drwxrwxr-x  4 testusr testusr 4096 Jan  4 15:30 logs
drwxrwxr-x  2 testusr testusr   84 Oct 25 11:34 sbin
drwxrwxr-x  4 testusr testusr   37 Oct 24 10:41 tomcat
[testusr@test-server ~]$ find -inum 403978629 -delete
[testusr@test-server ~]$ ll
total 12
drwxrwxr-x 15 testusr testusr 4096 Oct 24 11:40 applications
drwxrwxr-x 13 testusr testusr 4096 Oct 24 11:52 bin
drwxr-xr-x  6 testusr testusr  165 Jan 18 10:45 freeware
-rw-r--r--  1 root    root       0 Jan 18 10:45 ??j?6??r?,0ʏ?????QY??5?
drwxrwxr-x  4 testusr testusr 4096 Jan  4 15:30 logs
drwxrwxr-x  2 testusr testusr   84 Oct 25 11:34 sbin
drwxrwxr-x  4 testusr testusr   37 Oct 24 10:41 tomcat
posted @   baishier  阅读(76)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 单元测试从入门到精通
· 上周热点回顾(3.3-3.9)
· winform 绘制太阳,地球,月球 运作规律
点击右上角即可分享
微信分享提示