Professional Documents
Culture Documents
40 GB Hard disk C:// 10 GB D:// 10 GB E:// 10 GB -----------/ 8GB /boot 200-512 MB Swap Ram*2 ------------hda primary master hdb primary slave hdc secondary master hdd secondary slave ---------------0 Sector size = 512 bytes IPL = 446 bytes
XP
Linux
0 Sector (MBR)
C://
D://
E://
/boot
/dev/hda5 /
/dev/hda
/dev/hda1
/dev/hda2
/dev/hda3
/dev/hda4
/dev/hda5
/dev/hda6
FAT32
FAT32
FAT32
Ext3
Ext3
swap
Primary
Extended (Logical)
/boot
/etc
/usr
/var
/home
/tmp
/dev
/proc
/media
/bin /sbin /boot /etc /var /dev /usr /proc /home /tmp /media
All commands which are used by normal users All commands which are used by supper user Linux kernel ( vmlinuz , initrd ) Grub directory System conf files Server data logs Mail proxy cache All devices name stored in /dev All gui tools installed in /usr System informations ( picture of RAM ) User's home dir's Temporary files Auto mounted devices mount point in /media
2:--Concept of swap
/ /boot
Ext3
Ext3
swap
44MB
[Ram 256MB]
Copy a file from /disk/file and paste it in /etc with myfile name
Remove a file
Remove a directory with out r option and you face will an error
Merging tow commands with pipe sign output of the first command is input of second command
Add tow uses ishaq and umar with different command with default properties
Add a group
Customizing users properties at the time of creating user [u uid ] [-g primary group] [-G secondary group] [ -c comments] [ -d home directory path ] [-s login shell ]
All users information stored in /etc/passwd every user have a seven column line in this file 1-user name [ user authenticate at the time of login from the first column of /etc/passwd ] 2-password required [ x means users must required password if remove this x user can login without password ] 3-uid [ 500 first user id 0 to 499 ids are reserved 0 for root user and remaining for services users ] 4-gid [ every user relate with any group which stored in /etc/group ] 5-comments [full name but it is not compulsory only for information ]
6-home directory path [ linux file system is read only for normal user only his home directory is with full permission for normal user 7-login shell (/bin/bash, /bin/sh, /bin/tsh, /sbin/nologin) every user required a shell for login without shell user can never login at machine
5:- Help
6:- Permission
Gui permission method...
Three types of permission read write and execute, Ever file and folder have three relations owner group and others [ Read = r write = w execute = x ] [ owner = u group = g other = o ]
10
1= nature of object [d=dir -=file L=link] 2= first three permission for owner [ rwx ] 3= second three permission for group members [ r-x] 4= third three permission for others [r-x] 5= number of inodes contain by this directory 6= owner of directory 7= group of directory 8= size of directory 9= creating date of object 10= name of object
Assigning read writ and execute permission to user, group and other with single command
Assigning different permission with different commands which separate with semicolon
[ Write = 2 ]
[ Execute = 1 ]
Assigning full permission to owner and no permission for group and others
Assigning full permission for owner and group no permission for other
Assigning full permission for owner and read, and execute for group and others
8:-Partition
Fdisk utility use to manage hard disk
Help
Size in Mb
This command sink and updating kernel real table with fdisk utility you can check this table cat /proc/partitions
Device name
Mount point
File system
Umounting partition
/dev/hdc6 or LABEL=work
Query all installed rpms but show only those which have bind word in there name
Query the list of files and directories which zsh will be create after installing
Fresh installation of zsh package with new version ( old version of zsh must be installed before using Fvh )
Update zsh package with new version of zsh ( Uvh can work as ivh )
Enable eth1
Disable eth1
Run this utility it will create aquota.user file in /home this file contain the information of quota
13:- ACL
14:- Crontab
SWAP Partition
/dev/hdc7
swap
swap
defaults
1: POST 2: Boot device selected 3: First sector of boot device read and executed Reading information from MBR
2: Device driver initialization 3: Mount root file system read only Load some driver or modules which need for system booting every kernel have its own initrd (compress drivers or modules file
X display Manager
Read /etc/rc.local :- script is run each time the system enters a run level its is a convenient place to start process that need to b running
/etc/rc.d/rc.sysinit 1: 2: 3: 4: 5: 6: 7: set kernel parameters in /etc/sysctl.conf load system maps Enables swap partition Sets hostname Root file system check and remount Active Raid and LVM devices Enable disk quota
Run levels:-# ls /etc/rc.d/ Rc0.d Rc1.d Rc2.d Rc3.d Rc4.d Rc5.d Rc6.d [halt or shutdown ] [ emergency mode or single user mode without password ] [ Multi user mode without nfs service ] [ Full multi user mode ] [ unused ] [ X11 ] [ Reboot ]
0striping
1Mirroring
Hard disk
2-32
2-2
3-32
Failure support
Size loss
0%
50%
=1 hard disk
19:-YUM
On client