remove_directory
Differences
This shows you the differences between two versions of the page.
| remove_directory [2016/08/01 20:59] – created walkeradmin | remove_directory [2016/08/01 21:03] (current) – walkeradmin | ||
|---|---|---|---|
| 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: (external edit)
