Answers for "terminal remove all files in directory"

8

remove all files inside directory linux

# remove everything in a directory 
rm /path/to/dir/*
# remove all sub-directories and files
rm -r /path/to/dir/*
Posted by: Guest on July-10-2020
1

terminal delete all files that start with

find  . -name 'name*' -exec rm {} ;
Posted by: Guest on July-31-2020
0

how to remove all files with a certain file type in terminal

rm -rf ./*.tmp
Posted by: Guest on December-13-2020
0

how to remove all files with a certain file type in terminal

find /path -name '*.orig' -delete
Posted by: Guest on December-13-2020

Code answers related to "terminal remove all files in directory"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language