×

This article covers how to Remove Files and Directories Using Linux Command.

The procedure to remove all files from a directory:

  • Open the terminal application.
  • To delete everything in a directory run: rm /path/to/dir/* .
  • To remove all sub-directories and files: rm -r /path/to/dir/* .




More Linux Tutorials

We create Linux HowTos and Tutorials for Sys Admins. Visit us on IbmiMedia.com

Also for Tech related tips, Visit forum.outsourcepath.com or General Technical tips on www.outsourcepath.com