Papeete, French Polynesia

Slides:



Advertisements
Similar presentations
PacNOG 6: Nadi, Fiji Using Commands in Linux Hervey Allen Network Startup Resource Center.
Advertisements

Using Commands Introduction to Linux June 16, 2009 Papeete, French Polynesia Hervey Allen.
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.
Lesson 22 – Introduction to Linux Systems Administration.
Linux+ Guide to Linux Certification, Second Edition
Introduction to UNIX GPS Processing and Analysis with GAMIT/GLOBK/TRACK T. Herring, R. King. M. Floyd – MIT UNAVCO, Boulder - July 8-12, 2013 Directory.
“Linux at the Command Line” Don Johnson of BU IS&T.
1 SEEM3460 Tutorial Unix Introduction. 2 Introduction What is Unix? An operation system (OS), similar to Windows, MacOS X Why learn Unix? Greatest Software.
Using the “CLI” Unix / Linux Preparation Course May 25 Djibouti.
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”
© Crown copyright Met Office An Introduction to Linux PRECIS Workshop, University of Reading, 23rd – 27th April 2012.
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.
Linux+ Guide to Linux Certification, Third Edition
Week 3 Exploring Linux Filesystems. Objectives  Understand and navigate the Linux directory structure using relative and absolute pathnames  Describe.
Chapter Five Advanced File Processing Guide To UNIX Using Linux Fourth Edition Chapter 5 Unix (34 slides)1 CTEC 110.
Using Commands Unix/IP Preparation Course July 19, 2009 Eugene, Oregon, USA
1 Operating Systems and Using Linux Topics What is an Operating System? Linux Overview Frequently Used Linux Commands Some content in this lecture added.
Editing, vi and Configuration Files Introduction to Linux June 16, 2009 Papeete, French Polynesia Hervey Allen.
Using Commands Unix / Linux Preparation Course May 6, 2012 Serrekunda, The Gambia.
Unix, Linux, DOS, Windows Command Line CSE 660 May 12, 2008.
Introduction to Linux Instructor: Bennett M. Tanyag PART – 3 Unit 1.
Using Commands Introduction to Unix May 24, 2008 Rabat, Morocco Hervey Allen.
Privileges: who can control what Introduction to Unix June 16, 2009 Papeete, French Polynesia Hervey Allen.
Week 9 - Nov 7, Week 9 Agenda I/O redirection I/O redirection pipe pipe tee tee.
Using the “CLI” Unix / Linux Preparation Course June 9, 2013 Lusaka, Zambia.
Linux Commands C151 Multi-User Operating Systems.
Awk- An Advanced Filter by Prof. Shylaja S S Head of the Dept. Dept. of Information Science & Engineering, P.E.S Institute of Technology, Bangalore
PTA Linux Series Copyright Professional Training Academy, CSIS, University of Limerick, 2006 © Workshop III - Part A Shell Commands Professional Training.
Linux+ Guide to Linux Certification, Second Edition Chapter 4 Exploring Linux Filesystems.
BIF713 Introduction to Linux. Agenda Getting Started: Using Linux Unix and Linux - Structure / Features Elements of the Linux Philosophy Linux Command.
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.
INTRODUCTION TO SHELL SCRIPTING By Byamukama Frank
Privileges: who can control what
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.
Lesson 5-Exploring Utilities
Introduction to the Linux Commandline
Department of Computer Engineering
User-Written Functions
Chapter 11 Command-Line Master Class
Commands Basic syntax of shell commands UNIX or shell commands have a basic structure command -options target command comes first (such as cd or ls) any.
Working with Multiple Workbooks
Computer Fundamentals 1
Introduction to Unix May 24, 2008 Rabat, Morocco Hervey Allen
Lecture 2 Working with Files and Directories
Some Linux Commands.
C151 Multi-User Operating Systems
CS314 – Section 5 Recitation 1
Project 3: An Introduction to File Systems
Editing, vi and Configuration Files
Ubuntu Working in Terminal
Privileges: who can control what
Operating Systems and Using Linux
Programming Assignment 1
LING 408/508: Computational Techniques for Linguists
Working with Multiple Workbooks
Introduction to UNIX UNIX developed at Bell Labs in 70s
Exploring the UNIX File System and File Security
Guide To UNIX Using Linux Third Edition
Chapter Four UNIX File Processing.
Operating Systems and Using Linux
UNIX/LINUX Commands Using BASH Copyright © 2017 – Curt Hill.
Working with Multiple Workbooks
Linux Shell Script Programming
Module 5 Getting Help.
Experiment No. (1) - an introduction to MATLAB
Module 6 Working with Files and Directories
introduction to Linux/Unix environment
Lab 2: Terminal Basics.
Working with Multiple Workbooks
Module 06 Getting Help.
Presentation transcript:

Papeete, French Polynesia Using Commands Introduction to Linux June 16, 2009 Papeete, French Polynesia Hervey Allen

command [options] parameters The format of a command command [options] parameters “Traditionally, UNIX command-line options consist of a dash, followed by one or more lowercase letters. The GNU utilities added a double-dash, followed by a complete word or compound word.” Two very typical examples are: -h --help and -v --version NSRC@PacNOG5 Papeete, French Polynesia

The parameter is what the command acts on. Command parameters The parameter is what the command acts on. Often there are multiple parameters. In Unix uppercase and lowercase for both options and parameters matter. Spaces are critical. “-- help” is wrong. “--help” is right. NSRC@PacNOG5 Papeete, French Polynesia

Some command examples Let's start simple: Display a list of files: ls Display a list of files in a long listing format: ls -l Display a list of all files in a long listing format with human-readable file sizes: ls -alh NSRC@PacNOG5 Papeete, French Polynesia

Some command examples cont. Some equivalent ways to do “ls -alh”: ls -lah ls -l -a -h ls -l --all –human-readable Note that there is no double-dash option for “-l”. You can figure this out by typing: man ls Or by typing: ls --help NSRC@PacNOG5 Papeete, French Polynesia

Where's the parameter? We typed the “ls” command with several options, but no parameter. Do you think “ls” uses a parameter? What is the parameter for “ls -l”? It is “.” -- our current directory. “ls -l” and “ls -l .” are the same. We'll discuss files and directories in our next section. NSRC@PacNOG5 Papeete, French Polynesia

A disconcerting Unix feature If a command executes successfully and there is no output returned from the command execution this is normal. That is, if you type: cp file1 file2 The result is that you get your command prompt back. Nothing means success. Let's give this a try... NSRC@PacNOG5 Papeete, French Polynesia

A disconcerting Unix feature cont. Try doing the following on your machine: # cd [cd = change dir] # touch file1 [touch = create/update] # cp file1 file2 [cp = copy] The “#” indicates the command prompt. A “#” usually means you are the root user. A “$” for the command prompt indicates a normal user. NSRC@PacNOG5 Papeete, French Polynesia

Using pipes In Unix it is very easy to use the result of one command as the input for another. To do this we use the pipe symbol “|”. For example: ls -l /sbin | sort ls -l /sbin | sort | more What will these commands do? NSRC@PacNOG5 Papeete, French Polynesia

Take advantage of the command line The command line in Unix is much more powerful than what you may be used to in Windows. You can easily edit long commands You can find and recover past commands You can quickly copy and paste commands. NSRC@PacNOG5 Papeete, French Polynesia

Your mission Should you choose to accept it... Pay close attention to options and parameters. Use “man command” or “command --help” to figure out how each command works. A command, generally, acts upon it's parameter or parameters based on the options you give to the command... NSRC@PacNOG5 Papeete, French Polynesia