POS/420 Philip Robbins – March 19, 2013 (Week 2) University of Phoenix Mililani Campus Introduction to Unix.

Slides:



Advertisements
Similar presentations
RH030 Linux Computing Essentials
Advertisements

Basic Unix system administration
Linux Booting Procedure
Linux can be generally divided into four major components: 1. KERNEL – OS, ultimate boss The kernel is the core program that runs programs and manages.
A Guide to Unix Using Linux Fourth Edition
1 Introduction to UNIX Ke Liu
CS 497C – Introduction to UNIX Lecture 11: - The File System Chin-Chih Chang
5 Basic utilities When a user logs in to the Linux operating system the directory that they will start in is their home directory. Most users will have.
Introduction to Unix (CA263) File System
Exploring the UNIX File System and File Security
Linux Intro Linux, the do it yourself OS Linux, successor to MINIX Linux, Unix for the masses (PC users) History:
Introduction to Linux David E. Douglas University Professor—Information Systems Walton College of Business
GNU/Linux Filesystem 1 st AUT GNU/Linux Festival Computer Engineering & IT Department Bahador Bakhshi.
The UNIX File System.
Guide To UNIX Using Linux Third Edition
1. This presentation covers :  User Interface Administration  Files System and Services Management 2.
File System and Directory Structure in Linux. What is File System In a computer, a file system is the way in which files are named and where they are.
COMP1070/2002/lec4/H.Melikian COMP1070 Lecture #5  Files and directories in UNIX  Various types of files  File attributes  Notion of pathname  Commands.
Guide To UNIX Using Linux Fourth Edition
Manage Directories and Files in Linux
POS/420 Introduction to Unix Philip Robbins – March 12, 2013 (Week 1)
Guide to Linux Installation and Administration, 2e1 Chapter 8 Basic Administration Tasks.
Unix Basics Chapter 4.
Operating Systems Lecture 4. Agenda for Today Review of previous lecture Operating system structures Operating system design and implementation UNIX/Linux.
Isecur1ty training center Presented by : Eng. Mohammad Khreesha.
Introduction to Unix – CS 21 Lecture 2. Lecture Overview Starting out in Unix Getting help when needed Looking around a little Environment and Environment.
Chapter Two Exploring the UNIX File System and File Security.
INTRODUCTION TO LINUX Jacob Chan. GNU/Linux Consists of Linux kernel, GNU utilities, and open source and commercial applications Works like Unix –Multi-user.
Agenda Link of the week Use of Virtual Machine Review week one lab assignment This week’s expected outcomes Review next lab assignments Break Out Problems.
Linux Introduction What is Linux? How do you use it?
USING YOUR INSTALLED LINUX SYSTEM.  Common Linux Tasks  Installing Custom Packages  Common GUI Applications  Command Line Shell  Directory Structure/Navigation.
UNIX (Linux) Introduction Module-1. OS Kernel In computing, the kernel is the central component of OS. It is a bridge between applications and the actual.
POS/420 Philip Robbins – March 26, 2013 (Week 3) University of Phoenix Mililani Campus Introduction to Unix.
Manage Directories and Files in Linux. 2 Objectives Understand the Filesystem Hierarchy Standard (FHS) Identify File Types in the Linux System Change.
Chapter Two Exploring the UNIX File System and File Security.
ITR3 lecture 6: intoduction to UNIX Thomas Krichel
EMT 2390L Lecture 5 Dr. Reyes Reference: The Linux Command Line, W.E. Shotts.
E X C E E D I N G E X P E C T A T I O N S Basic LINUX Linux System Administration Dr. Hoganson Kennesaw State University Operating Systems Directory structure:
Review Please hand in any homework and practicals Vim Scripting Inter-device communication.
1 © 2001 John Urrutia. All rights reserved. Chapter 4 The LINUX Filesystem.
Week Two Agenda Announcements Link of the week Use of Virtual Machine Review week one lab assignment This week’s expected outcomes Next lab assignments.
Linux Commands C151 Multi-User Operating Systems.
PTA Linux Series Copyright Professional Training Academy, CSIS, University of Limerick, 2006 © Workshop V Files and the File System Part B – File System.
The Unix File system (UFS) Presented by: Gurpreet Singh Assistant Professor Department of School of Computing and Engineering Galgotias University.
CS 245 – Part 1 Using Operating Systems and Networks for Programmers Jiang Guo Dept. of Computer Science California State University Los Angeles.
SUSE Linux Enterprise Desktop Administration Chapter 7 Manage Directories and Files.
Lecture 02 File and File system. Topics Describe the layout of a Linux file system Display and set paths Describe the most important files, including.
The Kernel At a high level, the kernel in an operating system serves as the bridge between applications and the actual data processing of the hardware.
A Brief Overview of Unix Brandon Bohrer. Topics What is Unix? – Quick introduction Documentation – Where to get it, how to use it Text Editors – Know.
1 CS3695 – Network Vulnerability Assessment & Risk Mitigation – Introduction to Unix & Linux.
LINUX Zhengli Zhu, School of Life Sciences. Outline 1. ABC of Linux 2. Basic orers of Linux 3. Bash Programming.
ORAFACT The Linux File System. ORAFACT Filesystem Support Support for dozens of filesystem types including: Minix, ext2, MS-DOS, UMSDOS, VFAT, NTFS, NFS,
Linux Administration – Finding You Way on the Command Line The Linux File Directory or Tree.
BILKENT UNIVERSITY DEPARTMENT OF COMPUTER TECHNOLOGY AND INFORMATION SYSTEMS CTIS156 INFORMATION TECHNOLOGIES II FILES AND FILE SYSTEM STRUCTURE.
Linux 101 Training Module Linux Basics.
Welcome to Linux Chap#1 Hanin Abdulrahman.
UBUNTU INSTALLATION
Basic Commands ls cp ls –l (in detail format) echo ls –a
C151 Multi-User Operating Systems
Command Line Interface for Beginners
9 Linux on the Desktop.
Exploring the UNIX File System and File Security
Unix : Introduction and Commands
Operating Systems Lecture 4.
Chapter 7 File and file System structure
Working with Mac OS and Linux
Welcome to Linux Chap#1 Hanin Abdulrahman.
Welcome to Linux Chap#1.
January 26th, 2004 Class Meeting 2
Presentation transcript:

POS/420 Philip Robbins – March 19, 2013 (Week 2) University of Phoenix Mililani Campus Introduction to Unix

Agenda: Week 2 Quiz #1 Due (Review & Grade) Week 2 -File Structure -Basic Terminal Commands -Permissions In Class Lab (Assignment) #1 Due Today Take Quiz #2

Review Week 1 List of Commands man – manual pages ls – list directory contents pwd – print working directory passwd – change password sudo – execute command as superuser su – login as superuser shutdown – shutdown

Linux File System Structure

root (/)

File Structure: Binaries Whats the difference between: -/bin -/sbin -/usr/bin -/usr/sbin

File Structure: Binaries Whats the difference between: /bin & /usr/bin When UNIX was first written, /bin and /usr/bin physically resided on two different disks: /bin being on a smaller faster (more expensive) disk, and /usr/bin on a bigger slower disk.

/bin Essential User Command Binaries -Contain commands used by both system administrators and users. -There must be no subdirectories in /bin.

/boot Static files of the boot loader -Contains everything for the boot process (at boot time). -Does not include boot configuration files not needed at boot time. -Stores data that is used before the kernel begins executing. -OS Kernel is stored in either / or /boot.

/dev Device Files -Location of special or devices files.

/etc Host-specific system configuration -Contains configuration files. -Must be Static and cannot be an executable binary. -Required in /etc: opt, X11, sgml, xml

/etc

/srv Data for services provided by this system. - Contains site-specific data which is served by this system. - Naming methodology not specified. -e.g. /srv/ftp, /srv/pos420/www -Data that is of interest to a specific user should go into that users home directory.

/tmp Temporary Files -Must be made available for programs that require the use of temporary files. -Recommend that /tmp files be deleted upon system reboot.

/usr User Hierarchy -Second major section of the file system. -Used for shareable, read-only data. -Required directories: bin- essential command binaries sbin- essential system binaries include- header files used by C programs lib- object files, binaries, libraries local- put apps you build yourself here share- shared (Static)

/usr Whats the difference between: /usr & /usr/local

/usr/share/man Directory for System Manual Pages man1: User programs Manual pages that describe publicly accessible commands are contained in this chapter. Most program documentation that a user will need to use is located here. man2: System calls. This section describes all of the system calls (requests for the kernel to perform operations). man3: Library functions and subroutines. Section 3 describes program library routines that are not direct calls to kernel services. This and section 2 are only really of interest to programmers. man4: Special files. Section 4 describes the special files, related driver functions, and networking support available in the system. Typically, this includes the device files found in /dev and the kernel interface to networking protocol support.

/usr/share/man Directory for System Manual Pages man5: File formats. The formats for many data files are documented in the section 5. This includes various include files, program output files, and system files. man6: Games. This chapter documents games, demos, and generally trivial programs. Different people have various notions about how essential this is. man7: Miscellaneous. Manual pages that are difficult to classify are designated as being section 7. The troff and other text processing macro packages are found here. man8: System administration. Programs used by system administrators for system operation and maintenance are documented here. Some of these programs are also occasionally useful for normal users.

/usr/share/man Manual Section Summary

man apropos

apropos

man6: Games. This chapter documents games, demos, and generally trivial programs. Different people have various notions about how essential this is.

/var Variable Hierarchy -Contains variable data files. -Spool files & directories, logging data, temporary files (for system reboots). -Not Shareable. -e.g. /var/log, /var/mail, /var/cache, /var/crash (dump files) -Can be placed in /usr/var. (If separate partition for /var is not possible).

/var Use the more command to view files. -man more for more information -view syslog -view kern.log Also use the head and tail command to view files. -man head & tail for more information -know how to head & tail –n lines of a file

/proc Kernel and process information virtual file system -Used for handling process and system information -Kernel and memory information

man ps

top

FHS Compliant System Rationale: -Not all files can be shared -Static and Variable files should be segregated -Static files can be stored on read-only media -Different backup schedules

man fdisk

sudo fdisk -l Use fdisk to list all partitions (as root)

fdisk

Typical Partitions

Virtual Terminals (TTY) Six tty (1 – 6) -Hold Ctrl + Alt, press F1 (for tty1) -F2 (for tty2) … F6 (for tty6) -Hold Ctrl + Alt, press F7 (to return to GUI) -Press and hold Ctrl + Alt to switch between VM and GUI

who

User ($) vs. Root (#)

Shells What is an OS shell? Types -ksh, tcsh, csh, sh, bash What shell are you running? -echo $SHELL

Shells csh

man usermod

man ssh

ssh

Directory Notation / -Represents a directory /. -Represents current directory /.. -Represents the parent directory /~ -Represents a users home directory

File Permissions

Octal (numerical) Representation

man chmod

man chown

man chgrp

File Permissions Command Summary

Run Levels runlevel -Previous runlevel, current runlevel init -Change between run levels (process id 1) telinit -Change system run level (user process)

runlevel

vi (text editor)

Review essential user commands (/bin)

Break Lets take a break… 800PM

Assignment #1 30 Questions Use PrintScreen (PrtSc) Work in groups (optional) Submit individual assignments! Post to OLS. -- use pdf format. Due before you leave class tonight.

Quiz: Week minutes