SlideShare a Scribd company logo
1 of 21
In 1969, Four programmer Ken Thompson, Dennis Ritchie, Rudd Canady &
Doug McElroy made a program in Bell labs which does not have any name in
year 1969.
Brian Kernighan checked that program & found it is very good software for
client & networking purpose. He gave the name Unix to this program on 1st
January 1970 (epoch time).
First Operating System. That time that program was written in Assembly
language.
In 1972, a programmer Dennis Ritchie started converting this program in C
language. (Also called founder of C language).
1973- Unix in C language.
Paul Allen & Bill Gates are the employee of Bell Labs.
In 1981, they both started Microsoft with 9 more candidates & they gave a
programme named Xenix (1980) but it was flopped.
In 1981- Launched MS-DOS 1.0
In 1984- UNIX open source
In 1985- First Graphical Based OS- Win 2.0
In 1991, Linus Benedict Torvalds, B-tech Iind
year Computer Science, 23
years old student of University of Helensiki (Finland) made Kernel (25th
August 1991).
In 1994- Red Hat Company (collection of Linux Sets) came into existence.
96.8 % servers of Linux till 2009.
Everything is a file.
Small, single purpose programmes.
Ability to Chain programmes together to perform complex tasks.
Avoid captive user interfaces.
Configuration data stored in text.
 CPU
Min- Intel Pentium 4 2.0GHz
Rec- Intel Duel Core 2.0GHz
 RAM
Min- 512MB (Graphical) 384MB (CLI)
Rec- 1GB
 Hard Disk
Min- 4.5GB, Rec- 10GB
 4GB RAM – 2GB Swap
 4-16GB RAM- 4GB Swap
 16-64GB RAM- 8GB Swap
 / - Root Partition
 /boot – Boot Partition
 /swap - swap partition
 /home – Home Partition
 /home - Users home (all users folders)
 /bin, /usr/bin - Commands (user executable & Scripts)
 /sbin, /usr/sbin - root privileged command
 /usr - User’s Configurations files
 /etc - System Configuration files
 /boot - Linux Kernel & Bootable files
 /root - root (Admin) Data
 /mnt - for mounting any external devices
 /media - for mounting CD/DVD drives
 /dev - devices (HDD, CD-ROM, Pen Drive)
 /var, - Log files
 /proc - Current running system Information
 /sys - System Hardware Files
 /lib - Library files stored – All commands
 /net - Accessing Network File system
 /misc - Files for Auto-Mounting
 /opt - Optional software
 /tmp - Temporary files
 /srv - Server Database
 Post LILO (RHEL4)
 Boot Loader
GRUB (RHEL 5)
 Kernel (Vmlinuz)
 initrd (All device file information)
 init (Run Level)
Directory commands:
 mkdir <Directory name> - For creating directory.
 cd <Directory name> - change directory.
 cd .. - to come out from working directory.
 rmdir <Directory name> - to remove directory
File Commands:
 touch <filename> - creates a blank file.
 cat > filename - creates a file and for saving this file (ctrl + D)
 cat - to see the content of the file.
 cat file1 >> file2 - to move file1 matter in file2
 cat -n filename - to see how many lines are written in that file.
Commands for deleting:
 rm filename - deletes a file.
 rm -i - deletes file/folder in interactive mode (asking mode)
Help Commands:
 whatis <command>
man <command>
 info <command>
 <command> --help
 which <command>
 cd /usr/share/doc
These Commands are used as help commands.
Print all tags and summary of the asked command.
Copy:
 cp <source> <destination> - copies files from source to destination
 cp -i <source> <destination> - copies files from source to destination in asking
mode
 cp -i * <destination> - copies current working directory all data to
destination.
 cp -r <directory name> <destination> - copies directory from source to
destination
Rename & Move:
mv <oldfile> <newfile> (Rename)
mv <filename> <where we have to move the file> (Move)
Listing Commands:
 ls - listing files/folders
 ls -l (ll) - long listing of files/folders with whole information
 ls -a - lists all files/folders (hidden also)
 ls ??? - all files/folders named with 3 characters
 ls m* - files & directories started with letter m.
 poweroff -f
 halt -n -p - We can turn off our system by these
commands
 init 0
 init 6 - We can Restart our system by these
commands
 reboot
 startx - Switch from command to graphic.
 init 5 - Restart System graphically.
 history - To see history of recent commands.
 history -c - To clear the history of recent commands
 bc - Starts basic calculator.
 whoami or w - To know by which user we logged on
 mkfs.vfat -I /dev/device id - To format device in fat format
 look <word> - For looking the exact word spelling.
 date mmddhhmmyy - To set date.
 uname - To see kernel name.
 uname –r - Kernel release.
 uname –a - Whole information about kernel.
 file <file/directory name> - To check whether it is file or folder.
 cat > /etc/issue - To create logoff scripts.
 cat > /etc/motd - To create logon scripts.
 cal yyyy or mm yyyy - shows calendar of that month & year.
 adduser <username> - To create user
 passwd <username> - To give password to user.
 userdel (-r) <username> - To delete user.
 groupadd <name> - To add a group.
 usermod -G <group> <user> - It will add user to group.
 groupdel <name> - To delete group.
 chage -E YYYY-MM-DD <user> - Set user expiration.
 chage -l <username> - To see user detailed information.
 chage -W 1 <username> - To set warning period for user.
 usermod -L <username> - To lock a user account.
 usermod -U <username> - To unlock a user account.
 passwd -d <username> - To remove password for a user.
_ _ _ _ _ _ _ _ _ _ owner group filename
f/d User group others
r=4 (22
) w=2 (21
) x=1 (20
)
read write execute
For directory maximum permission = 777
For files maximum permission = 666
Default permission for file = 644
Default permission for directory = 755
To give user full permission
 chmod 777 filename
To see the internal permission
 umask (max per. - umask = default permission)
 umask 000 (full permission for all)
 umask 777 (deny for all)
To change the owner of files or directory-
 chown <username> file/directory name
To change group of files & directory-
 chgrp <groupname> file/directory name
Commands for setting permission on a single user:
setfacl -m u:<user>:rwx /ww
It will set the full user permission on ww directory.
 getfacl <filename>
It will display full information about that file or directory.
Every user has its own UID (User Identification)
Every group has its own GID (Group Identification)
If UID matches (i.e. login user & owner) user permission is applicable.
If GID matches (i.e. login user & group) group permission is applicable.
If nothing matches other permission is applicable.
Files where UID & GID information saved:
/etc/passwd (UID)
/etc/shadow (UID in encrypted form)
/etc/group (GID)
/etc/gshadow (GID in encrypted form)

More Related Content

What's hot

Basic command ppt
Basic command pptBasic command ppt
Basic command ppt
Rohit Kumar
 
Unix(introduction)
Unix(introduction)Unix(introduction)
Unix(introduction)
meashi
 

What's hot (19)

Linux Basic Commands
Linux Basic CommandsLinux Basic Commands
Linux Basic Commands
 
Linux basic
Linux basicLinux basic
Linux basic
 
Basic commands of linux
Basic commands of linuxBasic commands of linux
Basic commands of linux
 
Introduction to linux day-3
Introduction to linux day-3Introduction to linux day-3
Introduction to linux day-3
 
Rhel 6.2 complete ebook
Rhel 6.2 complete ebookRhel 6.2 complete ebook
Rhel 6.2 complete ebook
 
Linux commands
Linux commandsLinux commands
Linux commands
 
Basic command ppt
Basic command pptBasic command ppt
Basic command ppt
 
Know the UNIX Commands
Know the UNIX CommandsKnow the UNIX Commands
Know the UNIX Commands
 
Linux cheat-sheet
Linux cheat-sheetLinux cheat-sheet
Linux cheat-sheet
 
Basic 50 linus command
Basic 50 linus commandBasic 50 linus command
Basic 50 linus command
 
Unix(introduction)
Unix(introduction)Unix(introduction)
Unix(introduction)
 
UNIX Drive Storage
UNIX Drive StorageUNIX Drive Storage
UNIX Drive Storage
 
Linux basics
Linux basicsLinux basics
Linux basics
 
Common linux ubuntu commands overview
Common linux  ubuntu commands overviewCommon linux  ubuntu commands overview
Common linux ubuntu commands overview
 
Rhel 6.2 complete ebook
Rhel 6.2  complete ebookRhel 6.2  complete ebook
Rhel 6.2 complete ebook
 
Linux Getting Started
Linux Getting StartedLinux Getting Started
Linux Getting Started
 
Linux Bash Shell Cheat Sheet for Beginners
Linux Bash Shell Cheat Sheet for BeginnersLinux Bash Shell Cheat Sheet for Beginners
Linux Bash Shell Cheat Sheet for Beginners
 
Linux basic commands
Linux basic commandsLinux basic commands
Linux basic commands
 
linux-commandline-magic-Joomla-World-Conference-2014
linux-commandline-magic-Joomla-World-Conference-2014linux-commandline-magic-Joomla-World-Conference-2014
linux-commandline-magic-Joomla-World-Conference-2014
 

Similar to Rhel1

Unixcommandsinetltesting 130712050932-phpapp01
Unixcommandsinetltesting 130712050932-phpapp01Unixcommandsinetltesting 130712050932-phpapp01
Unixcommandsinetltesting 130712050932-phpapp01
Gyanendra Kumar
 
Introduction to Unix
Introduction to UnixIntroduction to Unix
Introduction to Unix
Sudharsan S
 
Unix fundamentals
Unix fundamentalsUnix fundamentals
Unix fundamentals
Dima Gomaa
 
The one page linux manual
The one page linux manualThe one page linux manual
The one page linux manual
Craig Cannon
 

Similar to Rhel1 (20)

Unixcommandsinetltesting 130712050932-phpapp01
Unixcommandsinetltesting 130712050932-phpapp01Unixcommandsinetltesting 130712050932-phpapp01
Unixcommandsinetltesting 130712050932-phpapp01
 
Linux basics part 1
Linux basics part 1Linux basics part 1
Linux basics part 1
 
Solaris basics
Solaris basicsSolaris basics
Solaris basics
 
Programming Embedded linux
Programming Embedded linuxProgramming Embedded linux
Programming Embedded linux
 
Linux ppt
Linux pptLinux ppt
Linux ppt
 
Linux basic commands
Linux basic commandsLinux basic commands
Linux basic commands
 
Introduction to Unix
Introduction to UnixIntroduction to Unix
Introduction to Unix
 
Unix Linux Commands Presentation 2013
Unix Linux Commands Presentation 2013Unix Linux Commands Presentation 2013
Unix Linux Commands Presentation 2013
 
Linux
LinuxLinux
Linux
 
Unix Shell Script - 2 Days Session.pptx
Unix Shell Script - 2 Days Session.pptxUnix Shell Script - 2 Days Session.pptx
Unix Shell Script - 2 Days Session.pptx
 
Unix Administration
Unix AdministrationUnix Administration
Unix Administration
 
Unix fundamentals
Unix fundamentalsUnix fundamentals
Unix fundamentals
 
Basic Linux day 1
Basic Linux day 1Basic Linux day 1
Basic Linux day 1
 
The one page linux manual
The one page linux manualThe one page linux manual
The one page linux manual
 
The one page linux manual
The one page linux manualThe one page linux manual
The one page linux manual
 
Introduction to Linux
Introduction to Linux Introduction to Linux
Introduction to Linux
 
Linux file commands and shell scripts
Linux file commands and shell scriptsLinux file commands and shell scripts
Linux file commands and shell scripts
 
Linux filesystemhierarchy
Linux filesystemhierarchyLinux filesystemhierarchy
Linux filesystemhierarchy
 
Linux Presentation
Linux PresentationLinux Presentation
Linux Presentation
 
Linux Commandos Cheat
Linux Commandos CheatLinux Commandos Cheat
Linux Commandos Cheat
 

Recently uploaded

Recently uploaded (20)

MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 

Rhel1

  • 1.
  • 2. In 1969, Four programmer Ken Thompson, Dennis Ritchie, Rudd Canady & Doug McElroy made a program in Bell labs which does not have any name in year 1969. Brian Kernighan checked that program & found it is very good software for client & networking purpose. He gave the name Unix to this program on 1st January 1970 (epoch time). First Operating System. That time that program was written in Assembly language. In 1972, a programmer Dennis Ritchie started converting this program in C language. (Also called founder of C language). 1973- Unix in C language.
  • 3. Paul Allen & Bill Gates are the employee of Bell Labs. In 1981, they both started Microsoft with 9 more candidates & they gave a programme named Xenix (1980) but it was flopped. In 1981- Launched MS-DOS 1.0 In 1984- UNIX open source In 1985- First Graphical Based OS- Win 2.0 In 1991, Linus Benedict Torvalds, B-tech Iind year Computer Science, 23 years old student of University of Helensiki (Finland) made Kernel (25th August 1991). In 1994- Red Hat Company (collection of Linux Sets) came into existence. 96.8 % servers of Linux till 2009.
  • 4. Everything is a file. Small, single purpose programmes. Ability to Chain programmes together to perform complex tasks. Avoid captive user interfaces. Configuration data stored in text.
  • 5.  CPU Min- Intel Pentium 4 2.0GHz Rec- Intel Duel Core 2.0GHz  RAM Min- 512MB (Graphical) 384MB (CLI) Rec- 1GB  Hard Disk Min- 4.5GB, Rec- 10GB
  • 6.  4GB RAM – 2GB Swap  4-16GB RAM- 4GB Swap  16-64GB RAM- 8GB Swap  / - Root Partition  /boot – Boot Partition  /swap - swap partition  /home – Home Partition
  • 7.  /home - Users home (all users folders)  /bin, /usr/bin - Commands (user executable & Scripts)  /sbin, /usr/sbin - root privileged command  /usr - User’s Configurations files  /etc - System Configuration files  /boot - Linux Kernel & Bootable files  /root - root (Admin) Data  /mnt - for mounting any external devices  /media - for mounting CD/DVD drives  /dev - devices (HDD, CD-ROM, Pen Drive)  /var, - Log files  /proc - Current running system Information  /sys - System Hardware Files  /lib - Library files stored – All commands  /net - Accessing Network File system  /misc - Files for Auto-Mounting  /opt - Optional software  /tmp - Temporary files  /srv - Server Database
  • 8.  Post LILO (RHEL4)  Boot Loader GRUB (RHEL 5)  Kernel (Vmlinuz)  initrd (All device file information)  init (Run Level)
  • 9. Directory commands:  mkdir <Directory name> - For creating directory.  cd <Directory name> - change directory.  cd .. - to come out from working directory.  rmdir <Directory name> - to remove directory
  • 10. File Commands:  touch <filename> - creates a blank file.  cat > filename - creates a file and for saving this file (ctrl + D)  cat - to see the content of the file.  cat file1 >> file2 - to move file1 matter in file2  cat -n filename - to see how many lines are written in that file.
  • 11. Commands for deleting:  rm filename - deletes a file.  rm -i - deletes file/folder in interactive mode (asking mode)
  • 12. Help Commands:  whatis <command> man <command>  info <command>  <command> --help  which <command>  cd /usr/share/doc These Commands are used as help commands. Print all tags and summary of the asked command.
  • 13. Copy:  cp <source> <destination> - copies files from source to destination  cp -i <source> <destination> - copies files from source to destination in asking mode  cp -i * <destination> - copies current working directory all data to destination.  cp -r <directory name> <destination> - copies directory from source to destination
  • 14. Rename & Move: mv <oldfile> <newfile> (Rename) mv <filename> <where we have to move the file> (Move) Listing Commands:  ls - listing files/folders  ls -l (ll) - long listing of files/folders with whole information  ls -a - lists all files/folders (hidden also)  ls ??? - all files/folders named with 3 characters  ls m* - files & directories started with letter m.
  • 15.  poweroff -f  halt -n -p - We can turn off our system by these commands  init 0  init 6 - We can Restart our system by these commands  reboot  startx - Switch from command to graphic.  init 5 - Restart System graphically.  history - To see history of recent commands.  history -c - To clear the history of recent commands  bc - Starts basic calculator.  whoami or w - To know by which user we logged on
  • 16.  mkfs.vfat -I /dev/device id - To format device in fat format  look <word> - For looking the exact word spelling.  date mmddhhmmyy - To set date.  uname - To see kernel name.  uname –r - Kernel release.  uname –a - Whole information about kernel.  file <file/directory name> - To check whether it is file or folder.  cat > /etc/issue - To create logoff scripts.  cat > /etc/motd - To create logon scripts.  cal yyyy or mm yyyy - shows calendar of that month & year.
  • 17.  adduser <username> - To create user  passwd <username> - To give password to user.  userdel (-r) <username> - To delete user.  groupadd <name> - To add a group.  usermod -G <group> <user> - It will add user to group.  groupdel <name> - To delete group.  chage -E YYYY-MM-DD <user> - Set user expiration.  chage -l <username> - To see user detailed information.  chage -W 1 <username> - To set warning period for user.  usermod -L <username> - To lock a user account.  usermod -U <username> - To unlock a user account.  passwd -d <username> - To remove password for a user.
  • 18. _ _ _ _ _ _ _ _ _ _ owner group filename f/d User group others r=4 (22 ) w=2 (21 ) x=1 (20 ) read write execute For directory maximum permission = 777 For files maximum permission = 666 Default permission for file = 644 Default permission for directory = 755
  • 19. To give user full permission  chmod 777 filename To see the internal permission  umask (max per. - umask = default permission)  umask 000 (full permission for all)  umask 777 (deny for all) To change the owner of files or directory-  chown <username> file/directory name To change group of files & directory-  chgrp <groupname> file/directory name
  • 20. Commands for setting permission on a single user: setfacl -m u:<user>:rwx /ww It will set the full user permission on ww directory.  getfacl <filename> It will display full information about that file or directory. Every user has its own UID (User Identification) Every group has its own GID (Group Identification) If UID matches (i.e. login user & owner) user permission is applicable. If GID matches (i.e. login user & group) group permission is applicable. If nothing matches other permission is applicable.
  • 21. Files where UID & GID information saved: /etc/passwd (UID) /etc/shadow (UID in encrypted form) /etc/group (GID) /etc/gshadow (GID in encrypted form)