Introduction to UNIX Geraint Vaughan. What is UNIX? Command-line operating system (not point- and click) Designed for ‘experts’ Lots of different variants.

Slides:



Advertisements
Similar presentations
Introduction to the Omega Server CSE Overview Intro to Omega Basic Unix Command Files Directories Printing C and C++ compilers GNU Debugger.
Advertisements

Linux, it's not Windows A short introduction to the sub-department's computer systems Gareth Thomas.
Learning Unix/Linux Bioinformatics Orientation 2008 Eric Bishop.
Working with Files How to create, view, copy, rename and print files.
Cosc 4750 Getting Started in UNIX Don’t be afraid of the prompt, in linux it can be your best friend. In some cases, the only way to do certain things.
ATS Programming Short Course I INTRODUCTORY CONCEPTS Tuesday, Jan. 27 th, 2009 Essential Unix Commands.
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.
Linux & Applications Sean GavinWayne State University multi-user environment -- log in: user name and password -- you never turn the computer on or off.
UNIX Chapter 00 A “ Quick Start ” into UNIX Operating System Mr. Mohammad Smirat.
Unix Basics. Systems Programming: Unix Basics 2 Unix Basics  Unix directories  Important Unix file commands  File and Directory Access Rights through.
Embedded Programming and Robotics Lesson 13 Basic Linux 1.
1 Some basic Unix commands u Understand the concept of loggin into and out of a Unix shell u Interact with the system in a basic way through keyboard and.
A Mini UNIX Tutorial. What’s UNIX?  An operating system run on many servers/workstations  Invented by AT&T Bell Labs in late 60’s  Currently there.
L INUX C OMMAND L INE I NTERFACE G UNAANBAN.G
CS 141 Labs are mandatory. Attendance will be taken in each lab. Make account on moodle. Projects will be submitted via moodle.
Using Macs and Unix Nancy Griffeth January 6, 2014 Funding for this workshop was provided by the program “Computational Modeling and Analysis of Complex.
Systems Programming Concepts
Learning basic Unix command IT 325 operating system.
1 Day 3 Directories Files Moving & Copying. 2 Case Sensitive First thing to learn about UNIX is that everything is case sensitive. Thus the files: –enda.
1 THE UNIX FILE SYSTEM By Chokechai Chuensukanant ID COSC 513 Operating System.
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”
Introducing UNIX EMBnet slide 1 Introducing the UNIX Operating System.
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.
CHAPTER 1 UNIX FOR NONPROGRAMMERS By U ğ ur Halıcı.
Linux environment ● Graphical interface – X-window + window manager ● Text interface – terminal + shell.
Essential Unix at ACEnet Joey Bernard, Computational Research Consultant.
Unix Basics Chapter 4.
1 N305 C Programming. 2 Objectives for the Lab ä Learn problem solving strategies ä Achieve intermediate knowledge of C Programming Language ä Gain experience.
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.
Getting started: Basics Outline: I.Connecting to cluster: ssh II.Connecting outside UCF firewall: VPN client III.Introduction to Linux IV.Intoduction to.
1 Operating Systems and Using Linux Topics What is an Operating System? Linux Overview Frequently Used Linux Commands Reading None.
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.
Text Editing February 2 nd, 2004 Class Meeting 3.
Unix Commands PowerPoint Presentation developed for LS 560 Information Technology online class - University of Alabama by Debey Sklenar TENacious Cohort.
Agenda Basic Unix Commands (Chapters 2 & 3) Miscellaneous Commands: whereis, which, whoami, finger, passwd, cal, date Working with Files: cat, more, less.
1May 16, 2005 Week 2 Lab Agenda Command Line FTP Commands Review More UNIX commands to learn File name expansion - * Introduction of vi.
E X C E E D I N G E X P E C T A T I O N S Basic LINUX Linux System Administration Dr. Hoganson Kennesaw State University Operating Systems Directory structure:
Introduction to Programming Using C An Introduction to Operating Systems.
PTA Linux Series Copyright Professional Training Academy, CSIS, University of Limerick, 2006 © Workshop III - Part A Shell Commands Professional Training.
PTA Linux Series Copyright Professional Training Academy, CSIS, University of Limerick, 2006 © Workshop III - Part B Shell Commands Professional Training.
Linux A practical introduction. 1)Background and Getting Started Linux is an operating system with multiple providers Red Hat/CentOS (our version) Ubuntu.
Linux Stuff Last Update Copyright 2014 Kenneth M. Chipps Ph.D. 1.
1 Introduction to Unix. 2 What is UNIX?  UNIX is an Operating System (OS).  An operating system is a control program that helps the user communicate.
 Last lesson, the Windows Operating System was discussed along with the Windows command shell  Unix is a computer operating system, that similarly manages.
The Unix File sytem. Introduction Tree structure …
Basic Unix Commands. Listing files and directories ● ls:command is used to list the files and ● directories in present working directory ● ls command.
Learning basic Unix command It 325 operating system.
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.
CMSC 104, Version 8/061L03OperatingSystems.ppt Operating Systems and Using Linux Topics What is an Operating System? Linux Overview Frequently Used Linux.
CS 120 Extra: The CS1 Server Tarik Booker CS 120.
Learning Unix/Linux Based on slides from: Eric Bishop.
CMSC 104, Version 9/011 Operating Systems and Using Linux Topics What is an Operating System? Linux Overview Frequently Used Linux Commands Reading None.
1 N305 C Programming. 2 Objectives for the Lab ä Learn problem solving strategies ä Achieve intermediate knowledge of C Programming Language ä Gain experience.
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.
CS1010: Intro Workshop.
Introducing the UNIX Operating System.
Getting started with CentOS Linux
Web Programming Essentials:
UNIX The Basics Source:
Andy Wang Object Oriented Programming in C++ COP 3330
Some Linux Commands.
Welcome to CSCI 230! Problem Solving using C
Operating Systems and Using Linux
Operating Systems and Using Linux
Web Programming Essentials:
Getting started with CentOS Linux
UNIX/LINUX Commands Using BASH Copyright © 2017 – Curt Hill.
Presentation transcript:

Introduction to UNIX Geraint Vaughan

What is UNIX? Command-line operating system (not point- and click) Designed for ‘experts’ Lots of different variants – e.g. LINUX, DEC UNIX, SUN UNIX……….. Used extensively for serious applications in physics Case-sensitive – CAT is different from cat

Logging on Start  network access  connect to central Log on using your usual id and password Make a new directory for the FORTRAN-90 course mkdir fort90 Change to directory fort90 cd fort90

Creating a new file cat (‘catalogue’) lists a file on the screen. You can use cat to create a new file like this: cat > myfile Type first line Type second line ……. Ctl-d

Editing a file 1 There are many text editors in Unix, but they are generally rather difficult to use. The most widely-available is emacs. On central the emacs interface is very easy to use but it seems to have a different interface on each computer To use emacs type emacs filename and use the intuitive interface

Editing a file 2 You can also use the windows notepad program if you prefer Start  word processing  notepad Notepad should start in your M: drive; change directory to fort90 File  open Enter file name and edit (You can also create new files with notepad but beware: Windows always adds.txt as a file extension. You then have to use the UNIX command mv to rename the file. Alternatively, create the file first in UNIX with the name you want (e.g. myprog.f90), and edit in Notepad)

Listing a file on the screen For a short file you can use cat filename For longer files this will scroll off the top of the screen. To see a screenful at a time use more filename, using carriage return or space bar to advance the pages more is quite a clever program – for instance typing 500f when the program pauses will advance 500 lines, 100b will go back 100 lines and /string will move forward to the next occurrence of that string.

Deleting files and directories 1.rm filename deletes a single file 2.rm * deletes all files in a directory: * works as a wild card, representing any file 3.rm file?? Deletes all files in the current directory with names like file01, filexx: ? is a wild character 4.rmdir sub removes subdirectory sub; rm –R sub removes sub and any subdirectories or files it contains.

Directory Listing To see which files you have in a directory: ls (for current directory) or ls sub for subdirectory To get more information (e.g. date of creation, ownership) ls –l or ls –l sub This illustrates the use of options with Unix commands: -x where x is a letter or combination of letters, e.g. ls –a List all files, including system files ls –R List all files in this directory and its subdirectories

Copying and renaming files cp file1 file2 copies the contents of file1 to file2 mv file1 file2 renames file1 as file2 Moving between directories cd sub moves to a subdirectory sub cd.. Moves to the next directory up cd../otherdir/newsub moves across to another directory (note /) cd by itself returns you to your home directory

Printing a file The basic print command is lpr filename. However, this will send your output to a central printer somewhere and you won’t be able to find it. Normally you will use a laser printer which expects Postscript pages. To send a Postscript file to these printers use a command like lpr –Puserarea postscriptfile To send a normal (ASCII) file you must use a2ps –Puserarea textfilename (College help sheet 58) A list of printers should be in each terminal room

Finding more information There is a huge amount of on-line information about Unix. Some useful places to start: College help page Departmental web page (information for current students)