Sunteți pe pagina 1din 9

Red Hat Enterprise Linux 6

2012

Gaurav Rajan Lad 04-Aug-12

Beginning the Red Hat Enterprise Linux 6

Gaurav Rajan Lad

Red Hat Linux 6 Log In Screen

Red Hat Linux 6 Home Screen

Basic Commands : ls l ls a ls ld /etc date cal cal 2008 cal 2008 |less cal 2008 |more tty ctrl d ctrl alt Backspace useradd whoami clear reset history history c poweroff ctrl + ctrl mkdir p touch f1 List Directories Shows Hidden Files Will Shows /etc Properties mm dd hh mm yyyy .ss Month Date Hours Minute Year Second Calendar Shows 2008 Calendar Shows 2008 Calendar In Short View Shows 2008 Calendar In Short View Terminal Log Out From Text Mode User Log Out From Graphical Mode User To Add User Login Name Of User Clean Terminal Clear Buffer History Of Inserted Commands To Clear History Of Inserted Commands To Shut Down Machine To Increase Window Size To Decrease Window Size To Make Tree Directories ex. abc/def Make An Empty File

cat >File Name cp Path Of Source Path Of Destination mv Original File Name New File Name cp a Source Destination rm File Name Or File Path rm rf Directory Name rm Directory Name head File Path Or Name tail File Path Or Name head n 2 nnn tail n 2 nnn chvt 1 To 7 startx su -Username passwd Username ctrl Shift t <tab> After Incomplete Command Bash ctrl r

View File With Inserted Name To Copy File To Rename File To Copy Directory Remove File To Remove Directory Force Fully To Remove Directory To View Top 10 Lines To View Last 10 Lines To View First 2 Lines Of nnn To View Last 2 Lines Of nnn Change Terminal To 1 To 6 For Text Mode OR 7 For GUI Transform Text Mode To GUI Mode To Switch User To Diversify User Password New Tab In Terminal To Complete Command Argument To Store History Of Commands Which Are Executed To Search For A Command From History

Partition Management Commands : df l dh -h fdisk -l p t n partx -a (with partition name) mkfs.ext4 (with partition name) mount (partition name space directory) umount (mounted directory) pvcreate (with partition name) pvdisplay vgcreate (group name partition name) vgscan vgdisplay lvcreate lvdisplay lvreduce lvextend resize2fs e2fsck -f (with partition name) Partition Of HDD In KB Partition Of HDD In GB To Display Present Partition To Print (Show) Partition To Toggle Partition To Create New Partition In Present HDD To Activate Partition To Format Partition To Mount Partition To Un-mount Partition To Create Physical Partition To Display Physical Partition To Create Volume Group To Check Volume Group To Display Volume Group To Create Logical Volume To Display Logical Volme To Reduce Logical Volme To Extend Logical Volme To Update Resized Partition Into Partition Table To Check File System

VI Editor (Visual Editor) : 1. yy 2. 2yy, 3yy, 4yy,. 3. X 4. 2x, 3x, 4x,. 5.P Paste 6. P 7.cc 8.Dd 9. 2dd, 3dd, 4dd,. 10.u 11.:set nu 12. :set nonu 13. Esc + : + 10, 11, 12,. 14.: 15.q 16.q! 17.w 18.wq 19.wq! 20. Insert Or I Paste Above Cursor To Cut Line To Delete The Line To Delete The Line To Undo The Work To Set Numbers No Numbers Or Remove Numbers To Go On Line No.10,11,12 To Go On Command Mode Quit Quit Force Fully Save Save And Quit Save And Quit Force Fully To Go In Insert Or Edit Mode To Copy The Line To Copy 2,3,4 Line To Cut Or Remove Character To Cut 2,3,4 Character

User Management And Different Task : Primary Group : useradd g sales gaurav usermod g cricket gaurav Secondary Group : useradd G sales gaurav usermod G cricket gaurav Different Task : usermod l new name old name usermod L gaurav usermod U gaurav userdel gaurav userdel r gaurav useradd m gaurav passwd:**** Give Password Of Your Own mkdir /home/gaurav cp /etc/skel/.*/home/gaurav To Add User Into sales Group To Modify User's secondary Group Into cricket To Add User Into sales Group To Modify User's Group Into cricket

To Change Login Name To Lock User Password To Unlock User Password To Delete User To Delete User Along With Home Directory To Add user Without Home Directory To Set User Password Create Home Directory For User Gaurav Manually To Copy Standard Files To NEw User

S-ar putea să vă placă și