THE UNIX SYSTEM Ashish Gupta TA, Intro to Networking Jan 14 2004 Recital 2 Introduction to Networking, Instructor: Prof. Yan Chen.

Slides:



Advertisements
Similar presentations
Learning Unix/Linux Bioinformatics Orientation 2008 Eric Bishop.
Advertisements

The UNIX SYSTEM Introduction to Networking. Unix Tools Shells Useful Commands Pipes & Redirects.
1 Introduction to UNIX Ke Liu
NETW-240 Shells Last Update Copyright Kenneth M. Chipps Ph.D. 1.
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.
© Janice Regan, CMPT 102, Sept CMPT 102 Introduction to Scientific Computer Programming Preparation for working in the CSIL Basic LINUX operations.
Linux+ Guide to Linux Certification, Second Edition
Lecture 01CS311 – Operating Systems 1 1 CS311 – Lecture 01 Outline Course introduction Setting up your system Logging onto the servers at OSU with ssh.
UNIX Overview. 2 UNIX UNIX is a multi-user and multi-tasking operating system. Multi-tasking: Multiple processes can run concurrently. Multi-user: different.
7/17/2009 rwjBROOKDALE COMMUNITY COLLEGE1 Unix Comp-145 C HAPTER 2.
Linux Shell. 2 Linux Command-Line Interface ■ Linux shells: A shell is a command interpreter that allows you to type commands from the keyboard to interact.
Linux Commands LINUX COMMANDS.
CS 141 Labs are mandatory. Attendance will be taken in each lab. Make account on moodle. Projects will be submitted via moodle.
ACM & MUG Tech Talk Software Development Tools on Unix October 15, 2002
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”
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.
Linux environment ● Graphical interface – X-window + window manager ● Text interface – terminal + shell.
File Processing. Introduction More UNIX commands for handling files Regular Expressions and Searching files Redirection and pipes Bash facilities.
Unix Basics Chapter 4.
An Introduction to UNIX System --- Cosc513 Presentation n Instructor: Morteza Anvari n Author: Yonghong Pan n ID#: n Date: Jan.29, 2001.
CENT 305 Information Systems Security Linux Introduction.
Basic unix commands that everyone should know (Even if you have a mac) Slightly more advanced:
Introduction to Unix – CS 21 Lecture 9. Lecture Overview Shell description Shell choices History Aliases Topic review.
Linux+ Guide to Linux Certification Chapter Four Exploring Linux Filesystems.
The UNIX development environment CS 400/600 – Data Structures.
CS 6560 Operating System Design Lecture 3:Tour of GNU/Linux.
System Administration Introduction to Unix Session 2 – Fri 02 Nov 2007 Reference:  chapter 1, The Unix Programming Environment, Kernighan & Pike, ISBN.
Session 2 Wharton Summer Tech Camp Basic Unix. Agenda Cover basic UNIX commands and useful functions.
Week 3 Exploring Linux Filesystems. Objectives  Understand and navigate the Linux directory structure using relative and absolute pathnames  Describe.
1 Operating Systems and Using Linux Topics What is an Operating System? Linux Overview Frequently Used Linux Commands Some content in this lecture added.
Lesson 2-Touring Essential Programs. Overview Development of UNIX and Linux. Commands to execute utilities. Communicating instructions to the shell. Navigating.
ITR3 lecture 6: intoduction to UNIX Thomas Krichel
Introduction to UNIX Geraint Vaughan. What is UNIX? Command-line operating system (not point- and click) Designed for ‘experts’ Lots of different variants.
Lecture 24CS311 – Operating Systems 1 1 CS311 – Lecture 24 Outline Final Exam Study Guide Note: These lecture notes are not intended replace your notes.
4 Editing files and Emacs Editing files The Emacs editor.
Introduction to Programming Using C An Introduction to Operating Systems.
Getting Started UNIX InKwan Yu Topics Unix Commands Unix System calls C function calls.
CSE 374 Programming Concepts & Tools Hal Perkins Fall 2015 Lecture 2a – A Unix Command Sampler (Courtesy of David Notkin, CSE 303)
PTA Linux Series Copyright Professional Training Academy, CSIS, University of Limerick, 2006 © Workshop III - Part A Shell Commands Professional Training.
1 CS3695/M6-109 – Network Vulnerability Assessment & Risk Mitigation – Introduction to Unix & Linux.
THE UNIX SYSTEM Jan Recitation 2 Introduction to Networking.
Unix Advanced Shells Chapter 10. Unix Shells u Command Line Interpreter –once logged in, login gives control to a shell –it prompts for input, then parses,
Linux+ Guide to Linux Certification, Second Edition Chapter 4 Exploring Linux Filesystems.
Linux A practical introduction. 1)Background and Getting Started Linux is an operating system with multiple providers Red Hat/CentOS (our version) Ubuntu.
A Brief Overview of Unix Brandon Bohrer. Topics What is Unix? – Quick introduction Documentation – Where to get it, how to use it Text Editors – Know.
1 CS3695 – Network Vulnerability Assessment & Risk Mitigation – Introduction to Unix & Linux.
Unix Fundamentals CS 127. File navigation cd - change directory cd /var/log cd /etc/apache2 cd ~/Desktop ~ is a shortcut for the home directory.
Operating Systems and Using Linux Courtesy of John Y. Park 1.
Unix Lab Fall Shell Scripting ●Through the shell (LXTerminal) you can: ●Run programs. ●Interact with the file system. ●Change settings. ●Send/receive.
Learning Unix/Linux Based on slides from: Eric Bishop.
INTRODUCTION TO SHELL SCRIPTING By Byamukama Frank
Chapter 3: Mastering Editors Chapter 3 Mastering Editors (Emacs)
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.
Getting started with CentOS Linux
Andy Wang Object Oriented Programming in C++ COP 3330
Unix Shells.
Some Linux Commands.
The Command Prompt Commands are the way to “do things” in Unix
Software Tools Recitation 1
Operating Systems and Using Linux
An Introduction to UNIX System --- Cosc513 Presentation
John Carelli, Instructor Kutztown University
Operating Systems and Using Linux
Getting started with CentOS Linux
Andy Wang Object Oriented Programming in C++ COP 3330
Linux Shell Script Programming
CSE 303 Concepts and Tools for Software Development
Operating Systems and Using Linux
Linux Commands LINUX COMMANDS.
Presentation transcript:

THE UNIX SYSTEM Ashish Gupta TA, Intro to Networking Jan Recital 2 Introduction to Networking, Instructor: Prof. Yan Chen

Unix Tools Shells Useful Commands Pipes & Redirects

Shells sh, csh, ksh, tcsh, bash, zsh Recommend tcsh or bash for interactive use. Both have command completion, simple command line editing and simple to use history facilities. Change logon shell using chsh

Intro to Unix: Files Filesystem a single tree ( no drives ) Filenames case senstitive Physical devices can be mounted anywhere / tmpdevetchomeusr chrislibmaryincludebinlocal libincludebin

Some basic commands the bash shell has automatic completion, just press completion is used for command names and for file names – try: pressing twice gives you all options – try:

Intro to Unix: Essential Cmds cd- change directory - cd mkdir- make a directory - md cp- copy a file - copy ls- list files - dir rm- remove a file - del mv- move a file - move & ren grep- expression searching top- cpu and memory usage who/w- who else is logged in man- read documentation

Other unix commands where am I? – pwd who is around? – who where is that file? – find -name what is the name of that file? – grep

Using find and grep with wildcards we can use “wildcard”characters to make searches more general “*” is the main one, means any set of characthers ex: – find /home/brian -name “*.ppt” : finds all powerpoint files in the account – grep human *.txt : look for the word “human” in all the files in my directory.

Pipes & redirects Pipes are used to pass the output from one Unix command as the input to another Unix command. ls | grep “mmk” Redirects are used to pass the output of a Unix command into a file. ls > directory_listing

Text Editors Crucial tools for using Unix Two main editors –emacs –vi Great features in both: –Syntax highlighting –Brace matching –Sophisticated text manipulation/movement –Scriptable –…

EMACS Ashish Gupta TA, Intro to Networking Jan Recital 2 Introduction to Networking, Instructor: Prof. Yan Chen

Text Editors: emacs Configurable, extensible, complicated emacs and xemacs

Using emacs to start emacs just “call it” typing emacs basic editing in emacs is very intuitive – use arrows, “pg up”and “pg down”to move cursor – use del key to delete – back key to delete backwards – typing insert text at the cursor position to edit an existing file type emacs

Using Emacs: keyboard commands there are some keyboard commands you need to know we use the folowing abreviations – “C” is the “Control” key – “M” is the “Esc”key – “-” between two letters mean both have to be pressed simoutaniously Some basic commands – C-x, C-s - save the file – C-x, C-c - exit Emacs

Using Emacs: the minibuffer if you look at your screen you see a solid bar in the bottom of your page underneath this bar is the “minibuffer” the “minibuffer” is used for the communication between you and Emacs - emacs prints messages there – you type text that emacs needs to perform a command – you can type commands here

Commands that use the minibuffer C-x C-w “save as” - you type the new name in the minbuffer C-x C-f load a new file in Emacs C-s : search for a string – this search is incremental and goes as you search – typing C-s again will search for the next occurrence of the same string – to go back to the editing, just press any arrow key – after you go back, typing C-s twice resumes the search

GCC and make Ashish Gupta TA, Intro to Networking Jan Recital 2 Introduction to Networking, Instructor: Prof. Yan Chen

Development tools in UNIX Creation of source files (.c,.h,.cpp) –Text editors (e.g. vi) –Revision control systems (e.g. cvs) Compilation (e.g. *.c *.o) and linking –Compilers (e.g. gcc) –Automatic building tools (e.g. make) Running and testing programs –Debuggers (e.g. gdb)

Links shop/unix/ shop/unix/ chedule.htmlhttp://courses.cs.vt.edu/~cs2204/spring2002/s chedule.html Fall97/Slides/ 209-Fall97/Slides/