A Guide to Unix Using Linux Fourth Edition

Slides:



Advertisements
Similar presentations
RH030 Linux Computing Essentials
Advertisements

Linux+ Guide to Linux Certification, Second Edition
Learning Unix/Linux Bioinformatics Orientation 2008 Eric Bishop.
Jump to first page Unix Commands Monica Stoica Jump to first page Introduction to Unix n Unix was born in 1969 at Bell Laboratories, a research subdivision.
Chapter One The Essence of UNIX.
NETW-240 Shells Last Update Copyright Kenneth M. Chipps Ph.D. 1.
Linux+ Guide to Linux Certification, Second Edition Chapter 3 Linux Installation and Usage.
Introducing the Command Line CMSC 121 Introduction to UNIX Much of the material in these slides was taken from Dan Hood’s CMSC 121 Lecture Notes.
Guide To UNIX Using Linux Third Edition
Guide To UNIX Using Linux Third Edition
UNIX Utilities Learning Objectives: 1. To understand the some basic utilities of UNIX File 2. To compare UNIX shell and popular shell 3. To learn Input/Output.
Getting Started with Linux: Novell’s Guide to CompTIA’s Linux+ (Course 3060) Section 2 Use the Linux Desktop.
Installing Windows XP Professional Using Attended Installation Slide 1 of 41Session 2 Ver. 1.0 CompTIA A+ Certification: A Comprehensive Approach for all.
Linux Operating system
Unix Presentation. What is an Operating System An operating system (OS) is a program that allows you to interact with the computer -- all of the software.
The University of Akron Summit College Business Technology Department Computer Information Systems 2440: 145 Operating Systems Introduction to UNIX/Linux.
What is Unix Prepared by Dr. Bahjat Qazzaz. What is Unix UNIX is a computer operating system. An operating system is the program that – controls all the.
Linux Shell. 2 Linux Command-Line Interface ■ Linux shells: A shell is a command interpreter that allows you to type commands from the keyboard to interact.
1. This presentation covers :  User Interface Administration  Files System and Services Management 2.
Linux Shells Dr. Michael L. Collard 1.
Linux+ Guide to Linux Certification Chapter Three Linux Installation and Usage.
Computation for Physics 計算物理概論 Introduction to Linux.
Overview of Linux CS3530 Spring 2014 Dr. José M. Garrido Department of Computer Science.
Chapter 9 Part II Linux Command Line Access to Linux Authenticated login using a Linux account is required to access a Linux system. The Linux prompt will.
Introduction to Shell Script Programming
Introduction to Unix/Linux Chapter One The Essence of UNIX.
UNIX Unbounded 5th Edition Amir Afzal Chapter 3 Getting Started
Module 1 Introduction to UNIX/Linux
Cmsc 312 Operating Systems. UNIX? DOS – PC? VAX/VMS - mainframe Unix – PC, workstation, mainframe 1970 bell Lab For computer scientist? Why popular? Free.
CENT 305 Information Systems Security Linux Introduction.
Chapter 9: Networking with Unix and Linux Network+ Guide to Networks Third Edition.
Chapter 2: Getting Started Logon to Logout. In this chapter … Logging on The Shell Superuser Getting Help Logging off.
SUSE Linux Enterprise Desktop Administration Chapter 2 Use the Linux Desktop.
CS 390 Unix Programming Summer Unix Programming - CS 3902 Course Details Online Information Please check.
UNIX/LINUX SHELLS.  “A Unix shell is a command-line interpreter or shell that provides a traditional user interface for the Unix operating system and.
Lesson 1-Logging On to the System. Overview Importance of UNIX/Linux. Logging on to the system.
Chapter 0 A “Quick-Start” into the UNIX Operating System.
Computer Networking From LANs to WANs: Hardware, Software, and Security Chapter 13 FTP and Telnet.
Lesson 2-Touring Essential Programs. Overview Development of UNIX and Linux. Commands to execute utilities. Communicating instructions to the shell. Navigating.
© Prepared By: Razif Razali 1 TMK 265: UNIX SYSTEM CHAPTER ONE – UNIX PHILOSOPHY.
Computers & Operating Systems
CS2204: Introduction to Unix January 19 th, 2004 Class Meeting 1 * Notes adapted by Christian Allgood from previous work by other members of the CS faculty.
Unix/Linux for beginners:
1 Lecture 1 Introduction & Getting Started COP 3353 Introduction to UNIX.
Introduction to Programming Using C An Introduction to Operating Systems.
Unix – Linux CS3353 Ssystem Administration. OS The Operating System – Acts as the interface to all software, hardware, and users of a computer. – Requires.
Introduction to UNIX. 2 History of Unix  1960 Software based on Hardware Limits  1969 Ken Thompson Develop a Better Programming Environment  1971 New.
Lab 3 + Using the Terminal 1. "Under Linux there are GUIs (graphical user interfaces). where you can point and click and drag, and hopefully get work.
Lesson 3-Touring Utilities and System Features. Overview Employing fundamental utilities. Linux terminal sessions. Managing input and output. Using special.
Basic UNIX Concepts. Why We Need an Operating System (OS) OS interacts with hardware and manages programs. A safe environment for programs to run is required.
Chapter 9: Networking with Unix and Linux. Objectives: Describe the origins and history of the UNIX operating system Identify similarities and differences.
Introduction to UNIX CS 2204 Class meeting 1 *Notes by Doug Bowman and other members of the CS faculty at Virginia Tech. Copyright
Introduction to UNIX CS465. What is UNIX? (1) UNIX is an Operating System (OS). An operating system is a control program that allocates the computer's.
Unix Advanced Shells Chapter 10. Unix Shells u Command Line Interpreter –once logged in, login gives control to a shell –it prompts for input, then parses,
PTA Linux Series Copyright Professional Training Academy, CSIS, University of Limerick, 2006 © Workshop I Introduction to Linux Professional Training Academy.
Learning Unix/Linux Based on slides from: Eric Bishop.
به نام خدای مهربان زبان تخصصی دانشجویان کامپیوتر English for Computer Students درس 3 جوانمرد Ejavanmard.blogfa.com
Course : PGClass : MCA Subject: Operating SystemSub.Code : 3CT11 Staff Name : S.SomasundaramYear & Sem : II nd & III rd.
Overview of Linux Fall 2016 Dr. Donghyun Kim
Introduction to UNIX.
SUSE Linux Enterprise Desktop Administration
Welcome to Linux Chap#1 Hanin Abdulrahman.
Unix Shells.
Chapter 1 The Essence of UNIX and Linux
Unix : Introduction and Commands
Linux Professor Sabol.
Welcome to Linux Chap#1 Hanin Abdulrahman.
Welcome to Linux Chap#1.
Presentation transcript:

A Guide to Unix Using Linux Fourth Edition Chapter 1 The Essence of UNIX and Linux

Objectives Explain operating systems, including PC and server operating systems Describe the UNIX and Linux operating systems Explain the purpose of UNIX/Linux shells Understand how to select user names and passwords Connect to UNIX/Linux using Telnet or SSH A Guide to Unix Using Linux, Fourth Edition

Objectives (continued) Use basic UNIX/Linux commands and command-line editing features Explain the role of a system administrator Change your password for security Use multiple commands to view the contents of files Redirect output to a file A Guide to Unix Using Linux, Fourth Edition

Understanding Operating Systems A Guide to Unix Using Linux, Fourth Edition

PC Operating Systems A personal computer system, or PC, is usually a stand-alone machine E.g., desktop or laptop computer A PC OS conducts all the input, output, processing, and storage operations on a single computer A Guide to Unix Using Linux, Fourth Edition

Server Operating Systems and Networks A computer network lets PCs share resources A server OS controls the operations of a server or host, which accepts requests from clients Peer-to peer networks are an alternative to server-based networks Each system on the network is both a server and client A Guide to Unix Using Linux, Fourth Edition

Server Operating Systems and Networks (continued) A Guide to Unix Using Linux, Fourth Edition

Introducing the UNIX and Linux Operating Systems UNIX/Linux is used on systems functioning as: Servers, clients, client/server workstations, and stand-alone workstations UNIX/Linux are multiuser/multitasking systems Some characteristics of UNIX/Linux systems: Portability Stable, reliable, and versatile Thousands of applications are written for them Many security options Well suited for networked environments A Guide to Unix Using Linux, Fourth Edition

A Brief History of UNIX Originally developed at AT&T Bell Labs Late 1960s and early 1970s Distributed in source code form Two standard versions evolved: AT&T Bell Labs produced SystemV (SysV) UC Berkeley developed BSD Linux might be considered a more integrated version of UNIX than its predecessors POSIX: effort of experts from industry, academia, and government to standardize UNIX A Guide to Unix Using Linux, Fourth Edition

UNIX Concepts A Guide to Unix Using Linux, Fourth Edition

Linux and UNIX Linux is a UNIX-like operating system Not written from the traditional UNIX code Kernel created to look and act like UNIX Enhancements include the POSIX standards Linus Torvalds released it free of charge in 1991 Many distributions are available: Debian GNU/Linux Fedora Red Hat Enterprise Linux openSUSE Linux Ubuntu A Guide to Unix Using Linux, Fourth Edition

Introducing UNIX/Linux Shells Shell: program that interprets commands you enter from keyboard Bourne shell, developed by S. Bourne (AT&T Bell Labs), was the first UNIX command processor Another Bell employee developed the Korn shell History feature C shell is designed for C programmers’ use Linux uses Bash shell as its default shell Graphical user interface (GUI) desktop can open a terminal window A Guide to Unix Using Linux, Fourth Edition

Introducing UNIX/Linux Shells (continued) A Guide to Unix Using Linux, Fourth Edition

Choosing your Shell Shells do much more than interpret commands Extensive built-in commands turn shells into first-class programming languages A default shell is associated with your account when it is created You may switch to another shell after you log in Many users prefer the Bash shell Other shells: Bourne, ksh, csh, ash, tcsh, zsh A Guide to Unix Using Linux, Fourth Edition

Switching from Shell to Shell Switch to another shell by typing the shell’s name on the command line For example, type tcsh, bash, or ash Work in that shell until you: Log in again Type another shell name on the command line Users often use one shell for writing shell scripts and another for interacting with a program A Guide to Unix Using Linux, Fourth Edition

Choosing User Names and Passwords Log in using a unique user name and password User name is the same name used for electronic mail Some UNIX versions recognize only first 8 characters Most versions of Linux recognize up to 32 characters Must choose a password Must have 6+ characters in newer versions Must be hard to guess! Change your password using passwd Common ways to access UNIX/Linux systems: Telnet, SSH, client SW, dumb terminal, etc. A Guide to Unix Using Linux, Fourth Edition

Connecting to UNIX/Linux Using Telnet or SSH Telnet is a terminal emulation program Example: telnet lunar.campus.edu Computers in a network are identified by IP address and (sometimes) a domain name Examples: 172.16.1.61, research.campus.edu Secure Shell (SSH) was developed for UNIX/Linux systems to provide authentication for TCP/IP applications Example: ssh user@hostname A Guide to Unix Using Linux, Fourth Edition

Logging In to UNIX/Linux A Guide to Unix Using Linux, Fourth Edition

Using Commands To interact with UNIX/Linux, you enter a command UNIX/Linux are case sensitive John differs from john Two categories: User-level commands System-administration commands Must know a command’s syntax to enter it properly Need to know options and arguments Commands are typed on the command line A Guide to Unix Using Linux, Fourth Edition

The date Command -u option displays the time in Greenwich Mean Time (GMT) A Guide to Unix Using Linux, Fourth Edition

The cal Command -j option used to determine the Julian date A Guide to Unix Using Linux, Fourth Edition

The who Command Determines information about who is logged in Important for the administrator Commonly used options include: am I for information about your session whoami to see what account you are using -H to show column headings -u to show idle time for each user -q for a quick list and total of users logged in -b to verify when the system was last booted A Guide to Unix Using Linux, Fourth Edition

The clear Command As you continue to enter commands, your screen might become cluttered Use the clear command to clear your screen No options or arguments A Guide to Unix Using Linux, Fourth Edition

The man Program Online manual called the man pages A Guide to Unix Using Linux, Fourth Edition

The man Program (continued) History section shows that command appeared in Version 6 AT&T UNIX A Guide to Unix Using Linux, Fourth Edition

The whatis Command Administrator may need to execute whatis to create database first A Guide to Unix Using Linux, Fourth Edition

Command-line Editing Shells support certain keystrokes for performing command-line editing Bash supports  and  to move cursor A Guide to Unix Using Linux, Fourth Edition

Multiple Command Entries Type multiple commands on command line by separating them with a semicolon date ; cal A Guide to Unix Using Linux, Fourth Edition

The Command-line History Most shells keep a list of recently used commands You can recall a command without retyping it Access command history with up/down arrow keys Press Enter to execute command once you find it Feature saves time and decreases frustration A Guide to Unix Using Linux, Fourth Edition

Logging Out of UNIX/Linux When you are done, log out for security Ends your current process Indicates to OS you are finished For the Bourne, Korn, or Bash shells: Enter exit on command line Or, press Ctrl+d In C shell, enter logout on the command line However, if you are using a GUI, these commands will only close terminal window Use the Log Out option for the desktop instead A Guide to Unix Using Linux, Fourth Edition

Understanding the Role of the UNIX/Linux System Administrator A system administrator manages the system Also called the superuser Adds new users Deletes old accounts Ensures that system performs services well and efficiently for all users Unique user name: root Ordinary users are all other users A Guide to Unix Using Linux, Fourth Edition

The System Administrator’s Command Line Default setting:[root@hostname root]# hostname: name of computer the system administrator logged in to May simply be localhost: refers to the local computer A Guide to Unix Using Linux, Fourth Edition

The Ordinary User’s Command Line Common formats: [username@hostname username] $ [username@hostname ~] $ username@hostname: → username: user’s login name hostname: name of computer to which user is logged in Note: ~ refers to the user’s home directory A Guide to Unix Using Linux, Fourth Edition

Changing Passwords A password is confidential and secures your work on the system To change your password, use passwd Some rules will apply depending on system Administrators can add rules of their own You must know your current password to change it If account does not have a password, use passwd command to create one A Guide to Unix Using Linux, Fourth Edition

Viewing Files Using the cat, more, less, head, and tail Commands more and less display a file one screen at a time more scrolls only down less enables you to scroll down and up cat displays the whole file at one time Comes from “concatenate”: to link Use head or tail to view first or last lines of a file 10 lines by default A Guide to Unix Using Linux, Fourth Edition

Redirecting Output > is an output redirection operator Creates a new file or overwrites an existing file by attaching it to a command that produces output Examples: who > current_users cat > filename To append output to an existing file, use >> Adds information to the end of an existing file without overwriting that file A Guide to Unix Using Linux, Fourth Edition

Summary The OS is the most fundamental computer program UNIX/Linux OSs are multiuser and multitasking systems UNIX/Linux systems can be configured as servers, client workstations, client/server workstations, or stand-alone workstations Concept of OS layered components originated with UNIX In UNIX/Linux, you communicate with OS programs through an interpreter called the shell A Guide to Unix Using Linux, Fourth Edition

Summary (continued) In UNIX/Linux, the system administrator sets up accounts for ordinary users The commands you type to work with UNIX/Linux have a strict syntax Learn syntax by referring to the man pages Examples of commands: who, cal, date, passwd Shells provide command-line editing capabilities and keep a history of your recently used commands Use cat, less, more, head, and tail to view files A Guide to Unix Using Linux, Fourth Edition

Command Summary A Guide to Unix Using Linux, Fourth Edition

Command Summary (continued) A Guide to Unix Using Linux, Fourth Edition