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