Remove everything from a folder in Linux

avatar
May 25, 2023 · Snippet · 1 min, 42 words

to remove everything from a folder, open the terminal and write the command below 

sudo rm -rf /folder_directory/{*,.*}

📝 Remember one thing don't give a space between this {*,.*} 

Comments

No comments yet…