how to delete directory with terminal linux code example Example 1: delete a directory bash script rmdir dirname Example 2: remove all directrories in onde command hit rm -R -- */