1 © 2001 John Urrutia. All rights reserved. Chapter 2 Getting Started.

Slides:



Advertisements
Similar presentations
RH030 Linux Computing Essentials
Advertisements

Learning Unix/Linux Bioinformatics Orientation 2008 Eric Bishop.
Chapter One The Essence of UNIX.
Cosc 4750 Getting Started in UNIX Don’t be afraid of the prompt, in linux it can be your best friend. In some cases, the only way to do certain things.
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.
Chapter 4 Getting Help. Using CDE Help Help Manager – primary help tool SunSolve Online – Web-based online help from Sun Solaris Support – Web-based Sun.
Linux+ Guide to Linux Certification, Second Edition
Linux+ Guide to Linux Certification, Second Edition
CS 497C – Introduction to UNIX Lecture 20: - The Shell Chin-Chih Chang
UNIX Chapter 00 A “ Quick Start ” into UNIX Operating System Mr. Mohammad Smirat.
Guide To UNIX Using Linux Third Edition
Engineering H192 - Computer Programming The Ohio State University Gateway Engineering Education Coalition Lect 4P. 1Winter Quarter Introduction to UNIX.
L INUX C OMMAND L INE I NTERFACE G UNAANBAN.G
Linux Installation and Administration Lesson 2 Tutor: George Papamarkos.
Help session: Unix basics Keith 9/9/2011. Login in Unix lab  User name: ug0xx Password: ece321 (initial)  The password will not be displayed on the.
Unix Primer. Unix Shell The shell is a command programming language that provides an interface to the UNIX operating system. The shell is a “regular”
Introducing UNIX EMBnet slide 1 Introducing the UNIX Operating System.
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 Unix/Linux Chapter One The Essence of UNIX.
© 2008 The McGraw-Hill Companies, Inc. All rights reserved. WORD 2007 M I C R O S O F T ® THE PROFESSIONAL APPROACH S E R I E S Lesson 21 Fields and Forms.
Cmsc 312 Operating Systems. UNIX? DOS – PC? VAX/VMS - mainframe Unix – PC, workstation, mainframe 1970 bell Lab For computer scientist? Why popular? Free.
Agenda Chapter 1: Linux (Unix) Features Commands (Chapters 2 & 3) Command Structure / Command line editing man, passwd, cal, date, whereis, which Working.
Linux+ Guide to Linux Certification, Second Edition
Chapter Three The UNIX Editors. 2 Lesson A The vi Editor.
Linux+ Guide to Linux Certification Chapter Four Exploring Linux Filesystems.
Linux+ Guide to Linux Certification, Third Edition
©NIIT Collaborate Lesson 1C / Slide 1 of 23 Collaborate Knowledge Byte In this section, you will learn to: Use the cal command Determine the file types.
Partitioning and Formatting drives The easy way, using Knoppix live CD By Carl Weisheit.
CS240 Computer Science II Introduction the Unix File System and File Related Utilities Based on “UNIX for Programmers and Users” by G.Class and K. Ables.
Basic Computer and Word Functions, part 1 Read the information and use to answer the questions in the Basic Computer and Word Functions Study Guide.
Copyright © 2010 Wolters Kluwer Health | Lippincott Williams & Wilkins Introduction to Windows Chapter 2.
Week 3 Exploring Linux Filesystems. Objectives  Understand and navigate the Linux directory structure using relative and absolute pathnames  Describe.
Lesson 9-Setting and Using Permissions. Overview Describing file permissions. Using execute permissions with a file. Changing file permissions using mnemonics.
Agenda Regular Expressions (Appendix A in Text) –Definition / Purpose –Commands that Use Regular Expressions –Using Regular Expressions –Using the Replacement.
1 © 2014 John Urrutia. All rights reserved. Chapter 7 The “ Emacs “ Editor.
1 Operating Systems and Using Linux Topics What is an Operating System? Linux Overview Frequently Used Linux Commands Some content in this lecture added.
Chapter 0 A “Quick-Start” into the UNIX Operating System.
1 Operating Systems and Using Linux Topics What is an Operating System? Linux Overview Frequently Used Linux Commands Reading None.
BIF713 Basic Unix/Linux Commands Getting Help with Commands.
Chapter 1 – Matlab Overview EGR1302. Desktop Command window Current Directory window Command History window Tabs to toggle between Current Directory &
Shell Advanced Features. Module 8 Shell Advanced Features ♦ Introduction In Linux systems, the shells are often referred to as command line interfaces.
Agenda Basic Unix Commands (Chapters 2 & 3) Miscellaneous Commands: whereis, which, whoami, finger, passwd, cal, date Working with Files: cat, more, less.
1 © 2012 John Urrutia. All rights reserved. Chapter 6 The vi Editor.
Week 8: Linux / ubuntu Dr. I. H. Shah. / CSCS 301 Fall 2009.
Chapter Three The UNIX Editors.
Linux+ Guide to Linux Certification, Third Edition
Linux+ Guide to Linux Certification, Third Edition
Agenda Basic Unix Commands (Chapters 2 & 3) Miscellaneous Commands: which, passwd, date, ps / kill Working with Files: file, touch, cat, more, less, grep,
Lesson 3-Touring Utilities and System Features. Overview Employing fundamental utilities. Linux terminal sessions. Managing input and output. Using special.
XP New Perspectives on Microsoft Windows XP Tutorial 2 1 Microsoft Windows XP Working with Files Tutorial 2.
Linux+ Guide to Linux Certification, Second Edition Chapter 4 Exploring Linux Filesystems.
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.
CSCI 330 UNIX and Network Programming Unit II Basic UNIX Usage: File System.
June 1, 1999UNIX - Basic Environment1 Introduction to UNIX A. Basic Environment.
Learning basic Unix command It 325 operating system.
Linux Tutorial Lesson Two *Getting Help in Linux *Data movement and manipulation *Relative and Absolute path *Processes Note: see chapter 1,2,3 from Linux.
CMSC 104, Version 8/061L03OperatingSystems.ppt Operating Systems and Using Linux Topics What is an Operating System? Linux Overview Frequently Used Linux.
Learning Unix/Linux Based on slides from: Eric Bishop.
Operating systems Lecture #3 Modern OS characteristics.
CMSC 104, Version 9/011 Operating Systems and Using Linux Topics What is an Operating System? Linux Overview Frequently Used Linux Commands Reading None.
UNIX To do work for the class, you will be using the Unix operating system. Once connected to the system, you will be presented with a login screen. Once.
Introducing the UNIX Operating System.
Unix Shells.
Some Linux Commands.
Guide To UNIX Using Linux Third Edition
Chapter 3 Software Interfaces.
CREATING, PRINTING, AND EDITING DOCUMENTS
Operating Systems and Using Linux
Operating Systems and Using Linux
Presentation transcript:

1 © 2001 John Urrutia. All rights reserved. Chapter 2 Getting Started

2 © 2001 John Urrutia. All rights reserved. Topics Logging In Logging Out Getting Started  Getting help  Listing contents of a directory  Displaying and creating text files  Deleting files  The special characters

3 © 2001 John Urrutia. All rights reserved. Logging in Log on to Windows XP workstation using default userid (CIS). No password. Click on TELNET ICON within the UNIX Utilities Group

4 © 2001 John Urrutia. All rights reserved. Logging In Insure that the TELNET HOST address is – Linux1 i lastname Log in to Linux System using a userid of the form: ilastname where i is your first initial and lastname is the 1 st seven letters of your last name. Initial password is your SCCID, BUT you should immediately set a password by using the passwd command

5 © 2001 John Urrutia. All rights reserved. Logging In From Windows Programs menu  X-Win32  GUI  Provides access to graphical programs  Similar to Windows interface

6 © 2001 John Urrutia. All rights reserved. Changing Your Password passwd utility ilstname]$ passwd Changing password for ilstname (current) UNIX password: New UNIX password: Retype New UNIX password:

7 © 2001 John Urrutia. All rights reserved. Topics Logging In Logging Out Getting Started  Getting help  Listing contents of a directory  Displaying and creating text files  Deleting files  The special characters

8 © 2001 John Urrutia. All rights reserved. Logging Out Type exit from the command line Close TELNET Shutdown workstation

9 © 2001 John Urrutia. All rights reserved. Topics Logging In Logging Out Getting Started  Getting help  Listing contents of a directory  Displaying and creating text files  Deleting files  The special characters

10 © 2001 John Urrutia. All rights reserved. Getting Started Command prompt  Data Keys  a – z, A – Zalphabetic keys  0 – 9numeric keys  & ; | * ? ’ ” ` [ ] ( ) $ { } ^ # / \ % ! ~ special keys having 1 or more meanings

11 © 2001 John Urrutia. All rights reserved. Getting Started Command prompt  Control Keys   Scolls through line commands   Positions cursor within the command line  Delete and backspace - erase previous character  Ctrl +  w – delete word to the left  h – delete Character to the left (same as delete)  u – delete line to the left  c – terminates the current task

12 © 2001 John Urrutia. All rights reserved. Getting Started Command prompt  Command  Characters following the system prompt delimited by space  Options (generally optional)  -character(s) following command will modify how the command behaves  Arguments ( 0 to many)

13 © 2001 John Urrutia. All rights reserved. Topics Logging In Logging Out Getting Started  Getting help  Listing contents of a directory  Displaying and creating text files  Deleting files  The special characters

14 © 2001 John Urrutia. All rights reserved. Getting Help man ual - online help for LINUX  There are 9 sections in the online manual  man cat  This will display help on the con cat enate utility  info – Equivalent of man  help – GUI equivalent of man plus hyperlink capabilities

15 © 2001 John Urrutia. All rights reserved. Help – Help – Help – Help – Help - Help Demonstration of man

16 © 2001 John Urrutia. All rights reserved. Topics Logging In Logging Out Getting Started  Getting help  Listing contents of a directory  Displaying and creating text files  Deleting files  The special characters

17 © 2001 John Urrutia. All rights reserved. Listing a directory All files are located in a directory file Directory files can contain directory files To l i s t all the files in a directory file  ls

18 © 2001 John Urrutia. All rights reserved. Listing a directory The ls command  Syntax: optionfile list filelist all file information files with non-print files change time directory info. classifies display inode nbr. display in reverse ls –a filelist all file information –b files with non-print –c files change time –d directory info. –F classifies / –i display inode nbr. –r display in reverse

19 © 2001 John Urrutia. All rights reserved. Topics Logging In Logging Out Getting Started  Getting help  Listing contents of a directory  Displaying and creating text files  Deleting files  The special characters

20 © 2001 John Urrutia. All rights reserved. Displaying text file contents The cat command  Syntax: optionfile list filelist show tabs and eol show eol as number output line show tabs as remove extra blank lines show non-print chrs. as cat –A filelist show tabs and eol –E show eol as $ –n number output line –T show tabs as ^I –s remove extra blank lines –v show non-print chrs. as ^M

21 © 2001 John Urrutia. All rights reserved. Topics Logging In Logging Out Getting Started  Getting help  Listing contents of a directory  Displaying and creating text files  Deleting files  The special characters

22 © 2001 John Urrutia. All rights reserved. Deleting files The rm command Removes links and if it’s the last one frees the storage used. (Deletes the file)  Syntax: optionfile list filelist rm -f filelist remove r/o files no prompt -i prompt before removing -r recurse sub-directories

23 © 2001 John Urrutia. All rights reserved. Topics Logging In Logging Out Getting Started  Getting help  Listing contents of a directory  Displaying and creating text files  Deleting files  The special characters

24 © 2001 John Urrutia. All rights reserved. The Special Characters These character are interpreted as instructions by the shell command processor. these in filenames & ; | * ? ’ ” ` [ ] ( ) $ { } ^ # / \ % ! ~

25 © 2001 John Urrutia. All rights reserved. The Special Characters  Quote the characters to cause the command line interpreter to treat them as normal text.  Precede each special character with a backslash  Enclose the text in single quote marks  Precede non-print chars. with Cntl+v But … If you must use them

26 © 2001 John Urrutia. All rights reserved.

27 © 2001 John Urrutia. All rights reserved. Hey joe what do you know? myname]$ joe myname Starts in insert mode Use cntl+K H for help  Toggles on and off

28 © 2001 John Urrutia. All rights reserved. Help – Help – Help – Help – Help - Help Demonstration of joe