Chris Clark - PowerPoint PPT Presentation

About This Presentation
Title:

Chris Clark

Description:

Understanding Linux A Look Under the Hood. THE BIG THREE: What goes where? ... Linux complies with the File System Hierarchy Standard (FHS) ... – PowerPoint PPT presentation

Number of Views:70
Avg rating:3.0/5.0
Slides: 23
Provided by: Christin6
Category:
Tags: chris | clark | linux

less

Transcript and Presenter's Notes

Title: Chris Clark


1
  • Chris Clark
  • President, SwitchDesk, Inc.
  • chrisclark_at_switchdesk.com

2
Understanding Linux A Look Under the Hood
  • THE BIG THREE
  • What goes where?
  • The key to editing configuration files
  • What are runlevels?

3
Linux Fundamental Number 1
Everything in Linux is a file
4
What goes where?
  • Linux complies with the File System Hierarchy
    Standard (FHS)
  • Specifies which directories must be located on
    the first level (directly under / ) and what they
    contain
  • Provides consistency across distributions

5
What goes where?
  • /bin
  • /boot
  • /dev
  • /etc
  • /home

/lib /lostfound /media /mnt /opt
/proc /root /sbin /tmp /usr /var
6
What goes where?
C
D
F
E
7
What goes where?
/dev/hda1
/boot
/
/dev/hda7
/dev/hda5
/usr
/var
/dev/hda6
8
What goes where?
/
usr
boot
var
mnt
dev
floppy
cdrom
hda1
hda2
cdrom
9
/boot
/
/usr
cdrom
/var
/
usr
boot
var
mnt
dev
floppy
cdrom
hda1
hda2
cdrom
10
The key to editing configuration files
  • One simple program - vi
  • vi is an integral part of Linux
  • Default text editor in just about every Linux
    distribution
  • Quick and easy to use
  • Can now use the Delete, Backspace and Insert keys
    on your keyboard

11
The key to editing configuration files
  • vi Commands
  • vi filename
  • i insert mode
  • esc command mode
  • wq write and quit
  • q! quit without saving

12
The key to editing configuration files
  • vi Shortcuts
  • o opens a new line and puts you in insert
    mode
  • dd delete line
  • /word search

13
Linux Fundamental Number 2
Linux is always case sensitive!
14
What are runlevels?
  • System V Runlevels
  • A runlevel is a software configuration of the
    system which allows only a selected group of
    services to exist
  • The characteristics of each runlevel determine
    which services are killed or started
  • The System V runlevel system provides a standard
    process for controlling which services are killed
    or started when initializing a runlevel

15
What are runlevels?
  • Runlevels
  • 0 System halt
  • 1 Single-user mode
  • 2 Multi-user mode without networking or X
  • 3 Multi-user mode with networking
  • 4 Multi-user mode with networking (unused)
  • 5 Multi-user mode with networking and X
  • 6 System reboot

16
What are runlevels?
  • Changing runlevels
  • init n where n is the runlevel to which you
    wish to change

17
What are runlevels?
  • Changing runlevels
  • init n where n is the runlevel to which you
    wish to change
  • To change your runlevel permanently, edit
    /etc/inittab
  • id3initdefault for a text login (best for
    servers)
  • id5initdefault for a graphical login (best
    for desktops)

18
What are runlevels?
  • Also in /etc/init.d
  • boot.local file in which to put commands you
    want run at boot up
  • equivalent to autoexec.ncf or autoexec.bat
  • rc manages the runlevel processes
  • skeleton runlevel script template

19
Thank You!
20
(No Transcript)
21
  • Unpublished Work of Beginfinite, Inc. All Rights
    Reserved.
  • This work is an unpublished work and contains
    confidential, proprietary, and trade secret
    information of Beginfinite, Inc. Access to this
    work is restricted to Beginfinite employees who
    have a need to know to perform tasks within the
    scope of their assignments. No part of this work
    may be practiced, performed, copied, distributed,
    revised, modified, translated, abridged,
    condensed, expanded, collected, or adapted
    without the prior written consent of Beginfinite,
    Inc. Any use or exploitation of this work
    without authorization could subject the
    perpetrator to criminal and civil liability.
  • General Disclaimer
  • This document is not to be construed as a promise
    by any participating company to develop, deliver,
    or market a product. Beginfinite, Inc., makes no
    representations or warranties with respect to the
    contents of this document, and specifically
    disclaims any express or implied warranties of
    merchantability or fitness for any particular
    purpose. Further, Beginfinite, Inc., reserves
    the right to revise this document and to make
    changes to its content, at any time, without
    obligation to notify any person or entity of such
    revisions or changes. All Beginfinite marks
    referenced in this presentation are trademarks or
    registered trademarks of Beginfinite, Inc. in the
    United States and other countries. All
    third-party trademarks are the property of their
    respective owners.

22
(No Transcript)
Write a Comment
User Comments (0)
About PowerShow.com