lundi 18 mai 2009

Grep with option -o

I have discovered a new option today of grep command which is -o
the standard use of grep returns the hole line in a file with correponds to the the pattern.
with -o , grep returns only the matching pattern


dimanche 17 mai 2009

how do we have to expect from Fedora 11

I like fedora very much. I always install the last version as soon as it becomes available. However, I am still disappointed with the fact that Fedora (and more generally linux) does not still support many hardware. I think that at this step, linux commuties have to make a very hard work on this field.

In this period, I am finding great problems to install easycap video adapter on linux.

I hope that things will be easier soon.


reinstall grub

Often, when you use windows you will have to format you system because of virus and spyware.

If you are using linux in dual boot with windows, then, grub will be erased and you will not be able to boot to linux.

Fortunately, it is easy to reinstall grub if such situation happens. Just follow these steps:

1. Boot with the installation media (CD/DVD)
2. Choose rescue existing system
3. The system existing will be mounted on /mnt/sysimage
then, execute the following commands

chroot /mnt/sysimage

and then

grub-install /dev/sda

assuming the your fedora system is installed on /dev/sda. You can check this with fdisk -l.



good luck