Day 6 COP 3502 David A. Gaitros Department of Computer Science Florida State University.

Slides:



Advertisements
Similar presentations
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.
Advertisements

CIS 118 – Intro to UNIX Shells 1. 2 What is a shell? Bourne shell – Developed by Steve Bourne at AT&T Korn shell – Developed by David Korn at AT&T C-shell.
Working with Files How to create, view, copy, rename and print files.
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.
Now, return to the Unix Unix shells: Subshells--- Variable---1. Local 2. Environmental.
Linux+ Guide to Linux Certification, Second Edition
More Shell Basics CS465 - Unix. Unix shells User’s default shell - specified in /etc/passwd file To show which shell you are currently using: $ echo $SHELL.
UNIX Chapter 00 A “ Quick Start ” into UNIX Operating System Mr. Mohammad Smirat.
Guide To UNIX Using Linux Third Edition
UNIX chapter 03 Getting Started Mr. Mohammad Smirat.
CSCI 330 T HE UNIX S YSTEM File operations. OPERATIONS ON REGULAR FILES 2 CSCI The UNIX System Create Edit Display Contents Display Contents Print.
Introduction to Unix – CS 21 Lecture 5. Lecture Overview Lab Review Useful commands that will illustrate today’s lecture Streams of input and output File.
Unix Filters Text processing utilities. Filters Filter commands – Unix commands that serve dual purposes: –standalone –used with other commands and pipes.
2 $ command Command Line Options ls –a –l hello hi Command Arguments.
L INUX C OMMAND L INE I NTERFACE G UNAANBAN.G
MCB Lecture #3 Sept 2/14 Intro to UNIX terminal.
BILKENT UNIVERSITY DEPARTMENT OF COMPUTER TECHNOLOGY AND INFORMATION SYSTEMS CTIS156 INFORMATION TECHNOLOGIES II CHAPTER 10: ADVANCED FILE PROCESSING.
Chapter 3: Command Line Utilities Doin’ stuff. In this chapter … Special characters Redirection More utilities than you shake a stick at.
Agenda User Profile File (.profile) –Keyword Shell Variables Linux (Unix) filters –Purpose –Commands: grep, sort, awk cut, tr, wc, spell.
Chapter Four UNIX File Processing. 2 Lesson A Extracting Information from Files.
Guide To UNIX Using Linux Fourth Edition
Introduction to Unix (CA263) File Processing. Guide to UNIX Using Linux, Third Edition 2 Objectives Explain UNIX and Linux file processing Use basic file.
Unix Shells Based on Glass & Abels’ Book CS240 Computer Science II.
Title Slide CSS 404/504 The UNIX Operating System (2) By Ralph B. Bisland, Jr.
The UNIX Shell. The Shell Program that constantly runs at terminal after a user has logged in. Prompts the user and waits for user input. Interprets command.
Copyright © 2012 Pearson Education, Inc. Publishing as Pearson Addison-Wesley C H A P T E R 2 Input, Processing, and Output.
CS 497C – Introduction to UNIX Lecture 7: General-Purpose Utilities Chin-Chih Chang
Agenda Chapter 1: Linux (Unix) Features Commands (Chapters 2 & 3) Command Structure / Command line editing man, passwd, cal, date, whereis, which Working.
Section 2 Variables National 4/5 Scratch Course. What you should know after this lesson What a variable is Where variables are stored How to get data.
Unix Tutorial for FreeSurfer Users. Helpful To Know FreeSurfer Tutorial Wiki:
XP 1 Microsoft Word 2002 Tutorial 1 – Creating a Document.
UNIX and Shell Programming (06CS36) Unit 1 Continued… Shrinivas R. Mangalwede Department of Computer Science and Engineering K.L.S. Gogte Institute of.
1 Day 5 Additional Unix Commands. 2 Important vs. Not Often in Unix there are multiple ways to do something. –In this class, we will learn the important.
Unix Tutorial for FreeSurfer Users. Helpful To Know FreeSurfer Tutorial Wiki:
Linux Operations and Administration
Shell Programming Any command or a sequence of UNIX commands stored in a text file is called a shell program. It is common to call this file a command.
UNIX Commands. Why UNIX Commands Are Noninteractive Command may take input from the output of another command (filters). May be scheduled to run at specific.
Lesson 9-Setting and Using Permissions. Overview Describing file permissions. Using execute permissions with a file. Changing file permissions using mnemonics.
VIM  This is the text editor you will use on the workstation.  You can also edit the text files under windows environment and upload it to the workstation.
De Anza College Instructor: Clare Nguyen
Agenda Getting Started: Using Unix Unix Structure / Features Elements of the Unix Philosophy Unix Command Structure Command Line Editing Online Unix Command.
Lesson 2-Touring Essential Programs. Overview Development of UNIX and Linux. Commands to execute utilities. Communicating instructions to the shell. Navigating.
Second edition Your UNIX: The Ultimate Guide Das © 2006 The McGraw-Hill Companies, Inc. All rights reserved. UNIX Commands cal – will print a calendar.
BIF713 Basic Unix/Linux Commands Getting Help with Commands.
Chapter Five Advanced File Processing. 2 Lesson A Selecting, Manipulating, and Formatting Information.
Agenda Basic Unix Commands (Chapters 2 & 3) Miscellaneous Commands: whereis, which, whoami, finger, passwd, cal, date Working with Files: cat, more, less.
Introduction to Unix (CA263) File Editing By Tariq Ibn Aziz.
Introduction to Programming Using C An Introduction to Operating Systems.
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.
Agenda Positional Parameters / Continued... Command Substitution Bourne Shell / Bash Shell / Korn Shell Mathematical Expressions Bourne Shell / Bash Shell.
Introduction to Computer Programming - Project 2 Intro to Digital Technology.
Linux+ Guide to Linux Certification, Second Edition Chapter 4 Exploring Linux Filesystems.
Amir Afzal UNIX Unbounded, 5th Edition Copyright ©2008 Chapter 6: The vi Editor – Last Look 1 of 55 Copyright ©2008 by Pearson Education, Inc. Upper Saddle.
© Prepared By: Razif Razali 1 TMK 265: UNIX SYSTEM CHAPTER FOUR – QUOTING IN DETAIL.
File Management commands cat Cat command cat cal.txt cat command displays the contents of a file here cal.txt on screen (or standard out).
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.
Linux Administration Working with the BASH Shell.
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.
Introduction to UNIX.
Chapter 11 Command-Line Master Class
The UNIX Shell Learning Objectives:
Agenda Basic Unix Commands (Chapters 2 & 3) Miscellaneous Commands:
Unix Scripting Session 4 March 27, 2008.
LING 408/508: Computational Techniques for Linguists
(Chapter 2) John Carelli, Instructor Kutztown University
Chapter Four UNIX File Processing.
Linux Shell Script Programming
Day 5 Emacs Editor David A. Gaitros Department of Computer Science
Presentation transcript:

Day 6 COP 3502 David A. Gaitros Department of Computer Science Florida State University

Misc Commands alias [name ['command']] Desciption: Creates an alias for a command or shows what alias' exist Options: name - specifies name of alias command - Command you want the alias used for Examples: alias print "lpr -Plov260" alias finger "ypcat passwd|grep -i" alias copy "cp" Demonstration:

Misc. Commands bc [file] Desciption: Handy desk calculator. Calculate numbers in a file or directly entered onto the screen. Options: file - file that contains the bc commands. Examples: bc 6500 * 34 / 5 Demonstration:

Misc. Commands cal [month][year] Desciption: Displays a calendar for a month and/or year Options: month - specifies a numeric month year - specifies a numeric year Examples: cal cal 1955 Demonstration: Note to self: calendar program is used for appointments. Very primitive method of keeping a schedule.

Misc. Commands cat filename(s) Desciption: Used to show text files. Displays to whole with no breaks. It is sometimes used to concatenate files together using the redirection feature of UNIX Options: filename - files you want to display. Examples: cat file1 file2 file3 > file4 Demonstration:

Misc Commands clear Desciption: clears the screen. Used a lot. Does not affect jobs, just clears the screen of clutter. date Desciption: Lets you see today's date. Far too many options to really talk about right now. time Description: Tells you how long it took a command to run.

Misc Commands echo stuff options: stuff - a text string Desciption: Echos the text string to standard output. Usually used inside a shell script or.tcshrc file. Demonstration:

Misc Commands mesg [y|n] Desciption: Lets you control whether other people can use the write command to interrupt you with on screen messages. Options: [y|n] - self explanotory Examples: msg n Demonstration:

Misc. Commands sort [-b][-d][-f][-f][-m][-n[-r][-u][+fields][-o outputfile] filename Desciption: Sorts the lines of a text file. Very handy command you may have a need to use. Uses a very efficient sorting algorithm. Options: -b - ingores spaces -d uses dictionary sort -f ignores capitilization -i ignores non print characters -m merges two files into one -n sorts based on number -r sorts in reversed order -u output same line once +fields - file contains fields seperated by tab characters. -o outputfile - place results in this filename - filename - file to be sorts. Examples: sort -dfro this.out +2 this.int Demonstration:

Misc. Commands stty [charname char][sane][[-]tostop][-a] Desciption: Sets the options for your terminal. Options: charname - specifies the terminal control function you want to see. char - Specifies the key(s) that you want use for this terminal control character. sane - Returns terminal to a "sane" state which is useful if your editor dies. -tostop - Turns off terminal stop mode. tostop - Turns on terminal stop mode. -a - displays all settings. Examples: stty erase '^q' Demonstration:

Misc. Commands talk Desciption: Lets you have a conversation with another user by typing messags to each other. Not that the command mesg must be turned on for this to work. - use to place the address of the use if they are not located on the same machine. Examples: talk Demonstration:

Misc. other commands Vacation [-l] Description - Automatically responds to incoming messages by telling people you are on vacation. The -l options stores the names of people who in a file called.maillog wall stuff Description - Displays a message on the screen of every user on the system. You should never use this. Command is disabled in our system.