find: `./folder': No such file or directory

后端 未结 3 552
无人及你
无人及你 2021-01-03 06:28

This is the contents of the directory I\'m working with:

misha@hp-laptop:~/work/c/5$ ls -l
total 8
-rw-rw-r-- 1 misha misha  219 May 20 15:37 demo.c
drwxrwxr         


        
3条回答
  •  感情败类
    2021-01-03 07:05

    #before
    
    
            ls -lrt
            total 4
            -rw-rw-r--  1 user super    0 May 20 09:14 demo.c
            drwxrwxr-x  2 user super 4096 May 20 09:14 folder/
            -rw-rw-r--  1 user super    0 May 20 09:14 test
    
    
    #Command
            ls -1 | grep -v demo.c |xargs rm -rf 
    #After        
            ls -lrt
            total 0
            -rw-rw-r--  1 user super 0 May 20 09:14 demo.c
    

提交回复
热议问题