linux shell command rmdir code example Example 1: remove directory linux rm -rf /path/to/directory/* Example 2: rmdir linux rmdir <filePath>