SlideShare a Scribd company logo
1 of 20
Linux
Introduction
    August 2012
Agenda
History
Introduction
Partition
FileSystem
Permission
Commands
History
• Unix (very expensive)  Minix (for students)
• Enter Linus Torvalds – Linux Kernel
• With GNU’s Richard Stallman – Bash Shell
• Linux Kernel + Shell = GNU/Linux
• “Linux is obsolete” - Andrew Tanenbaum, 1992
    – Monolithic kernel
    – Multithreading file system is useless
    • Cost to rebuild: $1.4 Billion = 6 million lines of
      code
    • In 87% of Servers and supercomputers
    • The Open Source Initiative
Introduction

•   Cheap
•   Huge community
•   Open source
•   Presence of mind
•   Jobs
•   Better understanding
Introduction

•   Monolithic Kernel
•   bash, sh, ksh, csh - CLI
•   X Windows + Gnome, KDE
•   Ext2, ext3, ext4 File System
•   Everything is a file
•   Multi-user – Built to last




                                   5
Linux Kernel

• Monolithic Kernel – Resource Manager
  for process, memory or hardware.
• Process – Threads, POSIX
• Memory – page size, swapping
• Virtual file system
• Every major protocols supported in
  Linux – SCTP, TCP, VPN, IP Tunnel etc


Anatomy of Linux Kernel: http://www.ibm.com/developerworks/linux/library/l-linux-kernel/?
     S_TACT=105AGX59&S_CMP=GR&ca=dgr-lnxw07LKernalAnatomy




                                                                                            6
Bourne-again shell

  There are 10 types of people in this world, who understand binary and
   those who don’t.
• Macro processor for commands– The main port of entry
• Default on Linux and Mac OS X
• Interactive and Shell scripting
• Shell script == .bat files (but way more powerful and easier!)
• It’s interpreted - shell reads each line and acts on it immediately
• Automate task, create own command, play with your box!




                                                                          7
Distro & Installation




Packages: for example to each Distro
debian: dist
mandrake: Mandrake
redhat: RedHat
suse: suse
fedora: Fedora

images: image of Linux (Kernel modules, installation process/boot,
  system recovery

dosutils: some tools for the installation from DOS

                                                                     8
File System & Partitioning




                             9
File System & Partitioning




                             10
File System & Partitioning
A Sample of Paritioning:
/boot    100M
SWAP     512M
/        2000M
/usr     6000M
/home    1000M
/tmp     2000M
/var     remain space

Moreover, Multiple OS/Boot Supported by Linux (LILO – LInux boot
  LOader, ...)




                                                                   11
File System & Devices




hda1: first partition of first IDE drive
hda2: second partition of first IDE drive
sdc3: third partition of the third SCSI drive
IDE: 4 main partitions & 1 of them could be extended one (allow sub-par).
In Linux: max 64 IDE partitions & 16 SCSI

                                                                            12
File System & Devices




                        13
File System & Devices




                        14
File System & Permission




                           15
File System & Permission
                               $ chmod a=r testfile
                               (read & wipe out all pers)
                               -r--r--r—

                               $ chmod g+x testfile
                               (execute perm. for group)
                               -r--r-xr—

                               $ chmod u+wx testfile
                               (write & execute for owner)
                               -rwxr-xr—

                               $ chmod ug-x testfile
                               (remove execute for both owner group)
chmod –R 777 directory-name/   -rw-r--r--



d = directory
- = regular file
l = symbolic link
s = Unix domain socket
p = named pipe
c = character device file
b = block device file
                                                             16
File System & Permission




                           17
YP New System
                                                             MS Servers
                                                             (DB servers, …)
                                           Ext: 190.60.21.91
                                            172.17.17.96

                       Ext: 190.60.21.89
                       172.17.17.98           Yepex ME
                                              Production 1
                                                                 172.17.17.92

                                              Yepex ME
                                              Production 2
   172.17.17.102                           172.17.17.97
                                           Ext: 190.60.21.92
   Ext: 190.60.21.93
                                           172.17.17.95
                       172.17.17.99
                       Ext: 190.60.21.90
                                              Yepex ME Staging
                                           Ext: 190.60.21.88



                                                                                18
Accumulate & JBoss
Refer other slides pls.




                          19
THANK YOU

More Related Content

What's hot

Recipe of a linux Live CD (archived)
Recipe of a linux Live CD (archived)Recipe of a linux Live CD (archived)
Recipe of a linux Live CD (archived)Bud Siddhisena
 
Linux fundamental - Chap 11 boot
Linux fundamental - Chap 11 bootLinux fundamental - Chap 11 boot
Linux fundamental - Chap 11 bootKenny (netman)
 
Perintah perintah dasar linux Operating Sistem
Perintah perintah dasar linux Operating SistemPerintah perintah dasar linux Operating Sistem
Perintah perintah dasar linux Operating SistemRoziq Bahtiar
 
50 Perintah Dasar pada linux
50 Perintah Dasar pada linux50 Perintah Dasar pada linux
50 Perintah Dasar pada linuxReskyRian
 
Lecture 4 FreeBSD Security + FreeBSD Jails + MAC Security Framework
Lecture 4 FreeBSD Security + FreeBSD Jails + MAC Security FrameworkLecture 4 FreeBSD Security + FreeBSD Jails + MAC Security Framework
Lecture 4 FreeBSD Security + FreeBSD Jails + MAC Security FrameworkMohammed Farrag
 
Lecture 6 Kernel Debugging + Ports Development
Lecture 6 Kernel Debugging + Ports DevelopmentLecture 6 Kernel Debugging + Ports Development
Lecture 6 Kernel Debugging + Ports DevelopmentMohammed Farrag
 
Yum server ( FTP Server )
Yum server ( FTP Server ) Yum server ( FTP Server )
Yum server ( FTP Server ) MOHSIN HASAN
 
Development platform virtualization using qemu
Development platform virtualization using qemuDevelopment platform virtualization using qemu
Development platform virtualization using qemuPremjith Achemveettil
 
Linux fundamental - Chap 04 archive
Linux fundamental - Chap 04 archiveLinux fundamental - Chap 04 archive
Linux fundamental - Chap 04 archiveKenny (netman)
 
FreeBSD Jail Complete Example
FreeBSD Jail Complete ExampleFreeBSD Jail Complete Example
FreeBSD Jail Complete ExampleMohammed Farrag
 

What's hot (16)

Recipe of a linux Live CD (archived)
Recipe of a linux Live CD (archived)Recipe of a linux Live CD (archived)
Recipe of a linux Live CD (archived)
 
Linux fundamental - Chap 11 boot
Linux fundamental - Chap 11 bootLinux fundamental - Chap 11 boot
Linux fundamental - Chap 11 boot
 
Perintah perintah dasar linux Operating Sistem
Perintah perintah dasar linux Operating SistemPerintah perintah dasar linux Operating Sistem
Perintah perintah dasar linux Operating Sistem
 
Lecture1 Introduction
Lecture1  IntroductionLecture1  Introduction
Lecture1 Introduction
 
ubunturef
ubunturefubunturef
ubunturef
 
50 Perintah Dasar pada linux
50 Perintah Dasar pada linux50 Perintah Dasar pada linux
50 Perintah Dasar pada linux
 
Lecture 4 FreeBSD Security + FreeBSD Jails + MAC Security Framework
Lecture 4 FreeBSD Security + FreeBSD Jails + MAC Security FrameworkLecture 4 FreeBSD Security + FreeBSD Jails + MAC Security Framework
Lecture 4 FreeBSD Security + FreeBSD Jails + MAC Security Framework
 
Ilf2011
Ilf2011Ilf2011
Ilf2011
 
Dockerの準備
Dockerの準備Dockerの準備
Dockerの準備
 
Lecture 6 Kernel Debugging + Ports Development
Lecture 6 Kernel Debugging + Ports DevelopmentLecture 6 Kernel Debugging + Ports Development
Lecture 6 Kernel Debugging + Ports Development
 
Yum server ( FTP Server )
Yum server ( FTP Server ) Yum server ( FTP Server )
Yum server ( FTP Server )
 
Development platform virtualization using qemu
Development platform virtualization using qemuDevelopment platform virtualization using qemu
Development platform virtualization using qemu
 
Linux fundamental - Chap 04 archive
Linux fundamental - Chap 04 archiveLinux fundamental - Chap 04 archive
Linux fundamental - Chap 04 archive
 
XS Boston 2008 Stub Domains
XS Boston 2008 Stub DomainsXS Boston 2008 Stub Domains
XS Boston 2008 Stub Domains
 
FreeBSD Jail Complete Example
FreeBSD Jail Complete ExampleFreeBSD Jail Complete Example
FreeBSD Jail Complete Example
 
Unixtoolbox
UnixtoolboxUnixtoolbox
Unixtoolbox
 

Similar to Linux Introduction: A Guide to Its History, Components, and Commands

Linux Survival Kit for Proof of Concept & Proof of Technology
Linux Survival Kit for Proof of Concept & Proof of TechnologyLinux Survival Kit for Proof of Concept & Proof of Technology
Linux Survival Kit for Proof of Concept & Proof of TechnologyNugroho Gito
 
101 2.1 design hard disk layout
101 2.1 design hard disk layout101 2.1 design hard disk layout
101 2.1 design hard disk layoutAcácio Oliveira
 
101 2.1 design hard disk layout v2
101 2.1 design hard disk layout v2101 2.1 design hard disk layout v2
101 2.1 design hard disk layout v2Acácio Oliveira
 
Online Training in Unix Linux Shell Scripting in Hyderabad
Online Training in Unix Linux Shell Scripting in HyderabadOnline Training in Unix Linux Shell Scripting in Hyderabad
Online Training in Unix Linux Shell Scripting in HyderabadRavikumar Nandigam
 
Andresen 8 21 02
Andresen 8 21 02Andresen 8 21 02
Andresen 8 21 02FNian
 
2345014 unix-linux-bsd-cheat-sheets-i
2345014 unix-linux-bsd-cheat-sheets-i2345014 unix-linux-bsd-cheat-sheets-i
2345014 unix-linux-bsd-cheat-sheets-iLogesh Kumar Anandhan
 
linux minimal os tutorial - by shatrix
linux minimal os tutorial - by shatrixlinux minimal os tutorial - by shatrix
linux minimal os tutorial - by shatrixSherif Mousa
 
Linux training
Linux trainingLinux training
Linux trainingartisriva
 
Basic linux commands for bioinformatics
Basic linux commands for bioinformaticsBasic linux commands for bioinformatics
Basic linux commands for bioinformaticsBonnie Ng
 

Similar to Linux Introduction: A Guide to Its History, Components, and Commands (20)

Unix Basics
Unix BasicsUnix Basics
Unix Basics
 
Linux basic
Linux basicLinux basic
Linux basic
 
Linux Survival Kit for Proof of Concept & Proof of Technology
Linux Survival Kit for Proof of Concept & Proof of TechnologyLinux Survival Kit for Proof of Concept & Proof of Technology
Linux Survival Kit for Proof of Concept & Proof of Technology
 
101 2.1 design hard disk layout
101 2.1 design hard disk layout101 2.1 design hard disk layout
101 2.1 design hard disk layout
 
UNIX Basics and Cluster Computing
UNIX Basics and Cluster ComputingUNIX Basics and Cluster Computing
UNIX Basics and Cluster Computing
 
101 2.1 design hard disk layout v2
101 2.1 design hard disk layout v2101 2.1 design hard disk layout v2
101 2.1 design hard disk layout v2
 
50 most frequently used unix
50 most frequently used unix50 most frequently used unix
50 most frequently used unix
 
50 most frequently used unix
50 most frequently used unix50 most frequently used unix
50 most frequently used unix
 
Online Training in Unix Linux Shell Scripting in Hyderabad
Online Training in Unix Linux Shell Scripting in HyderabadOnline Training in Unix Linux Shell Scripting in Hyderabad
Online Training in Unix Linux Shell Scripting in Hyderabad
 
FreeBSD Portscamp, Kuala Lumpur 2016
FreeBSD Portscamp, Kuala Lumpur 2016FreeBSD Portscamp, Kuala Lumpur 2016
FreeBSD Portscamp, Kuala Lumpur 2016
 
Andresen 8 21 02
Andresen 8 21 02Andresen 8 21 02
Andresen 8 21 02
 
50 Most Frequently Used UNIX Linux Commands -hmftj
50 Most Frequently Used UNIX  Linux Commands -hmftj50 Most Frequently Used UNIX  Linux Commands -hmftj
50 Most Frequently Used UNIX Linux Commands -hmftj
 
2345014 unix-linux-bsd-cheat-sheets-i
2345014 unix-linux-bsd-cheat-sheets-i2345014 unix-linux-bsd-cheat-sheets-i
2345014 unix-linux-bsd-cheat-sheets-i
 
Rhce ppt
Rhce pptRhce ppt
Rhce ppt
 
linux.pdf
linux.pdflinux.pdf
linux.pdf
 
linux minimal os tutorial - by shatrix
linux minimal os tutorial - by shatrixlinux minimal os tutorial - by shatrix
linux minimal os tutorial - by shatrix
 
Linux training
Linux trainingLinux training
Linux training
 
Raj linux
Raj linux Raj linux
Raj linux
 
Linux introduction (eng)
Linux introduction (eng)Linux introduction (eng)
Linux introduction (eng)
 
Basic linux commands for bioinformatics
Basic linux commands for bioinformaticsBasic linux commands for bioinformatics
Basic linux commands for bioinformatics
 

More from Duy Do Phan

Twitter Bootstrap Presentation
Twitter Bootstrap PresentationTwitter Bootstrap Presentation
Twitter Bootstrap PresentationDuy Do Phan
 
BlackBerry Basic
BlackBerry BasicBlackBerry Basic
BlackBerry BasicDuy Do Phan
 
Location based AR & how it works
Location based AR & how it worksLocation based AR & how it works
Location based AR & how it worksDuy Do Phan
 
Cryptography Fundamentals
Cryptography FundamentalsCryptography Fundamentals
Cryptography FundamentalsDuy Do Phan
 
Android Programming Basic
Android Programming BasicAndroid Programming Basic
Android Programming BasicDuy Do Phan
 
SMS-SMPP-Concepts
SMS-SMPP-ConceptsSMS-SMPP-Concepts
SMS-SMPP-ConceptsDuy Do Phan
 
One minute manager
One minute managerOne minute manager
One minute managerDuy Do Phan
 
Work life balance
Work life balanceWork life balance
Work life balanceDuy Do Phan
 

More from Duy Do Phan (13)

Twitter Bootstrap Presentation
Twitter Bootstrap PresentationTwitter Bootstrap Presentation
Twitter Bootstrap Presentation
 
BlackBerry Basic
BlackBerry BasicBlackBerry Basic
BlackBerry Basic
 
PCI DSS
PCI DSSPCI DSS
PCI DSS
 
WCF
WCFWCF
WCF
 
Location based AR & how it works
Location based AR & how it worksLocation based AR & how it works
Location based AR & how it works
 
Iso8583
Iso8583Iso8583
Iso8583
 
Cryptography Fundamentals
Cryptography FundamentalsCryptography Fundamentals
Cryptography Fundamentals
 
SSL
SSLSSL
SSL
 
Android Programming Basic
Android Programming BasicAndroid Programming Basic
Android Programming Basic
 
iOS Basic
iOS BasiciOS Basic
iOS Basic
 
SMS-SMPP-Concepts
SMS-SMPP-ConceptsSMS-SMPP-Concepts
SMS-SMPP-Concepts
 
One minute manager
One minute managerOne minute manager
One minute manager
 
Work life balance
Work life balanceWork life balance
Work life balance
 

Linux Introduction: A Guide to Its History, Components, and Commands

  • 1. Linux Introduction August 2012
  • 3. History • Unix (very expensive)  Minix (for students) • Enter Linus Torvalds – Linux Kernel • With GNU’s Richard Stallman – Bash Shell • Linux Kernel + Shell = GNU/Linux • “Linux is obsolete” - Andrew Tanenbaum, 1992 – Monolithic kernel – Multithreading file system is useless • Cost to rebuild: $1.4 Billion = 6 million lines of code • In 87% of Servers and supercomputers • The Open Source Initiative
  • 4. Introduction • Cheap • Huge community • Open source • Presence of mind • Jobs • Better understanding
  • 5. Introduction • Monolithic Kernel • bash, sh, ksh, csh - CLI • X Windows + Gnome, KDE • Ext2, ext3, ext4 File System • Everything is a file • Multi-user – Built to last 5
  • 6. Linux Kernel • Monolithic Kernel – Resource Manager for process, memory or hardware. • Process – Threads, POSIX • Memory – page size, swapping • Virtual file system • Every major protocols supported in Linux – SCTP, TCP, VPN, IP Tunnel etc Anatomy of Linux Kernel: http://www.ibm.com/developerworks/linux/library/l-linux-kernel/? S_TACT=105AGX59&S_CMP=GR&ca=dgr-lnxw07LKernalAnatomy 6
  • 7. Bourne-again shell There are 10 types of people in this world, who understand binary and those who don’t. • Macro processor for commands– The main port of entry • Default on Linux and Mac OS X • Interactive and Shell scripting • Shell script == .bat files (but way more powerful and easier!) • It’s interpreted - shell reads each line and acts on it immediately • Automate task, create own command, play with your box! 7
  • 8. Distro & Installation Packages: for example to each Distro debian: dist mandrake: Mandrake redhat: RedHat suse: suse fedora: Fedora images: image of Linux (Kernel modules, installation process/boot, system recovery dosutils: some tools for the installation from DOS 8
  • 9. File System & Partitioning 9
  • 10. File System & Partitioning 10
  • 11. File System & Partitioning A Sample of Paritioning: /boot 100M SWAP 512M / 2000M /usr 6000M /home 1000M /tmp 2000M /var remain space Moreover, Multiple OS/Boot Supported by Linux (LILO – LInux boot LOader, ...) 11
  • 12. File System & Devices hda1: first partition of first IDE drive hda2: second partition of first IDE drive sdc3: third partition of the third SCSI drive IDE: 4 main partitions & 1 of them could be extended one (allow sub-par). In Linux: max 64 IDE partitions & 16 SCSI 12
  • 13. File System & Devices 13
  • 14. File System & Devices 14
  • 15. File System & Permission 15
  • 16. File System & Permission $ chmod a=r testfile (read & wipe out all pers) -r--r--r— $ chmod g+x testfile (execute perm. for group) -r--r-xr— $ chmod u+wx testfile (write & execute for owner) -rwxr-xr— $ chmod ug-x testfile (remove execute for both owner group) chmod –R 777 directory-name/ -rw-r--r-- d = directory - = regular file l = symbolic link s = Unix domain socket p = named pipe c = character device file b = block device file 16
  • 17. File System & Permission 17
  • 18. YP New System MS Servers (DB servers, …) Ext: 190.60.21.91 172.17.17.96 Ext: 190.60.21.89 172.17.17.98 Yepex ME Production 1 172.17.17.92 Yepex ME Production 2 172.17.17.102 172.17.17.97 Ext: 190.60.21.92 Ext: 190.60.21.93 172.17.17.95 172.17.17.99 Ext: 190.60.21.90 Yepex ME Staging Ext: 190.60.21.88 18
  • 19. Accumulate & JBoss Refer other slides pls. 19

Editor's Notes

  1. Section divider 1
  2. Slide text 2
  3. Linux supports numerous file system types Ext2: This is like UNIX file system. It has the concepts of blocks, inodes and directories. Ext3: It is ext2 filesystem enhanced with journalling capabilities. Journalling allows fast file system recovery. Supports POSIX ACL (Access Control Lists). (POSIX: Portable OS Interface) Isofs (iso9660): Used by CDROM file system. Sysfs: It is a ram-based filesystem initially based on ramfs. It is use to exporting kernel objects so that end user can use it easily. Procfs: The proc file system acts as an interface to internal data structures in the kernel. It can be used to obtain information about the system and to change certain kernel parameters at runtime using sysctl command. For example you can find out cpuinfo with following command “cat /proc/cpuinfo” NFS: Network file system allows many users or systems to share the same files by using a client/server methodology. NFS allows sharing all of the above file system. Linux also supports Microsoft NTFS, vfat, and many other file systems. See Linux kernel source tree Documentation/filesystem directory for list of all supported filesystem.
  4. /bin và /sbin Chứa những file cần thiết cho quá trình khởi động và những lệnh thiết yếu để duy trì hệ thống. /dev Chứa các định danh ánh xạ của thiết bị hoặc những file đặc biệt. /etc Chứa các file cấu hình của hệ thống và nhiều chương trình tiện ích. /lib Chứa các thư viện dùng chung cho các lệnh nằm trong /bin và /sbin. Và thư mục này cũng chứa các module của nhân. /mnt hoặc /media Mount point mặc định cho những hệ thống file kết nối bên ngoài. /proc Lưu các thông tin của nhân, chỉ có thể ghi được nội dung trong thư mục /proc/sys . /boot Chứa nhân Linux để khởi động và các file system maps cũng như các file khởi động giai đoạn hai. /home ( tùy chọn ) Thư mục dành cho người dùng khác root. Thông tin khởi tạo thư mục mặc định của người dùng được đặt trong /etc/skel/ /root ( tùy chọn ) Thư mục mặc định của người dùng root. /tmp Thư mục chứa các file tạm thời. /usr Thư mục chứa những file cố định hoặc quan trọng để phục vụ tất cả người dùng. /usr/local hoặc /opt (tùy chọn) Thư mục chứa các phần mềm cài thêm. /var/www , /var/ftp/ hoặc /srv (Suse) Thư mục chứa thông tin của các dịnh vụ WEB hay FTP. /var Thư mục chứa các thông tin hay thay đổi như: spool và log
  5. Section divider 2