Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

rmdir

v(uutils coreutils) 0.8.0
rmdir [OPCIÓN]... DIRECTORIO...

Eliminar el/los DIRECTORIO(s), si están vacíos.

Options

--ignore-fail-on-non-empty

ignorar cada fallo que se deba únicamente a que un directorio no está vacío

--parents, -p

eliminar DIRECTORIO y sus antecesores; ej., ‘rmdir -p a/b/c’ es similar a rmdir a/b/c a/b a

--verbose, -v

mostrar un diagnóstico para cada directorio procesado

Examples

Remove specific directories:

rmdir {{path/to/directory1 path/to/directory2 ...}}

Remove specific nested directories recursively:

rmdir {{[-p|--parents]}} {{path/to/directory1 path/to/directory2 ...}}

Clean a directory of empty directories:

rmdir *

The examples are provided by the tldr-pages project under the CC BY 4.0 License.

Please note that, as uutils is a work in progress, some examples might fail.