Pages

Thursday, 14 July 2011

Zipping a file or folder using ZIP command

The "zip" command can be used to zip a file or folder.

syntax

zip <<filename.zip>> <<files_to_zip>>


zip <<filename.zip>> <<folders_to_zip>>

example

zip try.zip file1.txt file2.txt

Friday, 8 July 2011

Linux Queries Post here will get back to you asap

Linux Boot process

---> ---> 3 stage Linux Boot Process in short
1. Bios executing  a short program in MBR (master boot record) of first physical drive. The program is in assembly language of 512 bytes. This is called Boot loader stage. The stage 1 boot resides in MBR and contain sector number of the stage 2 boot located at /boot/grub/grub.conf

2. Stage 2 boot loader presents boot menu based in /boot/grub/grub.conf. It loads the linux kernel. The boot loader loads the kernel, as the kernel boots up it scans the hardware, loads the loadable modules it needs and starts process number 1 i.e. /sbin/init

3. Stage 3 process parses the request from /sbin/init to /etc/inittab file. The inittab file holds the default run level by which it starts loading. There are 7 different run levels from 0 to 6. All this run level use the following file /etc/rc.d/rc[0-6]/ directory. Depending on the prefix to a file service is started or killed. S means started and K means killed.