The UNIX and Linux Forums
>
Top Forums
>
UNIX for Dummies Questions & Answers
remove except ...
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
remove except ...
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
5
(
permalink
)
05-15-2008
Dave Miller
Registered User
Join Date: Dec 2007
Location: Northern NJ, USA
Posts: 151
If it's only one or two files that you want to keep, then the above answers are good.
But if it's a lot of files that are scattered among the list, then do an interactive rm:
rm -i *
The system will ask you if you want to delete each file.
Dave Miller
View Public Profile
Visit Dave Miller's homepage!
Find all posts by Dave Miller
Find Dave Miller's past nominations received
Find Dave Miller's present nominations given