To delete all files/folders in the current directory, without deleting the directory itself
rm -rf *
To delete a whole folder and its content recursively
rm -rf foldername/
To remove all files starting with ‘myFile’ and ending in ‘.txt’
rm myFile*.txt
To remove files
rm myFile.txt myFile1.txt myFile2.txt …etc…
rm -rf *
To delete a whole folder and its content recursively
rm -rf foldername/
To remove all files starting with ‘myFile’ and ending in ‘.txt’
rm myFile*.txt
To remove files
rm myFile.txt myFile1.txt myFile2.txt …etc…
No comments:
Post a Comment