THE UNIX SYSTEM Jan 20 2006 Recitation 2 Introduction to Networking.

Slides:



Advertisements
Similar presentations
Linux commands exercise 1. What do you need, if you try to these at home? You need to download and install Ubuntu Linux from the Internet – DVD is need.
Advertisements

Learning Unix/Linux Bioinformatics Orientation 2008 Eric Bishop.
The UNIX SYSTEM Introduction to Networking. Unix Tools Shells Useful Commands Pipes & Redirects.
PacNOG 6: Nadi, Fiji Using Commands in Linux Hervey Allen Network Startup Resource Center.
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.
THE UNIX SYSTEM Ashish Gupta TA, Intro to Networking Jan Recital 2 Introduction to Networking, Instructor: Prof. Yan Chen.
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.
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.
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.
3 File Processing Mauro Jaskelioff. Introduction More UNIX commands for handling files Regular Expressions and Searching files Redirection and pipes Bash.
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.
Cmsc 312 Operating Systems. UNIX? DOS – PC? VAX/VMS - mainframe Unix – PC, workstation, mainframe 1970 bell Lab For computer scientist? Why popular? Free.
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.
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.
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.
Using Commands Unix / Linux Preparation Course May 6, 2012 Serrekunda, The Gambia.
ITR3 lecture 6: intoduction to UNIX Thomas Krichel
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.
Week 8: Linux / ubuntu Dr. I. H. Shah. / CSCS 301 Fall 2009.
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.
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.
File Processing. Introduction More UNIX commands for handling files Regular Expressions and Searching files Redirection and pipes Bash facilities.
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
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
CS3695/M6-109 – Network Vulnerability Assessment & Risk Mitigation –
Andy Wang Object Oriented Programming in C++ COP 3330
Unix Shells.
Some Linux Commands.
Operating Systems and Using Linux
An Introduction to UNIX System --- Cosc513 Presentation
John Carelli, Instructor Kutztown University
A Brief Overview of Unix
Operating Systems and Using Linux
Getting started with CentOS Linux
Andy Wang Object Oriented Programming in C++ COP 3330
CSE 303 Concepts and Tools for Software Development
Operating Systems and Using Linux
Linux Commands LINUX COMMANDS.
Presentation transcript:

THE UNIX SYSTEM Jan Recitation 2 Introduction to Networking

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

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 Jan Recitation 2 Introduction to Networking

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 following abbreviations – “C” is the “Control” key – “M” is the “Esc”key – “-” between two letters mean both have to be pressed simultaneously 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 Jan Recitation 2 Introduction to Networking

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