how to remove directory from current path in linux code example Example: remove directory and contents rm -R directory