How remove all files in a directory linux?
Answer / Priyanka Choudhary
To remove all files in a directory (excluding the directory itself), you can use the `find` command with the `-type f` option to search for files and the `-exec rm {} ;` action to remove them. For example: `find . -type f -exec rm {} ;`.
| Is This Answer Correct ? | 0 Yes | 0 No |
Enlist some linux networking and troubleshooting commands?
What is the makefile in c?
What is the difference between kill and kill in linux?
In which File is Static IP address given so that it becomes Permanent ?
What signal is ctrl c?
What are runlevels in linux?
The ‘logout’ built in command is used to
How will retrieves incoming mails from different web sites
How do you execute more than one command or program from a single command line entry?
What does bash stand for?
what is first RHEL 5.x version support ext4 filesystem?
How do I find my user id in linux?