remove_directory
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
remove_directory [2016/08/01 21:59] – created walkeradmin | remove_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, | Odd as it sounds, I seem to have trouble removing directories, | ||
- | | + | \\ |
+ | | ||
\\ | \\ | ||
I get the error: | I get the error: | ||
\\ | \\ | ||
- | | + | |
+ | \\ | ||
+ | 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)