• Home
  • Cloud
  • Big Data
  • CI
  • Install
  • Samples
  • Java
  • Ubuntu
  • Maven
  • Archive
Linux-Ubuntu | rmdir -- remove directories
  1. Notes
  2. Examples

  1. Notes

    The rmdir command removes the provided list of directories (they are removed in the order given).

    A directory must be empty to be removed by the rmdir command.

    You must enter all sub-directories before their parent directory so they all could be removed.
  2. Examples
    • Removing a directory:
      The folder must be empty, otherwise, you will get this error: "rmdir: folder: Directory not empty".

    • Removing a directory and its sub-directories:
© 2010-2022  mtitek