Register Blogs Advertise with usHelp Desk Today's Posts Search

Showing results 1 to 1 of 1
Search took 0.00 seconds.
Search: Posts Made By: wanipiro
Forum: Programming 29th September 2013, 07:28 AM
Replies: 1
Views: 1,127
Posted By IdeaBox
Re: [Linux] How to remove all folder and files except one folder?

sudo rm -r folder1 folder2 folder 3 *.* -f

the *.* will remove all files...replace folder1, 2, 3 etc with the dir names you want to remove.

Also, you could do mv foldertokeep /var/tmp then...
Showing results 1 to 1 of 1

Forum Jump

All times are GMT -6. The time now is 12:28 AM.