A UNIX/Linux in a nutshell
|
|
- Catherine Long
- 7 years ago
- Views:
Transcription
1 bergman p.1/23 A UNIX/Linux in a nutshell Introduction Linux/UNIX Tommi Bergman tommi.bergman[at]csc.fi Computational Environment & Application CSC IT center for science Ltd. Espoo, Finland
2 bergman p.2/23 Contents Introduction Linux/UNIX Small utilities Shell Command line interface Linux/UNIX redirecting Directories and files Linux/UNIX pipes Directory structure Reading text files Contents of a directory More on text files Moving around in the directory tree Environment variables Creating directories Adding and Removing Moving and copying files Shell Scripting Directory and file permissions Config files.emacsrc.bashrc etc. Permissions: adding or removing Command Reference Online help on commands
3 bergman p.3/23 Introduction to UNIX/Linux UNIX/Linux are multitasking operating systems So systems running multiple programs and hosting multiple users at a time usually textual command line shell for command input you can also use GUI(graphical user interface) Same basic system utilities are typically found on both systems These system utilities include small programs for e.g. showing contents for a directory: ls, for copying files: cp, finding text in files: grep
4 bergman p.4/23 The Shell or command line interface Program that enables the user to interact with the computer Most common shells are called bash and tcsh, main differences between shells being syntax and builtin commands Usually commands follow a basic command structure command -options targets Command is sort of a verb and handles the target according to options Linux/UNIX command prompt is case sensitive, so cp command names are usually acronyms of actual words as cp for copy Cp
5 bergman p.5/23 Directory structure The filesystem is organized in a tree-like hierarchial directory structure The uppermost directory in a filesystem is called the root directory Files have a place in one of the directories (tree branches) Command pwd will show you current working directory bergman@c551 bergman> pwd /wrk/bergman/
6 bergman p.6/23 Contents of a directory Command ls(list directory) will show the contents of current directory with different switches you can change the output format yourid@c553 linuxkurssi> ls -la drwxr-xr-x 2 bergman csc 1024 Jan 30 15:47. drwxr-xr-x 4 bergman csc 512 Jan 28 15:02.. -rwx bergman csc Feb 1 13:24 a.out type, permissions,links, owner, group, size, date, name of the file
7 bergman p.7/23 Moving in directory tree Whereas in Graphical user interface you use mouse to navigate through the directories, the cd command is used traverse the directory tree in a command line interface To enter subdirectory inside the current directory cd subdir, for entering parent directory cd.. also explicit path is possible e.g. cd /wrk/userid/new model/
8 bergman p.8/23 Directory and file handling commands To add a directory mkdir and to remove directory rmdir rmdir will only remove directories without content To remove a file command rm is used can also be used to remove directories with option -r which will erase the directory and all its subrirectories When creating files or directories the special characters are tricky, best to avoid using them e.g.?, -, one should especially avoid functions on most shells,/,? and # since they have special
9 bergman p.9/23 Moving and copying files For moving files around the filesystem there are few small commands For copying cp -options oldname new(name/dir) to copy entire folder one must use -r option to recurse the folder Also wildcards: all or part of the filename can be substituted with so called wildcards,?,[a-l] For moving or renaming mv -options oldname new(name/folder) Command history up/down arrows to flick through the previous commands If you have started an unwanted program which takes long to complete one can stop a program execution by pressing Ctrl-C
10 bergman p.10/23 Directory and file permissions All files and directories have a given set of permission attributes The permissions are read, write and/or execute: -rw-r--r-- 1 bergman csc 0 Jan 29 11:04 stuff.txt There are three groups of users The owner, user that has created the file The group, user belongs to at least one group. At CSC, usually group is named after the project leader And the others, that is all other users One can see the users own groups with command groups
11 bergman p.11/23 Permission adding or removing To change the permission there is command chmod ugo(+/-)rwx to add reading rights to user and group: chmod ug+r chmod +r User can also give permissions to users of these groups to use the files that he/she owns and to change the group of the file chgrp Be careful what permissions you give to other users: If you give write permissions to group others, anyone can destroy your important data Usually there is no need to give write permissions to the group other users
12 bergman p.12/23 Online help on commands There are many small commands there is also help features in the shell For shell basic utilities you can find help with info command which will give menu of basic utilities which can be browsed with cursor keys info coreutils The man command works for most programs It prints out manual pages for command in question (e.g. man ls)
13 bergman p.13/23 Linux/UNIX small utilities There are a small utilities that make life a little easier If you have misplaced important file for which you only know the name or part of it. This will find you all files named result yourid@c553:/wrk/yourid> find -name "result" -print For finding text in files yourid@c553:/wrk/yourid> grep pattern file usually you don t want to copy the same file to many different directories. For this purpose it is possible to create symbolic links: ln -s actualfile linkname
14 bergman p.14/23 Linux/UNIX small utilities continued for selecting columns from a file yourid@c553:/wrk/yourid> cut -f 2-3 file You have a list of names you want sort in alphabethical order? This will sort the lines in a file starting in column m and ending in column n sort -k m-n file For substituting parts of the text in (a) file(s) sed e.g. to change all the words dry to word wet yourid@c553:/wrk/yourid> sed s/dry/wet/g blah.txt One can also create aliases for often used commands alias lo logout
15 bergman p.15/23 Linux/UNIX redirecting Shells have a possibility to redirect files or output to commands for giving a file instead of reading from keyboard yourid@c553:/wrk/yourid> cat < names.txt for directing output to a file To print all lines that have string House from file names.txt to file house.txt: yourid@c553:/wrk/yourid> grep House names.txt > house.txt to append output to end of a file To add all lines that have string Road to file house.txt yourid@c553:/wrk/yourid> grep Road names.txt >> house.txt
16 bergman p.16/23 Linux/UNIX pipes It is also possible to redirect output of one program as input to another Almost all commands print result of their actions to standard output which can be redirected to file or as input to other programs using the pipe operator To print out first 10 lines with a string black of the file output.txt: yourid@c553: /testdir> grep black output.txt head [-10]
17 bergman p.17/23 Reading text files Several programs to printout textfiles: less (and more) printout text a screenful at a time, cat will put all on the screen in one go More and less quite similar programs, only More is a lot more primitive and moving about the document is more complex Less can be controlled with arrow and page up/down keys There is also search option with / -key To print a file to terminal screen use cat [option] file cat can also be used to join text files into one cat file1 file2 file3 > bigfile for splitting up a file there is split split -l 10 file.txt
18 bergman p.18/23 More on textfiles For printing only a part from the start or end of the file one can use tail/head [option ] file most common option is -n, where n is the number of lines to print by combining these two one can print some intermidiate part of the file head -100 output tail -5 will print lines To evaluate the size of textfiles we have wc (wordcount) it will tell you how the number of lines, words and bytes the file or files have: Nutshell.tex For editing there is vi and emacs more on these later
19 bergman p.19/23 Environment variables The shell stores information about the current system in environment variables similar to variables in programming languages: environment variable is some data that has a name assigned to it They can be essential to the system opreation or for users own needs purposes e.g. $PATH command search path, $HOME home directory, $LPDEST current printer or $IMPORTANT FILES
20 bergman p.20/23 Environment variables continued To see all current environment variables env They are userdefinable, but to add you must include the current variable to the list of values tcsh:setenv PATH ($PATH /some/new/directory/) bash:export PATH=$PATH:/some/new/directory/ NB! environment variables are used with a $-sign, but are set without
21 bergman p.21/23 Shell scripting Commands can be written to a text file to create scripts, so it is possible to automate even complex tasks They can be executed using shell-interpreter(sh scriptfile) or by changing file permission to execute Most of the normal programming language constructs are available as e.g If-then-else for conditional branches and for-loops Small example: for f in do.txt echo sorting file $f cat $f sort $f.sorted echo sorted file has been output to $f.sorted done
22 bergman p.22/23 Config files.emacsrc.bashrc etc. Config files are often called the dot-files for their naming conventions(.config) and stored at the users home directory These can include almost any information from work directory to redefining keyboard commands When logging on the shell will process.login and.bashrc files These are normal script files They include usually environment variables and aliases, advanced users may include many automated tasks to be run when logging on
23 bergman p.23/23 Small command reference card cd folder move to folder export PRINTER=spoolprint (bash) set environment ls show contents of folder set PRINTER spoolprint (tcsh) variable PRINTER rm remove file find -name foot -print find file with foot in the name cp for copying files env show environment variables rmdir remove directory ln -s file linkname create a link to file mkdir make directory sort file sort lines in file cat concatenate scp secure copy grep print lines with certain string head -n file show n first lines of file chmod change permissions tail -n file show n last lines of file less file show file screenful at a time cut -f n-m file cut columns n to m from file
Linux command line. An introduction to the Linux command line for genomics. Susan Fairley
Linux command line An introduction to the Linux command line for genomics Susan Fairley Aims Introduce the command line Provide an awareness of basic functionality Illustrate with some examples Provide
More informationCommand Line - Part 1
Command Line - Part 1 STAT 133 Gaston Sanchez Department of Statistics, UC Berkeley gastonsanchez.com github.com/gastonstat Course web: gastonsanchez.com/teaching/stat133 GUIs 2 Graphical User Interfaces
More informationAn Introduction to the Linux Command Shell For Beginners
An Introduction to the Linux Command Shell For Beginners Presented by: Victor Gedris In Co-Operation With: The Ottawa Canada Linux Users Group and ExitCertified Copyright and Redistribution This manual
More informationUnix Sampler. PEOPLE whoami id who
Unix Sampler PEOPLE whoami id who finger username hostname grep pattern /etc/passwd Learn about yourself. See who is logged on Find out about the person who has an account called username on this host
More informationTutorial 0A Programming on the command line
Tutorial 0A Programming on the command line Operating systems User Software Program 1 Program 2 Program n Operating System Hardware CPU Memory Disk Screen Keyboard Mouse 2 Operating systems Microsoft Apple
More informationLECTURE-7. Introduction to DOS. Introduction to UNIX/LINUX OS. Introduction to Windows. Topics:
Topics: LECTURE-7 Introduction to DOS. Introduction to UNIX/LINUX OS. Introduction to Windows. BASIC INTRODUCTION TO DOS OPERATING SYSTEM DISK OPERATING SYSTEM (DOS) In the 1980s or early 1990s, the operating
More informationBasic C Shell. helpdesk@stat.rice.edu. 11th August 2003
Basic C Shell helpdesk@stat.rice.edu 11th August 2003 This is a very brief guide to how to use cshell to speed up your use of Unix commands. Googling C Shell Tutorial can lead you to more detailed information.
More informationICS 351: Today's plan
ICS 351: Today's plan routing protocols linux commands Routing protocols: overview maintaining the routing tables is very labor-intensive if done manually so routing tables are maintained automatically:
More informationFred Hantelmann LINUX. Start-up Guide. A self-contained introduction. With 57 Figures. Springer
Fred Hantelmann LINUX Start-up Guide A self-contained introduction With 57 Figures Springer Contents Contents Introduction 1 1.1 Linux Versus Unix 2 1.2 Kernel Architecture 3 1.3 Guide 5 1.4 Typographical
More informationCommand Line Crash Course For Unix
Command Line Crash Course For Unix Controlling Your Computer From The Terminal Zed A. Shaw December 2011 Introduction How To Use This Course You cannot learn to do this from videos alone. You can learn
More informationCommand-Line Operations : The Shell. Don't fear the command line...
Command-Line Operations : The Shell Don't fear the command line... Shell Graphical User Interface (GUI) Graphical User Interface : displays to interact with the computer - Open and manipulate files and
More informationIntroduction to Mac OS X
Introduction to Mac OS X The Mac OS X operating system both a graphical user interface and a command line interface. We will see how to use both to our advantage. Using DOCK The dock on Mac OS X is the
More informationA Crash Course on UNIX
A Crash Course on UNIX UNIX is an "operating system". Interface between user and data stored on computer. A Windows-style interface is not required. Many flavors of UNIX (and windows interfaces). Solaris,
More informationThirty Useful Unix Commands
Leaflet U5 Thirty Useful Unix Commands Last revised April 1997 This leaflet contains basic information on thirty of the most frequently used Unix Commands. It is intended for Unix beginners who need a
More informationCisco Networking Academy Program Curriculum Scope & Sequence. Fundamentals of UNIX version 2.0 (July, 2002)
Cisco Networking Academy Program Curriculum Scope & Sequence Fundamentals of UNIX version 2.0 (July, 2002) Course Description: Fundamentals of UNIX teaches you how to use the UNIX operating system and
More informationCSIL MiniCourses. Introduction To Unix (I) John Lekberg Sean Hogan Cannon Matthews Graham Smith. Updated on: 2015-10-14
CSIL MiniCourses Introduction To Unix (I) John Lekberg Sean Hogan Cannon Matthews Graham Smith Updated on: 2015-10-14 What s a Unix? 2 Now what? 2 Your Home Directory and Other Things 2 Making a New Directory
More information1 Basic commands. 2 Terminology. CS61B, Fall 2009 Simple UNIX Commands P. N. Hilfinger
CS61B, Fall 2009 Simple UNIX Commands P. N. Hilfinger 1 Basic commands This section describes a list of commonly used commands that are available on the EECS UNIX systems. Most commands are executed by
More informationUnix Guide. Logo Reproduction. School of Computing & Information Systems. Colours red and black on white backgroun
Logo Reproduction Colours red and black on white backgroun School of Computing & Information Systems Unix Guide Mono positive black on white background 2013 Mono negative white only out of any colou 2
More informationTutorial Guide to the IS Unix Service
Tutorial Guide to the IS Unix Service The aim of this guide is to help people to start using the facilities available on the Unix and Linux servers managed by Information Services. It refers in particular
More informationAn Introduction to Using the Command Line Interface (CLI) to Work with Files and Directories
An Introduction to Using the Command Line Interface (CLI) to Work with Files and Directories Mac OS by bertram lyons senior consultant avpreserve AVPreserve Media Archiving & Data Management Consultants
More informationHP-UX Essentials and Shell Programming Course Summary
Contact Us: (616) 875-4060 HP-UX Essentials and Shell Programming Course Summary Length: 5 Days Prerequisite: Basic computer skills Recommendation Statement: Student should be able to use a computer monitor,
More informationCMSC 216 UNIX tutorial Fall 2010
CMSC 216 UNIX tutorial Fall 2010 Larry Herman Jandelyn Plane Gwen Kaye August 28, 2010 Contents 1 Introduction 2 2 Getting started 3 2.1 Logging in........................................... 3 2.2 Logging
More informationIntroduction to the UNIX Operating System on IT Systems
Information Technology Rice University Document UNIX 1 June 21, 2000 Introduction to the UNIX Operating System on IT Systems This document is intended to introduce you to the UNIX operating system. It
More informationUniversity of Toronto
1 University of Toronto APS 105 Computer Fundamentals A Tutorial about UNIX Basics Fall 2011 I. INTRODUCTION This document serves as your introduction to the computers we will be using in this course.
More informationUNIX Tutorial for Beginners
UNIX Tutorial for Beginners Typographical conventions In what follows, we shall use the following typographical conventions: Characters written in bold typewriter font are commands to be typed into the
More informationUnix the Bare Minimum
Unix the Bare Minimum Norman Matloff September 27, 2005 c 2001-2005, N.S. Matloff Contents 1 Purpose 2 2 Shells 2 3 Files and Directories 4 3.1 Creating Directories.......................................
More informationUnix Shell Scripts. Contents. 1 Introduction. Norman Matloff. July 30, 2008. 1 Introduction 1. 2 Invoking Shell Scripts 2
Unix Shell Scripts Norman Matloff July 30, 2008 Contents 1 Introduction 1 2 Invoking Shell Scripts 2 2.1 Direct Interpretation....................................... 2 2.2 Indirect Interpretation......................................
More informationUSEFUL UNIX COMMANDS
cancel cat file USEFUL UNIX COMMANDS cancel print requested with lp Display the file cat file1 file2 > files Combine file1 and file2 into files cat file1 >> file2 chgrp [options] newgroup files Append
More informationAN INTRODUCTION TO UNIX
AN INTRODUCTION TO UNIX Paul Johnson School of Mathematics September 24, 2010 OUTLINE 1 SHELL SCRIPTS Shells 2 COMMAND LINE Command Line Input/Output 3 JOBS Processes Job Control 4 NETWORKING Working From
More informationBasic Linux & Package Management. Original slides from GTFO Security
Basic Linux & Package Management Original slides from GTFO Security outline Linux What it is? Commands Filesystem / Shell Package Management Services run on Linux mail dns web central authentication router
More informationHands-On UNIX Exercise:
Hands-On UNIX Exercise: This exercise takes you around some of the features of the shell. Even if you don't need to use them all straight away, it's very useful to be aware of them and to know how to deal
More informationIntroduction to. UNIX Bob Booth December 2004 AP-UNIX2. University of Sheffield
Introduction to UNIX Bob Booth December 2004 AP-UNIX2 University of Sheffield Contents 1. INTRODUCTION... 3 1.1 THE SHELL... 3 1.2 FORMAT OF COMMANDS... 4 1.3 ENTERING COMMANDS... 4 2. ACCESSING UNIX MACHINES...
More informationThe Linux Operating System and Linux-Related Issues
Review Questions: The Linux Operating System and Linux-Related Issues 1. Explain what is meant by the term copyleft. 2. In what ways is the Linux operating system superior to the UNIX operating system
More informationIntroduction to Unix Tutorial
Topics covered in this Tutorial Introduction to Unix Tutorial 1. CSIF Computer Network 2. Local Logging in. 3. Remote computer access: ssh 4. Navigating the UNIX file structure: cd, ls, and pwd 5. Making
More informationIntroduction to the UNIX Operating System and Open Windows Desktop Environment
Introduction to the UNIX Operating System and Open Windows Desktop Environment Welcome to the Unix world! And welcome to the Unity300. As you may have already noticed, there are three Sun Microsystems
More informationBirmingham Environment for Academic Research. Introduction to Linux Quick Reference Guide. Research Computing Team V1.0
Birmingham Environment for Academic Research Introduction to Linux Quick Reference Guide Research Computing Team V1.0 Contents The Basics... 4 Directory / File Permissions... 5 Process Management... 6
More informationLab 1: Introduction to C, ASCII ART and the Linux Command Line Environment
.i.-' `-. i..' `/ \' _`.,-../ o o \.' ` ( / \ ) \\\ (_.'.'"`.`._) /// \\`._(..: :..)_.'// \`. \.:-:. /.'/ `-i-->..
More informationTraining Day : Linux
Training Day : Linux Objectives At the end of the day, you will be able to use Linux command line in order to : Connect to «genotoul» server Use available tools Transfer files between server and desktop
More information1 Intro 1. 2 man - Accessing On-Line Manual Pages 1. 3 pwd - Print the Working Directory 2. 4 cd - Changing Directory 2
BASIC UNIX COMMANDS Contents 1 Intro 1 2 man - Accessing On-Line Manual Pages 1 3 pwd - Print the Working Directory 2 4 cd - Changing Directory 2 5 ls - Listing the Contents of Directories 2 6 mkdir -
More informationIntroduction to Shell Programming
Introduction to Shell Programming what is shell programming? about cygwin review of basic UNIX TM pipelines of commands about shell scripts some new commands variables parameters and shift command substitution
More informationUnix Primer - Basic Commands In the Unix Shell
Unix Primer - Basic Commands In the Unix Shell If you have no experience with the Unix command shell, it will be best to work through this primer. The last section summarizes the basic file manipulation
More informationSyntax: cd <Path> Or cd $<Custom/Standard Top Name>_TOP (In CAPS)
List of Useful Commands for UNIX SHELL Scripting We all are well aware of Unix Commands but still would like to walk you through some of the commands that we generally come across in our day to day task.
More informationHow To Use The Librepo Software On A Linux Computer (For Free)
An introduction to Linux for bioinformatics Paul Stothard March 11, 2014 Contents 1 Introduction 2 2 Getting started 3 2.1 Obtaining a Linux user account....................... 3 2.2 How to access your
More informationINASP: Effective Network Management Workshops
INASP: Effective Network Management Workshops Linux Familiarization and Commands (Exercises) Based on the materials developed by NSRC for AfNOG 2013, and reused with thanks. Adapted for the INASP Network
More informationAn A-Z Index of the Apple OS X command line (TERMINAL) The tcsh command shell of Darwin (the open source core of OSX)
An A-Z Index of the Apple OS X command line (TERMINAL) The tcsh command shell of Darwin (the open source core of OSX) alias alloc awk Create an alias List used and free memory Find and Replace text within
More informationDOS Command Reference
DOS Command Reference Introduction Some course material on the Teaching Network may still use the command line operating system called DOS (Disk Operating System). This requires the user to type specific
More informationLPI certification 101 exam prep, Part 1
LPI certification 101 exam prep, Part 1 Presented by developerworks, your source for great tutorials Table of Contents If you're viewing this document online, you can click any of the topics below to link
More informationTEL2821/IS2150: INTRODUCTION TO SECURITY Lab: Operating Systems and Access Control
TEL2821/IS2150: INTRODUCTION TO SECURITY Lab: Operating Systems and Access Control Version 3.4, Last Edited 9/10/2011 Students Name: Date of Experiment: Read the following guidelines before working in
More informationCS 103 Lab Linux and Virtual Machines
1 Introduction In this lab you will login to your Linux VM and write your first C/C++ program, compile it, and then execute it. 2 What you will learn In this lab you will learn the basic commands and navigation
More informationLinux Overview. Local facilities. Linux commands. The vi (gvim) editor
Linux Overview Local facilities Linux commands The vi (gvim) editor MobiLan This system consists of a number of laptop computers (Windows) connected to a wireless Local Area Network. You need to be careful
More informationUNIX, Shell Scripting and Perl Introduction
UNIX, Shell Scripting and Perl Introduction Bart Zeydel 2003 Some useful commands grep searches files for a string. Useful for looking for errors in CAD tool output files. Usage: grep error * (looks for
More informationNew Lab Intro to KDE Terminal Konsole
New Lab Intro to KDE Terminal Konsole After completing this lab activity the student will be able to; Access the KDE Terminal Konsole and enter basic commands. Enter commands using a typical command line
More informationL01 Introduction to the Unix OS
Geophysical Computing L01-1 1. What is Unix? L01 Introduction to the Unix OS Unix is an operating system (OS): it manages the way the computer works by driving the processor, memory, disk drives, keyboards,
More informationLab 1: Introduction to the network lab
CSCI 312 - DATA COMMUNICATIONS AND NETWORKS FALL, 2014 Lab 1: Introduction to the network lab NOTE: Be sure to bring a flash drive to the lab; you will need it to save your data. For this and future labs,
More informationIntroduction to Linux and Cluster Basics for the CCR General Computing Cluster
Introduction to Linux and Cluster Basics for the CCR General Computing Cluster Cynthia Cornelius Center for Computational Research University at Buffalo, SUNY 701 Ellicott St Buffalo, NY 14203 Phone: 716-881-8959
More informationUNIX Intro and Basic C shell Scripting
UNIX Intro and Basic C shell Scripting Khaldoun Makhoul khaldoun@nmr.mgh.harvard.edu December 2nd 2010 1 This talk introduces the audience to the basic use of the UNIX/Linux command line tools and to basic
More informationGNU/Linux Command Line Tools Summary
GNU/Linux Command Line Tools Summary Gareth Anderson Chris Karakas Conversion from LyX to DocBook SGML, Index generation Revision History Revision 1.2 15th April 2006 Revised
More informationList of FTP commands for the Microsoft command-line FTP client
You are on the nsftools.com site This is a list of the commands available when using the Microsoft Windows command-line FTP client (requires TCP/IP to be installed). All information is from the Windows
More informationShell Scripts (1) For example: #!/bin/sh If they do not, the user's current shell will be used. Any Unix command can go in a shell script
Shell Programming Shell Scripts (1) Basically, a shell script is a text file with Unix commands in it. Shell scripts usually begin with a #! and a shell name For example: #!/bin/sh If they do not, the
More informationIntroduction to Running Hadoop on the High Performance Clusters at the Center for Computational Research
Introduction to Running Hadoop on the High Performance Clusters at the Center for Computational Research Cynthia Cornelius Center for Computational Research University at Buffalo, SUNY 701 Ellicott St
More informationOpen Source Computational Fluid Dynamics
Open Source Computational Fluid Dynamics An MSc course to gain extended knowledge in Computational Fluid Dynamics (CFD) using open source software. Teachers: Miklós Balogh and Zoltán Hernádi Department
More informationHadoop Basics with InfoSphere BigInsights
An IBM Proof of Technology Hadoop Basics with InfoSphere BigInsights Part: 1 Exploring Hadoop Distributed File System An IBM Proof of Technology Catalog Number Copyright IBM Corporation, 2013 US Government
More informationIntroduction to Operating Systems
Introduction to Operating Systems It is important that you familiarize yourself with Windows and Linux in preparation for this course. The exercises in this book assume a basic knowledge of both of these
More informationA Brief Introduction to the Use of Shell Variables
A Brief Introduction to the Use of Shell Variables Norman Matloff July 25, 2001 Contents 1 Two Popular Shells: tcsh and bash 1.1 Overview There are many different shells available for Unix systems. Here
More informationLinux System Administration on Red Hat
Linux System Administration on Red Hat Kenneth Ingham September 29, 2009 1 Course overview This class is for people who are familiar with Linux or Unix systems as a user (i.e., they know file manipulation,
More informationExtreme computing lab exercises Session one
Extreme computing lab exercises Session one Michail Basios (m.basios@sms.ed.ac.uk) Stratis Viglas (sviglas@inf.ed.ac.uk) 1 Getting started First you need to access the machine where you will be doing all
More informationUNIX Basics. Ian Darwin TCP Informatics January, 2005. Presented from a Mac using Apple s Keynote presentation software
UNIX Basics Ian Darwin TCP Informatics January, 2005 Presented from a Mac using Apple s Keynote presentation software 1 What is this about? Brief Introduction to UNIX - ideas - basic commands - some examples
More informationLinux System Administration
Copyright GBdirect Ltd 2004 http://training.gbdirect.co.uk/ tel: 0870 200 7273 Overview 1 Introduction 1 2 Getting Started 8 3 Work Effectively on the Unix Command Line 16 4 Process Text Streams Using
More informationUnix Scripts and Job Scheduling
Unix Scripts and Job Scheduling Michael B. Spring Department of Information Science and Telecommunications University of Pittsburgh spring@imap.pitt.edu http://www.sis.pitt.edu/~spring Overview Shell Scripts
More informationUNIX / Linux commands Basic level. Magali COTTEVIEILLE - September 2009
UNIX / Linux commands Basic level Magali COTTEVIEILLE - September 2009 What is Linux? Linux is a UNIX system Free Open source Developped in 1991 by Linus Torvalds There are several Linux distributions:
More informationUNIX (LINUX) PRACTICAL 1 INTRODUCTION
UNIX (LINUX) PRACTICAL 1 INTRODUCTION 1. CONNECTING TO UNIX (LOGGING ON) 2. FILES AND DIRECTORIES - Listing, viewing, copying, making. How your workspace is structured. 3. HELP! - How to get it. Is it
More informationLecture 22 The Shell and Shell Scripting
Lecture 22 The Shell and Shell Scripting In this lecture The UNIX shell Simple Shell Scripts Shell variables File System s, IO s, IO redirection Command Line Arguments Evaluating Expr in Shell Predicates,
More informationAlthough Mac OS X is primarily known for its GUI, the under pinnings are all Unix. This
BE Computing Web Tutorials: Server Commands Server Commands Indluded: 1. Basic Command Line Tutorial Although Mac OS X is primarily known for its GUI, the underpinnings are all Unix. This tutorial will
More informationRecommended File System Ownership and Privileges
FOR MAGENTO COMMUNITY EDITION Whenever a patch is released to fix an issue in the code, a notice is sent directly to your Admin Inbox. If the update is security related, the incoming message is colorcoded
More informationHigher National Unit Specification. General information for centres. Multi User Operating Systems. Unit code: DH3A 34
Higher National Unit Specification General information for centres Unit code: DH3A 34 Unit purpose: This Unit is designed to provide candidates with a practical introduction to, and understanding of, the
More informationCS 2112 Lab: Version Control
29 September 1 October, 2014 Version Control What is Version Control? You re emailing your project back and forth with your partner. An hour before the deadline, you and your partner both find different
More informationRunning your first Linux Program
Running your first Linux Program This document describes how edit, compile, link, and run your first linux program using: - Gnome a nice graphical user interface desktop that runs on top of X- Windows
More informationCPSC2800: Linux Hands-on Lab #3 Explore Linux file system and file security. Project 3-1
CPSC2800: Linux Hands-on Lab #3 Explore Linux file system and file security Project 3-1 Linux support many different file systems that can be mounted using the mount command. In this project, you use the
More informationUsing SVN to Manage Source RTL
Using SVN to Manage Source RTL CS250 Tutorial 1 (Version 083010a) August 30, 2010 Yunsup Lee In this tutorial you will gain experience using the Subversion (SVN) to manage your source RTL and code. You
More informationCygwin command line windows. Get that Linux feeling - on Windows http://cygwin.com/
Cygwin command line windows Get that Linux feeling - on Windows http://cygwin.com/ 1 Outline 1. What is Cygwin? 2. Why learn it? 3. The basic commands 4. Combining commands in scripts 5. How to get more
More informationUnix/Linux Forensics 1
Unix/Linux Forensics 1 Simple Linux Commands date display the date ls list the files in the current directory more display files one screen at a time cat display the contents of a file wc displays lines,
More informationLecture 18 Regular Expressions
Lecture 18 Regular Expressions Many of today s web applications require matching patterns in a text document to look for specific information. A good example is parsing a html file to extract tags
More informationsystem or read a good Unix book from the DESY library (e.g. Mark Sobell, APractical Guide to
Introduction to Unix at DESY There are only a few commands that you have to know in order to get started on Unix. These will be presented in this introduction. For a more detailed description of the syntax
More informationBeginners Shell Scripting for Batch Jobs
Beginners Shell Scripting for Batch Jobs Evan Bollig and Geoffrey Womeldorff Before we begin... Everyone please visit this page for example scripts and grab a crib sheet from the front http://www.scs.fsu.edu/~bollig/techseries
More informationKernel. What is an Operating System? Systems Software and Application Software. The core of an OS is called kernel, which. Module 9: Operating Systems
Module 9: Operating Systems Objective What is an operating system (OS)? OS kernel, and basic functions OS Examples: MS-DOS, MS Windows, Mac OS Unix/Linux Features of modern OS Graphical operating system
More informationgrep, awk and sed three VERY useful command-line utilities Matt Probert, Uni of York grep = global regular expression print
grep, awk and sed three VERY useful command-line utilities Matt Probert, Uni of York grep = global regular expression print In the simplest terms, grep (global regular expression print) will search input
More informationAn Introduction to Using the Command Line Interface (CLI) to Work with Files and Directories
An Introduction to Using the Command Line Interface (CLI) to Work with Files and Directories Windows by bertram lyons senior consultant avpreserve AVPreserve Media Archiving & Data Management Consultants
More information12 Most Important Unix Commands You Should Know
The twelve most important Unix commands Carl Mason carlm@demog.berkeley.edu rev 1.32 Fall 2013 Contents 1 Introduction 1 2 Terminal windows 2 3 The Filesystem 3 4 The command interpreter 4 4.1 Essential
More informationLecture 4: Writing shell scripts
Handout 5 06/03/03 1 Your rst shell script Lecture 4: Writing shell scripts Shell scripts are nothing other than les that contain shell commands that are run when you type the le at the command line. That
More informationBasic Linux and Unix commands, editing and transfering files
First version: February 3, 2002 Last update: February 5, 2010 PATRICIA LEDESMA LIÉBANA Basic Linux and Unix commands, editing and transfering files The most recent version of this document can be found
More informationIntroduction to Git. Markus Kötter koetter@rrzn.uni-hannover.de. Notes. Leinelab Workshop July 28, 2015
Introduction to Git Markus Kötter koetter@rrzn.uni-hannover.de Leinelab Workshop July 28, 2015 Motivation - Why use version control? Versions in file names: does this look familiar? $ ls file file.2 file.
More informationUSERS MANUAL FOR OWL A DOCUMENT REPOSITORY SYSTEM
USERS MANUAL FOR OWL A DOCUMENT REPOSITORY SYSTEM User Manual Table of Contents Introducing OWL...3 Starting to use Owl...4 The Logging in page...4 Using the browser...6 Folder structure...6 Title Bar...6
More informationAgenda. Using HPC Wales 2
Using HPC Wales Agenda Infrastructure : An Overview of our Infrastructure Logging in : Command Line Interface and File Transfer Linux Basics : Commands and Text Editors Using Modules : Managing Software
More informationShree M. & N. Virani Science College. DOS Commands. By Milan Kothari. Yogidham, Kalawad Road, Rajkot 5 Ph : 2576681
DOS Commands By Milan Kothari What Is Dos? DOS or the Disk Operating System designed to operate personal computer is basically a collection of software programs that help to manage the personal computer
More informationA Computer Glossary. For the New York Farm Viability Institute Computer Training Courses
A Computer Glossary For the New York Farm Viability Institute Computer Training Courses 2006 GLOSSARY This Glossary is primarily applicable to DOS- and Windows-based machines and applications. Address:
More informationVersion Control with Subversion and Xcode
Version Control with Subversion and Xcode Author: Mark Szymczyk Last Update: June 21, 2006 This article shows you how to place your source code files under version control using Subversion and Xcode. By
More informationUNIX - FILE SYSTEM BASICS
http://www.tutorialspoint.com/unix/unix-file-system.htm UNIX - FILE SYSTEM BASICS Copyright tutorialspoint.com A file system is a logical collection of files on a partition or disk. A partition is a container
More information2 Advanced Session... Properties 3 Session profile... wizard. 5 Application... preferences. 3 ASCII / Binary... Transfer
Contents I Table of Contents Foreword 0 Part I SecEx Overview 3 1 What is SecEx...? 3 2 Quick start... 4 Part II Configuring SecEx 5 1 Session Profiles... 5 2 Advanced Session... Properties 6 3 Session
More informationHDFS File System Shell Guide
Table of contents 1 Overview...3 1.1 cat... 3 1.2 chgrp... 3 1.3 chmod... 3 1.4 chown... 4 1.5 copyfromlocal...4 1.6 copytolocal...4 1.7 count... 4 1.8 cp... 4 1.9 du... 5 1.10 dus...5 1.11 expunge...5
More informationAdvanced UNIX Techniques Lee Ann Lee Revised by Wendy Kajiyama
UNIX008 May 2000 Advanced UNIX Techniques Lee Ann Lee Revised by Wendy Kajiyama Welcome... 1 Conventions Used in this Document... 2 File Privacy... 2 The Alias Mechanism... 5 Manipulating Input/Output...6
More information