User Tools

Site Tools


remove_directory

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
remove_directory [2016/08/01 21:59] – created walkeradminremove_directory [2023/03/09 22:35] (current) – external edit 127.0.0.1
Line 3: Line 3:
 \\  \\ 
 Odd as it sounds, I seem to have trouble removing directories, when I try: Odd as it sounds, I seem to have trouble removing directories, when I try:
-  rm directory+\\  
 +    rm directory
 \\  \\ 
 I get the error: I get the error:
 \\  \\ 
-  rm: cannot remove ‘alan’: Is a directory+    rm: cannot remove ‘alan’: Is a directory 
 +\\  
 +If I do a **ls -a -l** to see the directory contents I get: 
 +\\  
 +    total 8 
 +    drwxrwxr-x+ 2 pi pi 4096 Aug  1 21:58 . 
 +    drwxrwxr-x+ 3 pi pi 4096 Aug  1 21:58 .. 
 +\\  
 +total 8 - 8 what?? 
 +\\  
 +Anyway, this will remove a directory (and any files in it) 
 +\\  
 +    rm -r directory 
 +\\  
 +\\  
 +You need to be 100% sure that there is nothing in the directory you need before you do this. 
 +\\ 
 \\  \\ 
- 
- 
- 
- 
- 
-rm -r directory 
remove_directory.1470085179.txt.gz · Last modified: 2023/03/09 22:35 (external edit)