Monday, 31 October 2011

Boot Process in Linux

To View the default runlevel while booting the Linux Operating System[root@tsmservertest ~]# vi /etc/inittabid:5:initdefault:  (End of the line in Fedora OS)Note: It means that OS by default always boot to GUI mode.To View the current runlevel[root@tsmservertest ~]# runlevelN 5To Switch to another runlevel and check the runlevl[root@tsmservertest ~]# init 3[root@tsmservertest ~]# runlevel5 3[root@tsmservertest ~]# init 2[root@tsmservertest ~]# runlevel3 2[root@tsmservertest ~]# init 1[root@tsmservertest ~]# runlevel1 S[root@tsmservertest ~]# init 6To View the grup configuration file[root@localhost ~]# cat /boot/grub/grub.c...

Saturday, 22 October 2011

Backup and Recovery

Create a folder for EX:-- /myfolder [root@tsmservertest ~]# mkdir /myfolder [root@tsmservertest ~]# cd /myfolder/ Now create Some files and folders inside it. [root@tsmservertest myfolder]# mkdir dir1 [root@tsmservertest myfolder]# touch 1 songs tom_file [root@tsmservertest myfolder]# ls 1  dir1  songs  tom_file Use the tar command to tape archive the folder [root@tsmservertest ~]# tar -cvf /opt/myfolder.tar /myfolder tar: Removing leading `/' from member names /myfolder/ /myfolder/tom_file /myfolder/dir1/ /myfolder/songs /myfolder/1 [root@tsmservertest ~]# cd /opt/ [root@tsmservertest opt]# ls -l total 12 -rw-r--r-- 1 root root 10240 Oct 22 13:01 myfolder.tar To Create a tar file with zip [root@tsmservertest opt]# cd [root@tsmservertest ~]# tar -cvzf /opt/myfolder.tar.gz...

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Affiliate Network Reviews