Natawut NupairojAssembly Language1 Unix Survival Guide.

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

Learning Unix/Linux Bioinformatics Orientation 2008 Eric Bishop.
Jump to first page Unix Commands Monica Stoica Jump to first page Introduction to Unix n Unix was born in 1969 at Bell Laboratories, a research subdivision.
Chapter One The Essence of UNIX.
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.
Working Environment - - Linux - -.
Introduction to UNIX CS208.
Guide To UNIX Using Linux Third Edition
CS 497C – Introduction to UNIX Lecture 1: Getting Started Chin-Chih Chang
Unix Workshop Aug What is Unix Multitasking, multiuser operating system Often the OS of choice for large servers, large clusters.
1 SEEM3460 Tutorial Unix Introduction. 2 Introduction What is Unix? An operation system (OS), similar to Windows, MacOS X Why learn Unix? Greatest Software.
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.
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.
File Systems Sources and Resources: 1. A Students Guide to UNIX, by Hahn 2. Paula Davidson’s Handout on UNIXHandout on UNIX.
Overview of Linux CS3530 Spring 2014 Dr. José M. Garrido Department of Computer Science.
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.
Lesson 1. PC vs. Multi-user System  Personal Computer – each user gets his/her own processor (or multicore processor).  Multi-user system – The processor,
Essential Unix at ACEnet Joey Bernard, Computational Research Consultant.
Unix Basics Chapter 4.
Cmsc 312 Operating Systems. UNIX? DOS – PC? VAX/VMS - mainframe Unix – PC, workstation, mainframe 1970 bell Lab For computer scientist? Why popular? Free.
AN INTRO TO UNIX/LINUX COMMANDS BY: JIAYANG WANG.
Linux overview. Architecture Kernel File system Shell: Korn, Bourne, C, Bash X Windows: Motif, Open Look, X.OrgX.Org Desktop: Gnome, KDE,etc.
1 N305 C Programming. 2 Objectives for the Lab ä Learn problem solving strategies ä Achieve intermediate knowledge of C Programming Language ä Gain experience.
System Administration Introduction to Unix Session 2 – Fri 02 Nov 2007 Reference:  chapter 1, The Unix Programming Environment, Kernighan & Pike, ISBN.
Operating Systems and Using Linux CMSC 104, Lecture 3 John Y. Park 1.
1 Operating Systems and Using Linux Topics What is an Operating System? Linux Overview Frequently Used Linux Commands Reading None.
Introduction to UNIX Road Map: 1. UNIX Structure 2. Components of UNIX 3. Process Structure 4. Shell & Utility Programs 5. Using Files & Directories 6.
Welcome to CS323 Operating System lab 1 TA: Nouf Al-Harbi NoufNaief.net.
Just Enough Unix, Chapter 1
Log-in to the Unix Server A successful log-in allows access to the server through the Secure Shell. SSH, also known as Secure Shocket Shell, is a Unix.
Tera Term Brian Smith Chris Vasse Zaheemat Adetoro William Newton Tom Presgraves.
Unix and Samba By: IC Labs (Raj Kidambi). What is Unix?  Unix stands for UNiplexed Information and Computing System. (It was originally spelled "Unics.")
CS2204: Introduction to Unix January 19 th, 2004 Class Meeting 1 * Notes adapted by Christian Allgood from previous work by other members of the CS faculty.
Intro to UNIX Presented by: Student Ambassadors: Lauren Lewis Martin Sung.
Introduction to Programming Using C An Introduction to Operating Systems.
UNIX History - joint venture between MIT and Bell Labs (originally called Multics) – Ken Thompson (AT&T) created an operating system to run Space.
Basic of UNIX For fresh members of SPARCS
Linux Commands C151 Multi-User Operating Systems.
File Systems, telnet and ftp Sources and Resources: 1. A Students Guide to UNIX, by Hahn 2. Paula Davidson’s Handout on UNIXHandout on UNIX.
CS 245 – Part 1 Using Operating Systems and Networks for Programmers Jiang Guo Dept. of Computer Science California State University Los Angeles.
1 Lecture 2 Working with Files and Directories COP 3353 Introduction to UNIX.
Introduction to UNIX CS 2204 Class meeting 1 *Notes by Doug Bowman and other members of the CS faculty at Virginia Tech. Copyright
A gentle introduction to LINUX at the command prompt.
AN INTRO TO UNIX/LINUX COMMANDS BY: JIAYANG WANG.
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.
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  There are many different.
Introduction to UNIX and Linux.  Written by Dennis Ritchie and Ken Thomsom at Bell Labs in 1969  Initially written in assembly language and a high-level.
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.
Operating systems Lecture #3 Modern OS characteristics.
CMSC 104, Version 9/011 Operating Systems and Using Linux Topics What is an Operating System? Linux Overview Frequently Used Linux Commands Reading None.
By Jonathan Rinfret UNIX/LINUX By Jonathan Rinfret
Overview of Linux Fall 2016 Dr. Donghyun Kim
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.
Introducing the UNIX Operating System.
Andy Wang Object Oriented Programming in C++ COP 3330
Unix : Introduction and Commands
Operating Systems and Using Linux
Operating Systems and Using Linux
Web Programming Essentials:
Operating Systems and Using Linux
Andy Wang Object Oriented Programming in C++ COP 3330
UNIX Introduction.
Operating Systems and Using Linux
Operating Systems and Using Linux
Operating Systems and Using Linux
Presentation transcript:

Natawut NupairojAssembly Language1 Unix Survival Guide

Natawut NupairojAssembly Language2 What is Unix ? Very popular OS. (Solaris, HP/UX, Ultrix, Linux, FreeBSD, etc.) Being used in many medium-end/high-end servers. Very stable, flexible, portable.

Natawut NupairojAssembly Language3 Why do you need to care ? Good question! It is Windows’ world anyway. WRONG! –A lot of servers are Unix-based. –Unix is older than Windows but yet it still has the old basic concepts. –Unix is considered to be “cleaner” than Windows in term of coding. –Unix is still more secured than Windows. –Most of network devices are Unix-based (e.g. routers, caches, mail servers, security servers). –You can find a job with good pay with Unix.

Natawut NupairojAssembly Language4 Unix History Born in 1969 as a child of project called “Multrics” (by Bell Labs, GE, and MIT). Its famous parents: Ken Thompson and Dennis Ritchie. Its famous sibling (and supporter): C language (by Brian Kennigan and Dennis Ritchie). First machine: DEC’s PDP-7. First game on Unix: “space travel”. Famous game on early Unix: “rogue”.

Natawut NupairojAssembly Language5 Unix Features Why is it so popular ? –Multitasking. –Multiuser. –Portability. –Network applications.

Natawut NupairojAssembly Language6 Basic Skills for this Class Basic Unix operations: login, logout, directory Basic Unix commands: man, ls, cd, pwd, rm, mv, cat, more Editing commands: pico, vi Assembler / Debugger: as, ld, gcc, gdb Which computer you can use ? –Remote login (using telnet or secure shell). –cpu200, zeus, and athena.

Natawut NupairojAssembly Language7 Basic Unix Operations Start using the system: login login: natawut Password: Last login: Mon Aug 12 22:37:02 from zeus.cp.eng.chula $ Quitting from the system: logout $ logout ALWAYS LOGOUT !!! –Can use “exit” or CTRL-D.

Natawut NupairojAssembly Language8 Editing Keys When entering a command at the shell prompt: –erase one character: ctrl-H / backspace –erase the whole line: ctrl-U –stop execution: ctrl-C –pause output to the screen: ctrl-S –resume after a pause: ctrl-Q

Natawut NupairojAssembly Language9 Directory Structure All files are organized in “(sub)directory” (folders). –hierarchy: current directory, parent directory, root directory –path reference: absolute, relative

Natawut NupairojAssembly Language10 Basic Unix Commands Getting help: man (manual) $ man ls $ man man format: man

Natawut NupairojAssembly Language11 Basic Unix Commands (cont’) Listing all the files: ls $ ls Admin Class bin public_html options: ls -l, ls -a, ls -al, ls $ ls –l Class $ ls –al.. format: ls [-laCFR]

Natawut NupairojAssembly Language12 Basic Unix Commands (cont’) Understand permissions: $ ls -l total 168 drwxr-xr-x 3 natawut faculty 4096 Aug 5 16:24 Class drwxr-xr-x 2 natawut faculty 4096 Jul 10 00:25 Images drwxr-xr-x 2 natawut faculty 4096 Jul 10 00:25 Library drwxr-xr-x 8 natawut faculty 4096 Jan Old drwxr-xr-x 2 natawut faculty 4096 Aug 5 16:09 Publications drwxr-xr-x 2 natawut faculty 4096 Aug 1 01:04 Templates -rw-r--r-- 1 natawut faculty 4800 Aug 1 01:05 class.html -rw-r--r-- 1 natawut faculty 4551 Aug 1 01:17 contact.html -rw-r--r-- 1 natawut faculty 5817 Aug 1 01:21 home.html -rw-r--r-- 1 natawut faculty 3343 Feb 19 17:15 index.html...

Natawut NupairojAssembly Language13 Basic Unix Commands (cont’) Finding out where I am: pwd (print working directory) $ pwd /home/natawut Walking around: cd (changing directory) $ cd Admin $ pwd /home/natawut/Admin

Natawut NupairojAssembly Language14 Basic Unix Commands (cont’) change to parent directory, root directory. $ pwd /home/natawut/Admin $ cd.. $ pwd /home/natawut $ cd / $ pwd / $ cd $ pwd /home/natawut

Natawut NupairojAssembly Language15 Basic Unix Commands (cont’) change to absolute path, relative path. $ pwd /home/natawut $ cd public_html/Class $ pwd /home/natawut/public_html/Class $ cd /usr $ pwd /usr $ cd $ pwd /home/natawut $ cd../../usr $ pwd /usr

Natawut NupairojAssembly Language16 Basic Unix Commands (cont’) Deleting stuffs: rm (remove) $ rm hw1.asm Changing a file’s name / Moving things around: mv (move) $ mv hw1.asm h1.abc $ mv h1.abc Class $ mv h1.abc Class/hw1.txt

Natawut NupairojAssembly Language17 Basic Unix Commands (cont’) Displaying file’s content: cat $ cat hw1.asm A better version than cat: more $ more hw1.asm

Natawut NupairojAssembly Language18 Editing Files in Unix Several editing programs: pico, vi, emacs Simple editor: pico –Available only on cpu200. –Similar to “Notepad” program on Windows. For advance users: vi and emacs

Natawut NupairojAssembly Language19 References “man” pages. Grace Todino et. al., Learning the UNIX Operating System, O’Reilly&Associates, Inc. Other Unix books. Links in my homepage.