you are viewing a single comment's thread
view the rest of the comments
[–] 6 points 5 months ago (5 children)

Because you don't always want to delete the directory itself, to then recreate it and set the ownerships and permissions again

  • source
  • parent
  • hideshow 5 child comments
  • [–] 0 points 5 months ago (4 children)

    Fair enough. Then why not cd .., rm ./dir_name/* ?

  • source
  • parent
  • hideshow 4 child comments
  • [–] 7 points 5 months ago (3 children)

    because that does not delete hidden files in the directory

  • source
  • parent
  • hideshow 3 child comments
  • [–] 1 point 5 months ago (2 children)

    Fair enough. Why not tack on rm ./.* as well to that list? Lol. Sorry, I'm truly just curious and not trying to be a smart alec.

  • source
  • parent
  • hideshow 2 child comments