How to write Command to erase all files in the current directory, including all its sub-directories, using only one command?
Jump to Post
you can use
rm -rdf *it will remove all files and directories recursively. For more information about the options read the manual:
man rmand be careful, always check current path, as it can hurt.
All 10 Replies
Be a part of the DaniWeb community
We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.