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.

Slides:



Advertisements
Similar presentations
Tony Kombol.  A program that  receives commands from a text input device (e.g. keyboard)  passes them to the operating system to perform  In the.
Advertisements

Learning Unix/Linux Bioinformatics Orientation 2008 Eric Bishop.
Chapter One The Essence of UNIX.
Processes and Job Control. Foreground and Background (1)  Unix is a multi-tasking operating system –some of these tasks are being done by other users.
Essential System Administration 3rd Edition Chapter 2 The Unix Way(Cont.) University Of Palestine.
Lesson 10-Controlling User Processes. Overview Managing and processing processes. Managing jobs. Exiting/quitting when jobs have been stopped.
LINUX System : Lecture 3 (English-Only Lecture) Bong-Soo Sohn Assistant Professor School of Computer Science and Engineering Chung-Ang University Acknowledgement.
Unix. Outline Commands Environment Variables Basic Commands CommandMeaning lslist files and directories ls -alist all files and directories mkdirmake.
1 Introduction to UNIX Ke Liu
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.
Operating Systems Review. User Computer, including HW and SW.
Unix Basics. Systems Programming: Unix Basics 2 Unix Basics  Unix directories  Important Unix file commands  File and Directory Access Rights through.
Lecture 02CS311 – Operating Systems 1 1 CS311 – Lecture 02 Outline UNIX/Linux features – Redirection – pipes – Terminating a command – Running program.
Basic Unix Dr Tim Cutts Team Leader Systems Support Group Infrastructure Management Team.
UNIX Overview. 2 UNIX UNIX is a multi-user and multi-tasking operating system. Multi-tasking: Multiple processes can run concurrently. Multi-user: different.
L INUX C OMMAND L INE I NTERFACE G UNAANBAN.G
5 UNIX Processes. Introduction  Processes  How to list them  How to terminate them  Process priorities  Scheduling jobs  Signals.
Systems Programming Concepts
The Unix Environment and Compiling. Getting Set Up Your programs will be compiled and tested on the Departmental server ‘linprog’ The linprog servers.
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”
Linux environment ● Graphical interface – X-window + window manager ● Text interface – terminal + shell.
Lesson 1. PC vs. Multi-user System  Personal Computer – each user gets his/her own processor (or multicore processor).  Multi-user system – The processor,
Unix Basics Chapter 4.
The Shell Chapter 7. Overview The Command Line Standard IO Redirection Pipes Running a Program in the Background Killing (a process!)
Linux+ Guide to Linux Certification, Third Edition
June 1, 1999UNIX File System1 Introduction to UNIX D. UNIX File Structure.
PROGRAMMING PROJECT POLICIES AND UNIX INTRO Sal LaMarca CSCI 1302, Fall 2009.
CCPR Workshop Introduction to the Cluster July 13, 2006.
LINUX programming 1. INDEX UNIT-III PPT SLIDES Srl. No. Module as per Session planner Lecture No. PPT Slide No. 1.Problem solving approaches in Unix,Using.
Before we start…Getting Started. UST Outline History Getting Started Basic commands (command line) Operations on Files and Directories Input and Output.
1 Operating Systems and Using Linux Topics What is an Operating System? Linux Overview Frequently Used Linux Commands Some content in this lecture added.
Hands On UNIX II Dorcas Muthoni. Processes A running instance of a program is called a "process" Identified by a numeric process id (pid)‏  unique while.
Introduction to UNIX Geraint Vaughan. What is UNIX? Command-line operating system (not point- and click) Designed for ‘experts’ Lots of different variants.
1 Lecture 6 Introduction to Process Management COP 3353 Introduction to UNIX.
Lesson 3-Touring Utilities and System Features. Overview Employing fundamental utilities. Linux terminal sessions. Managing input and output. Using special.
Linux Commands C151 Multi-User Operating Systems.
PTA Linux Series Copyright Professional Training Academy, CSIS, University of Limerick, 2006 © Workshop III - Part A Shell Commands Professional Training.
– Introduction to the Shell 1/21/2016 Introduction to the Shell – Session Introduction to the Shell – Session 3 · Job control · Start,
Agenda Using FTP What is FTP? How to Use the FTP Program How to transfer files Using FTP.
1 CS3695 – Network Vulnerability Assessment & Risk Mitigation – Introduction to Unix & Linux.
The Unix File sytem. Introduction Tree structure …
Agenda Managing Processes (Jobs) Command Grouping Running jobs in background (bg) Bringing jobs to foreground (fg), Background job status (jobs) Suspending.
Agenda The Bourne Shell – Part I Redirection ( >, >>,
An Introduction to processes R Bigelow. A Unix Process A process in Unix is simple a program The Unix system is made up of a group of processes all interacting.
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.
1 CSE 390a Lecture 3 bash shell continued: processes; multi-user systems; remote login; editors slides created by Marty Stepp, modified by Jessica Miller.
CS 120 Extra: The CS1 Server Tarik Booker CS 120.
Learning Unix/Linux Based on slides from: Eric Bishop.
Review Why do we use protection levels? Why do we use constructors?
GRID COMPUTING.
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.
slides created by Marty Stepp, modified by Josh Goodwin
Linux Commands Help HANDS ON TRAINING Author: Muhammad Laique
Andy Wang Object Oriented Programming in C++ COP 3330
C151 Multi-User Operating Systems
Basic UNIX OLC Training.
CSE 390a Lecture 3 bash shell continued: processes; multi-user systems; remote login; editors slides created by Marty Stepp, modified by Jessica Miller.
slides created by Marty Stepp, modified by Jessica Miller
Shells, Help, and Paths.
Andy Wang Object Oriented Programming in C++ COP 3330
UNIX/LINUX Commands Using BASH Copyright © 2017 – Curt Hill.
CSE 390a Lecture 3 bash shell continued: processes; multi-user systems; remote login; editors slides created by Marty Stepp, modified by Jessica Miller.
slides created by Marty Stepp, modified by Jessica Miller
CSE 390a Lecture 3 bash shell continued: processes; multi-user systems; remote login; editors slides created by Marty Stepp, modified by Jessica Miller.
CSE 390a Lecture 3 bash shell continued: processes; multi-user systems; remote login; editors slides created by Marty Stepp, modified by Jessica Miller.
CSE 390a Lecture 3 bash shell continued: processes; multi-user systems; remote login; editors slides created by Marty Stepp, modified by Jessica Miller.
Lecture 6 Introduction to Process Management
Presentation transcript:

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 Name: access id (e.g. abc12) Connect

Some Important Concepts The "shell" The shell (command tool, tcsh) is where you run most programs, such as R, SAS, Netscape, etc. This allows you to write a "shell script" which is a set of Unix commands that you can run in sequence. You can run in interactive mode, or you can set up a script that allows you to run commands unattended.

The On-Line Help The help command is called man (for manual) Type: man for help with the man command and man cmd for help with the particular cmd you are interested. To scroll down, use "space bar". To quit, type "q"

Quit, Pause, Resume Just about any program can be exited by cntrl C. cntr Z can be used to temporarily pause a program. The program can be resumed in interactive mode by typing "fg" or in "background mode" by typing "bg". Programs running in the foreground (fg) always take priority in use of CPU over programs running in the background. This is handy if you want to do some other work while a CPU intensive program is running.

Some Important Concepts The "shell" Many shells can run at the same time, so you can have your simulation program running at the same time as other scripts. This allows Unix to allow multiprocessing. One important shell is the console, which is the main login shell (if you are the sole user) or the root user (for administrative machines such as servers).

Files Files are just text - they are not attached to programs like they are in Windows and MacIntosh. So, filename extensions are just for your own information. File names starting with "." are generally system files used by various programs (but you can tamper with them at your own risk). Files are stored on the central server and are accessible from any departmental computer.

File System Unix has a nested file system, similar to the folder system in Windows. Directory == folder

Command Format Unix commands usually have the format: cmd -options e.g. ls lists all the files in the current directory except hidden files (files whose names start with ".") ls -a lists all the files including hidden files. man ls

Some Useful Commands lslists the files and directories in the current directory moreprints the contents of a file mkdirmakes a new directory within the current one cdchanges directory pwdidentifies the name of the current directory rmremoves a file rmdirremoves a directory if it is empty killends a stopped process psgives information on all processes chmodpermits you to share files and directories with others tschcalls the shell

Redirecting Input and Output < allows you to send commands to a program from a file e.g. R < rcmds > allows the program to write to a file instead of to the screen. R R.output

Example of the Use of Redirection tcsh < shell.cmd tcsh shell.out more shell.out tcsh < shell.cmd | more "|" is a "pipe" sending the output of the left side to the program on the right side.