How to remove multiple files excluding a single file

In one of my folder there exists several files with .php .html .jpg and .png files.....

I need to remove only the .png files... is that possible with any command???

Tags: Advanced commands
user image Author :   jayce
1

ohhh before that run the below command to enable the symbol....

#shopt -s extglob

user image
jagan January 31, 2017
Add comment
0

Use ! option in rm command,

#rm -rf !(.png) It will remove only the .png files.....!!!

user image
jagan January 31, 2017
Add comment
0
Hi, i have updated correctly to apache 2.4. but how i can enable http2 support? i have added --enable-http2 to configure but seems not enable http2!
user image
jayce January 31, 2017
Add comment
0
I've installed ubuntu 16.04 server and there isn't any bonding module, i.e,, when I write "modprobe bonding" a "modprobe: FATAL: module bonding not found in directory /lib/modules/4.4.0.66-generic" message is displayed (ifenslave is installed). How can I solve this? I'd like to have a bonded network cards.
user image
jayce January 31, 2017
Add comment
0

rm -rf *.png these command remove only png files.......

user image
arunkumarak February 17, 2017
Add comment