Professional Documents
Culture Documents
Open Source?
Unix/Linux
Contents: Introduction and History
Types And Flavors
Why Linux & that too Red Hat
Installation using Virtual Machine
Basic key Points
User Administration
File and Directory Concept
File Security
Services management
Boot Process
Software Installation
Basic Networking and File sharing
Introduction
And
History
2.1 Introduction And history:
ACM award for the outstanding paper of 1974 in systems and languages;
IEEE Emmanuel Piore Award (1982),
Bell Laboratories Fellow (1983);
Association for Computing Machinery Turing Award (1983);
C&C Foundation award of NEC (1989):
IEEE Hamming Medal (1990), etc.
2.1 Introduction And history:
Flavors
2.2 Types And Flavors
Most Widely Used Linux which runs on server machines and enable us to
provide services.
And also let us to make virtualizations (KVM) of multiple Operating System within
it, hence making multiple layered security more enhanced.
2.3 Why Red hat Linux
The top 10 enterprise apps run on RHEL and 500++ rely on, hence jobs++
Mostly Used in Cloud Computing
The most demanding applications run better on red hat enterprise linux
Enterprise linux is robust, scales well, and is more reliable
Enterprise linux is secure
Red hat partners with hardware vendors
Enterprise linux supports standard datacenter management tools
Everyone benefits from red hat’s strategic partnerships
Red hat training and support
Enterprise linux is ahead of the curve
Installations
using Virtual Machine
2.4 Installation using Virtual Machine
What is VM?
Tool Name: VMware Workstation
Used as: To run Multiple OS within One OS regardless of buying Multiple
Machines to run
Competitors: Oracle Virtual Box. Parallels, QEMU etc.
You must have
rhel-server-7.0-x86_64-dvds.ISO or DVD in order to install.
Follow the steps :
Basic
key Points
2.5 Basic key Points
2 In Linux systems every user will have a unique user ID. It is known as UID.
The Range of UIDs will be as follows:
1. "/etc/passwd“
3. "/etc/group"
Contains information about groups in the system.
#adduser or #useradd
A command to add a user with all the fields we mentioned before is as follows.
#useradd -u UID -g GID/Group_name -c COMMENT -d Home_dir -s LOGIN SHELL User_name
An example:
#useradd -u 555 -g linuxg -c Teamlead -d /teamleads/azeem -s /bin/ksh azeem
Prior to the executing of the above command you should create the group 'linuxg'.
You can also add -p for password and -G for secondary groups. If u want to add the
password, u 've to give the password in encrypted form.
For example,
#useradd -p encrypted_password Azepasswd
2.6 User Administration
When we create a user a group also will be created in the same name of the user.
But what if the user needs access to the directories created by other groups? or a user
has to supervise a number of groups? then comes the secondary group concept.
All the other groups are added as the secondary groups of that user.
# fdisk –l
**Another Way of recognizing Partition is Directory which have Lost+Foud Directory
2.7 File and Directory Concept
Partition Layouts and Types
There are two kinds of major partitions on a Linux system:
• data partition: normal Linux system data, including the root partition containing all the
data to start up and run the system;
• swap partition: expansion of the computer's physical memory, extra memory on hard disk.
Partition Formatting:
Fat, Fat32, NTFS
Extfat, ext4, swap, etc
# fdisk –l
**Another Way of recognizing Partition is Directory which have Lost+Found Directory
2.7 File and Directory Concept
Linux file system layout
2.7 File and Directory Concept
Linux file system layout (Details)
Adjusting PATHS
# cd /
# cd ..
# cd ../
# cd ../etc
File
Security
2.8 File Security
#ls –l file_name
USERs Public
Output of File Permissions would be alike:
- rw- rw- r--
- --- --- ---
File OR Dir
Groups
# ps –aux | more
#netstat –lp | more
#ps –aux | grep rpc*
#kill -9 PID
>>To Start stop etc with Services:
# Service service_name start/stop/restart/status
>>System Utilizations;
#top
Basic Networking
And
File Sharing
2.10 Basic Networking And File Sharing
Terms:
10-> 100 mbps eth0 or en01
1000 mbps an0
Wireless wlan0
Modem(P->PP) ppp0
Virtual Bridge Virbr0
Loopback l0
Ip Obtain (Dynamic/Static):
Statically: #ipconfig en01 192.168.0.1 255.255.255.0 up
Or #ipconfig en01 192.168.0.1/24 up
Dynamically: #dhclient en01
For File Sharing:
We use SAMBA.rpm tool to share resources from linux , and it enables to provide client-
server connection between windows and Linux.
Basic Networking
And
File Sharing
2.11 Software Installation
For offline Repositories:
List All Programs installed
#rpm –qa
#rpm –qa | more
#rpm –qa | grep –i name* e.g setup
Install software.RPM
#rpm –ivh Package_Fullname.rpm
Check Installation
#rpm –q package_name
Uninstalling Programs:
#rpm –e package_name
For Online Repositories of REDHAT
Yum install packages_name
Boot Process
Of Linux
2.12 Boot Process