LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-28-2007, 01:02 AM   #1
ajeetraina
Member
 
Registered: Jun 2007
Location: India
Distribution: Ubuntu,Red Hat, Fedora
Posts: 292

Rep: Reputation: 30
rm-command in singe Shot???


Hello Frens,
Can you help me with the single rm command which is remove all the files except libnssckbi.so.


-r-------- 1 nobody nobody 2092 Dec 28 11:14 adminserver.p12
-rw------- 1 nobody nobody 65536 Dec 28 11:14 admin-serv-pe-cert8.db
-rw------- 1 nobody nobody 16384 Dec 28 11:14 admin-serv-pe-key3.db
-rw-r--r-- 1 root root 619 Dec 28 11:14 cacert.asc
-rwxrwxrwx 1 root nobody 239744 Nov 8 2006 libnssckbi.so
-r-------- 1 nobody nobody 41 Dec 28 11:14 noise.txt
-r-------- 1 nobody nobody 50 Dec 28 11:14 password.conf
-r-------- 1 nobody nobody 41 Dec 28 11:14 pwdfile.txt
-rw------- 1 nobody nobody 16384 Dec 28 11:13 secmod.db
-rwxrwxrwx 1 root root 8119 Dec 28 10:18 setupssl.sh
-rw------- 1 nobody nobody 65536 Dec 28 11:14 slapd-pe-cert8.db
-rw------- 1 nobody nobody 65536 Dec 28 11:13 slapd-pe-cert8.db.bak
-rw------- 1 nobody nobody 16384 Dec 28 11:14 slapd-pe-key3.db
-rw------- 1 nobody nobody 16384 Dec 28 11:13 slapd-pe-key3.db.bak
-r-------- 1 nobody nobody 67 Dec 28 11:14 slapd-pe-pin.txt
 
Old 12-28-2007, 01:44 AM   #2
indeliblestamp
Member
 
Registered: Feb 2006
Distribution: Fedora
Posts: 341
Blog Entries: 3

Rep: Reputation: 39
This is the first thing that came to mind, but there are bound to be lots of other ways:
Code:
rm `ls|grep -v libnssckbi.so`
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do you take a screen shot? soulwatcher1974 Linux - General 2 02-17-2005 11:37 PM
grab - Simply a useless bash script to take a screen shot; Required command: import micxz Programming 2 10-08-2003 08:59 PM
cheap shot!! DooFDooF_music_ General 14 09-05-2003 05:07 PM
Shot The Penguin trickykid General 10 02-16-2002 06:17 AM
screen shot enzo250gto Linux - General 2 10-28-2001 11:27 PM


All times are GMT -5. The time now is 05:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration