Saturday, September 10, 2011

How to mount/unmount any media


How mount any media
[root@local host]# mount   /dev/cdrom   /mnt or media   (when we mount cd or DVD then gives this cmd)
[root@local host]# mount  /

How umount any media
[root@local host]# umount   /dev/cdrom   /mnt or media
[root@local host]# mount 

Chowner


Chowner
Ist user: - make a directory any way
[root@local host]# vi   /tmp/file name
Then comes on Find user and see that has power to delete this file .
Then come on
[root@local host]# chown   -R   username   /tmp/file name
To delete                                                                     
[root@local host]# rm  /tmp/file name
Pwd: - For ask current location.

Linux common commands


Show all file in Linux
[root@local hostname]# ll or ls
How to copy
[root@local host]# cp   dir 1/file name   dir 2
How to move file
[root@local host]# mv   dir1/file name dir2
To create five directory at a one time
[root@local host]# mkdir   naman {1, 2, 3,4,5}
Remove all directories
[root@local host]# rm  -rf    naman*
One name provide for all directory
[root@local host]# mkdir naman [1,5]
Create a three directory at a one time
[root@local host]#mkdir kamal {abc, bb, cc}

Remove all directories

[root@local host]# rm -rf  kamal*[a,b,c]
 To delete the directory which has any single last character?
[root@local host]# rm  -rf   kamal*[last char]

How make directory in Linux


How make directory in Linux
[root@local host]# mkdir     kamal
[root@local host]# cd   kamal
[root@local host kamal]# vi   hcl

How to make Files in Linux


How to make Files in Linux
We make three types of file in Linux
[root@local host]# vi   file name      (These file save: wq!)
[root@local host]# cat  > file name   (These file save ctrl+c)
[root@local host]# touch file name    (This is a MTE file)

Thursday, September 8, 2011

How to break Grub password


How to break Grub password
[root@local host]# vi  /etc/grub.conf
Press i key
Then delete these line            #1$$54$77#66$$   
              
Press escape key
: wq!