Don't be afraid of the Linux command line Raul Suarez September 19, 2009.

Slides:



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

NETW-240 Shells Last Update Copyright Kenneth M. Chipps Ph.D. 1.
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.
1 CSE 303 Lecture 4 users/groups; permissions; intro to shell scripting read Linux Pocket Guide pp , 25-27, 61-65, , 176 slides created by.
Linux+ Guide to Linux Certification, Second Edition
Operating Systems Review. User Computer, including HW and SW.
Linux+ Guide to Linux Certification, Second Edition
Introduction to Unix – CS 21 Lecture 13. Lecture Overview Finding files and programs which whereis find xargs Putting it all together for some complex.
Very Quick & Basic Unix Steven Newhouse Unix is user-friendly. It's just very selective about who its friends are.
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.
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.
1 UNIX essentials (hands-on) the directory tree running programs the shell (using the T-shell) → command line processing → special characters → command.
Using Macs and Unix Nancy Griffeth January 6, 2014 Funding for this workshop was provided by the program “Computational Modeling and Analysis of Complex.
Introduction to Linux Workshop February Introduction Rob Lane & The HPC Support Team Research Computing Services CUIT.
Sydney Opera House. Week Three Agenda Administrative Issues Link of the week Review week two lab assignment This week’s expected outcomes Next lab assignment.
Week 7 Working with the BASH Shell. Objectives  Redirect the input and output of a command  Identify and manipulate common shell environment variables.
Agenda User Profile File (.profile) –Keyword Shell Variables Linux (Unix) filters –Purpose –Commands: grep, sort, awk cut, tr, wc, spell.
Agenda Basic Shell Operations Standard Input / Output / Error Redirection of Standard Input / Output / Error ( >, >>,
– Introduction to the Shell 10/1/2015 Introduction to the Shell – Session Introduction to the Shell – Session 2 · Permissions · Users.
1 UNIX essentials (hands-on) the directory tree running programs the shell → command line processing → special characters → command types → shell variables.
Introduction to Linux OS (IV) AUBG ICoSCIS Team Prof. Volin Karagiozov March, 09 – 10, 2013 SWU, Blagoevgrad.
Linux+ Guide to Linux Certification, Third Edition
Basic Shell Scripting - Part 1 Objective - Learn to: Read Start-up Files Edit Start-up Files Modify Your User Environment Communicate with Users Write.
Using Commands Unix/IP Preparation Course July 19, 2009 Eugene, Oregon, USA
Quiz 15 minutes Open note, open book, open computer Finding the answer – working to get it – is what helps you learn I don’t care how you find the answer,
Lesson 2-Touring Essential Programs. Overview Development of UNIX and Linux. Commands to execute utilities. Communicating instructions to the shell. Navigating.
Using Commands Unix / Linux Preparation Course May 6, 2012 Serrekunda, The Gambia.
Intro to Programming Environment 1. Today You Will Learn how to connect to a machine remotely with “nomachine NX client” Learn how to create a new “source.
Why Linux and Not Windows?
UNIX shell environments CS 2204 Class meeting 4 Created by Doug Bowman, 2001 Modified by Mir Farooq Ali, 2002.
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.
© 2015 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner.
Linux+ Guide to Linux Certification, Second Edition Chapter 4 Exploring Linux Filesystems.
Linux+ Guide to Linux Certification, Second Edition
Introduction to Bash Shell. What is Shell? The shell is a command interpreter. It is the layer between the operating system kernel and the user.
Agenda The Bourne Shell – Part I Redirection ( >, >>,
CS 403: Programming Languages Lecture 20 Fall 2003 Department of Computer Science University of Alabama Joel Jones.
Getting Started with Unix Naomi Altman. Connecting to a PSU Linux Cluster click on SSH click on "quick connect" Host Name: lxcluster.tlt.psu.edu User.
An operating system (OS) is a collection of system programs that together control the operation of a computer system.
Unix Lab Fall Shell Scripting ●Through the shell (LXTerminal) you can: ●Run programs. ●Interact with the file system. ●Change settings. ●Send/receive.
Linux Administration Working with the BASH Shell.
Topic 2: Hardware and Software
Introduction to the Command Line for Data Analysts Gus Cavanaugh
Lesson 5-Exploring Utilities
Introduction to the Linux Commandline
SUSE Linux Enterprise Desktop Administration
slides created by Marty Stepp, modified by Josh Goodwin
Introduction to Shells
Bash Introduction (adapted from chapters 1 and 2 of bash Cookbook by Albing, Vossing, & Newham) CPTE 440 John Beckett.
Linux for Windows users
Some Linux Commands.
Sydney Opera House.
The Linux Operating System
Shell Script Assignment 1.
What are we celebrating?
Unix Operating System (Week Two)
CSE 303 Concepts and Tools for Software Development
Sarah Diesburg Operating Systems CS 3430
IPC144 Introduction to Programming Using C Week 1 – Lesson 2
CSE 390a Lecture 2 Exploring Shell Commands, Streams, and Redirection
Exploring Shell Commands, Streams, and Redirection
CSE 390a Lecture 2 Exploring Shell Commands, Streams, and Redirection
Linux Shell Script Programming
Command line.
CSE 303 Concepts and Tools for Software Development
Lab 7 Shell Script Reference:
Input and Output Python3 Beginner #3.
CSC 4630 Meeting 4 January 29, 2007.
Exploring Shell Commands, Streams, and Redirection
Presentation transcript:

Don't be afraid of the Linux command line Raul Suarez September 19, 2009

2 About me ➲ Computer hobbyist Since 1982 ➲ Computers professional since 1987 ➲ Linux user and advocate since 2005 ➲ I prefer conversations than lectures, let's make this one a conversation

3 Overview ➲ Most new and some old users feel puzzled by the command line ➲ I hope that today you will leave with a better understanding of it so you feel comfortable using it when appropriate ➲ In my case I don't always use the command line, but when I do, I'm glad it's there ➲ At the end of this talk you should be on your way to understanding commands and simplifying your work using the command line

4 Agenda ➲ What is the command line ➲ Why and when to use the command line ➲ How to interpret commands ➲ Tips and tricks

5 What is the command line ➲ It is an application that lets you execute commands by typing them instead of selecting from a menu ➲ Other names: ● Console ● Terminal ● Command window

6 Why and when to use? ➲ Someone tries to help you by giving you a command to execute ➲ You need to do repetitive tasks ➲ You are faster typing than moving the mouse

7 Interpreting commands cd ${OLDPWD} && ls -la > ~\dir.txt ps -ef | grep bash >> ~\dir.txt ➲ Command components ● ➲ More than one command in one line ● Sequence ● && : Only execute the next command if the previous executed correctly ● || : Only run the next command if the previous command failed ● Redirection ● > : Send the output of command to the right side file, overwriting ● >> : Send the output of command to the right side file, appending ● Pipe ● | : Send the output of one command to the input of another ● Variables ● $name or ${name} : Substitutes with the value of the variable ● ~ : Substitutes with the user's home folder

8 Tips and Tricks ➲ Tab, arrow navigation, Ctrl-R ➲ You can get a command documentation with the command man e.g. man grep ➲ Most commands have a --help parameter e.g. grep –help ➲ You can “store” aliases frequently used commands e.g. alias lax=“ls -laX” ➲ Search the web for help

9 Closing remarks ➲ The command line looks scary but it can actually help you to be more efficient ➲ Understanding the structure of the command line will help you understand what a command does ➲ You don't need to know all commands, looking at the help one at a time is more than enough ➲ There is a lot of help around

10 Thank you! More questions? ➲ Sample article ● _ html _ html ➲ Handy commands ● ➲ Raul Suarez ➲ The working centre ➲ Kitchener-Waterloo Linux User's group