ICS 351: Today's plan

Similar documents
Fundamentals of UNIX Lab Networking Commands (Estimated time: 45 min.)

File Transfer Examples. Running commands on other computers and transferring files between computers

Linux command line. An introduction to the Linux command line for genomics. Susan Fairley

Lab 1: Introduction to the network lab

Unix Sampler. PEOPLE whoami id who

List of FTP commands for the Microsoft command-line FTP client

Cisco Networking Academy Program Curriculum Scope & Sequence. Fundamentals of UNIX version 2.0 (July, 2002)

Command Line Crash Course For Unix

AN INTRODUCTION TO UNIX

Birmingham Environment for Academic Research. Introduction to Linux Quick Reference Guide. Research Computing Team V1.0

Fred Hantelmann LINUX. Start-up Guide. A self-contained introduction. With 57 Figures. Springer

INTRODUCTION. Version 6c, May 16 th, updated numbering of Figures 28, Deleted: March

Basic C Shell. helpdesk@stat.rice.edu. 11th August 2003

Command Line - Part 1

Introduction to Operating Systems

CS 2112 Lab: Version Control

Lab 1 Beginning C Program

2 Advanced Session... Properties 3 Session profile... wizard. 5 Application... preferences. 3 ASCII / Binary... Transfer

Unix Guide. Logo Reproduction. School of Computing & Information Systems. Colours red and black on white backgroun

Linux Overview. Local facilities. Linux commands. The vi (gvim) editor

SSL Tunnels. Introduction

Tutorial 0A Programming on the command line

Do it Yourself System Administration

WinSCP PuTTY as an alternative to F-Secure July 11, 2006

Table of Contents Introduction Supporting Arguments of Sysaxftp File Transfer Commands File System Commands PGP Commands Other Using Commands

Week Overview. Running Live Linux Sending from command line scp and sftp utilities

A UNIX/Linux in a nutshell

Hands-On UNIX Exercise:

Tutorial Guide to the IS Unix Service

UNIX: Introduction to TELNET and FTP on UNIX

INASP: Effective Network Management Workshops

Introduction to Mac OS X

Cisco Configuring Commonly Used IP ACLs

HPCC - Hrothgar Getting Started User Guide

Computing Service G72. File Transfer Using SCP, SFTP or FTP. many leaflets can be found at:

Linux System Administration on Red Hat

CONNECTING TO DEPARTMENT OF COMPUTER SCIENCE SERVERS BOTH FROM ON AND OFF CAMPUS USING TUNNELING, PuTTY, AND VNC Client Utilities

CS 103 Lab Linux and Virtual Machines

Kernel. What is an Operating System? Systems Software and Application Software. The core of an OS is called kernel, which. Module 9: Operating Systems

The Linux Operating System and Linux-Related Issues

A Crash Course on UNIX

Secure Shell. The Protocol

1 Basic commands. 2 Terminology. CS61B, Fall 2009 Simple UNIX Commands P. N. Hilfinger

New Lab Intro to KDE Terminal Konsole

Basic Linux and Unix commands, editing and transfering files

Make a folder named Lab3. We will be using Unix redirection commands to create several output files in that folder.

SSH and FTP on Ubuntu WNYLUG Neal Chapman 09/09/2009

UNIX / Linux commands Basic level. Magali COTTEVIEILLE - September 2009

FTP Manager. User Guide. July Welcome to AT&T Website Solutions SM

MobaXTerm: A good gnome-terminal like tabbed SSH client for Windows / Windows Putty Tabs Alternative

Introduction to Unix Tutorial

HARFORD COMMUNITY COLLEGE 401 Thomas Run Road Bel Air, MD Course Outline CIS INTRODUCTION TO UNIX

The Einstein Depot server

Syntax: cd <Path> Or cd $<Custom/Standard Top Name>_TOP (In CAPS)

File Transfer Protocol

An Introduction to the Linux Command Shell For Beginners

TNM093 Practical Data Visualization and Virtual Reality Laboratory Platform

Lab 1: Introduction to C, ASCII ART and the Linux Command Line Environment

Introduction to the UNIX Operating System and Open Windows Desktop Environment

SSH, SCP, SFTP, Denyhosts. Süha TUNA Res. Assist.

An A-Z Index of the Apple OS X command line (TERMINAL) The tcsh command shell of Darwin (the open source core of OSX)

Installing the SSH Client v3.2.2 For Microsoft Windows

Cloud Storage Quick Start Guide

How to Backup XenServer VM with VirtualIQ

Using Network Attached Storage with Linux. by Andy Pepperdine

Linux FTP Server Setup

Thirty Useful Unix Commands

PT Activity 8.1.2: Network Discovery and Documentation Topology Diagram

The Basics of FTP. Basic Order of Operations: Commands: FTP (File Transfer Protocol) allows a user to transfer files to/from a remote network site.

Secure File Transfer Installation. Sender Recipient Attached FIles Pages Date. Development Internal/External None 11 6/23/08

University of Toronto

Navigating the Rescue Mode for Linux

Beyond Windows: Using the Linux Servers and the Grid

Tera Term Telnet. Introduction

Unix the Bare Minimum

Laboration, Ping, Traceroute, etc

Connecting with Computer Science, 2e. Chapter 5 The Internet

Open Source Computational Fluid Dynamics

File Transfer Protocol - FTP

How To Set Up A Network Map In Linux On A Ubuntu 2.5 (Amd64) On A Raspberry Mobi) On An Ubuntu (Amd66) On Ubuntu 4.5 On A Windows Box

Adafruit's Raspberry Pi Lesson 7. Remote Control with VNC

finger, ftp, host, hostname, mesg, rcp, rlogin, rsh, scp, sftp, slogin, ssh, talk, telnet, users, w, walla, who, write,...

How to upload large files to a JTAC Case

1 Data information is sent onto the network cable using which of the following? A Communication protocol B Data packet

Lab Configuring Access Policies and DMZ Settings

SSH and Basic Commands

Defeating Firewalls : Sneaking Into Office Computers From Home

Firewalls. Network Security. Firewalls Defined. Firewalls

Unix Tools. Overview. Editors. Editors nedit vi Browsers/HTML Editors Mail Tools Utilities xv xman ftp

LECTURE-7. Introduction to DOS. Introduction to UNIX/LINUX OS. Introduction to Windows. Topics:

HP-UX Essentials and Shell Programming Course Summary

An Introduction to Using the Command Line Interface (CLI) to Work with Files and Directories

CDS and Clearing Limited Thapathali, Kathmandu 7 th Level (Technical) Syllabus

QUICK START BASIC LINUX AND G++ COMMANDS. Prepared By: Pn. Azura Bt Ishak

Connect the Host to attach to Fast Ethernet switch port Fa0/2. Configure the host as shown in the topology diagram above.

Chapter 11 Phase 5: Covering Tracks and Hiding

Transcription:

ICS 351: Today's plan routing protocols linux commands

Routing protocols: overview maintaining the routing tables is very labor-intensive if done manually so routing tables are maintained automatically: each router knows what networks it is connected to and communicates that to other routers a routing protocol defines how routing information is communicated among routers popular routing protocols are OSPF, BGP, RIP with the information from the routing protocol, each router can build and maintain its routing tables

Routing protocols: properties routing is not a perfect process: sometimes the routing tables are inconsistent, because it takes time for a router to discover changes and it takes time to communicate the new information if a router doesn't have a route to a packet's destination, it will drop the packet, i.e., not forward it most of the time routing protocols maintain the routing tables correctly much faster than with manual updates

Router hardware and software big, expensive Cisco routers inexpensive Linux boxes with multiple network interfaces a Linux general-purpose computer can: use routing software to route packets just as the expensive Cisco router can but not as fast and perhaps not on the same media an expensive router should have hardware acceleration for looking up routes in a routing table, and forwarding packets from one interface to another the software to run the routing protocol might be very similar on a generic box and on an expensive specialized router

Command line the part of an operating system (or an application) that interfaces with a user is the user interface, sometimes called a shell most user interfaces are graphical: significant parts of the functionality are accessible through the mouse and windows many system functions use a simpler user interface, which is text based the user gets a prompt whenever the system is ready to handle new commands the user can type commands, which the system then executes the commands may print output on the screen or, less commonly, request input from the users

Unix/Linux shell on Unix systems, including Linux, commands are interpreted by an application program called the shell there are many possible Linux shells, but this class will use the default, which is bash (Bourne-Again SHell). Another notable shell is tcsh. some commands are built-in to the shell, but usually a command entered on the shell results in executing an application the typical shell command syntax is: command switch.. switch parameter.. parameter the most important command to remember is man, short for manual, which gives information about other commands e.g. man ls gives the manual "page" for the ls command

Useful Unix commands and concepts shells on Linux usually implement commands from the Unix family of operating systems ls lists files and directories (ls -a also lists files beginning with ".") pwd displays the name of the current directory, and cd changes the current directory mkdir name creates the directory name, and rmdir name removes it if it is empty rm name removes the file (permanently!) rm -i name asks first cp name1 name2 copies the file name1 to another file (or directory) name2 mv name1 name2 moves/renames the file name1 to another file (or directory) name2 in Unix, the root of the file system is "/", and "/" is also used as a separator at the end of directory names, e.g. /etc/hosts is the name of a file in the directory /etc (or /etc/) mount /dev/sdb1 /mnt/mydisk makes the file system on the device /dev/sdb1 accessible as /mnt/mydisk, assuming such a device is connected and such file system exists to safely remove the device, simply umount /mnt/mydisk

Unix/Linux file commands gedit file runs the gedit text editor on the file more file displays the contents of the file, one screenful at a time cat file does the same, without stopping the output of a command can be sent ("piped") to the input of another command, or directly to a file cat file > file2 is another way of copying file to file2 cat file >> file2 appends file to the end of file2 cat file tee file2 shows the contents of file and also writes them to file2 command x > file & tail -f file puts the output of the command into file, and also shows the growing contents of file the & at the end of the command puts its execution into the background, so the shell prompts again while the command is still running a command in the background can be brought to the foreground with fg Ctrl-Z (^Z) can be used to suspend a running foreground command, and bg will send it to the background Ctrl-C (^C) will normally kill a foreground command jobs will show the running background command, kill %3 will kill background command 3, and pkill abcd will kill command abcd

Special shell constructs a pipe is a sequence of commands separated by the output of the first command is the input to the second command the output of the (n-1)th command is the input to the nth command an input redirect < is usually only found on the first command in a pipe an output redirect > is usually only found for the last command in a pipe example: tr '\n' ' ' < file.html sed 's/<[^>]*>/ /g' > file.txt an & starts the previous command in the background, then executes the next command (if any) example: sleep 100 & jobs lists the commands that are running in the background fg puts a background command in the foreground Control-Z stops the currently executing command control-c kills the currently executing command part of a command in `backticks` is executed and replaced with its output more `grep l foo *` runs more on the file names printed by grep single quotes and double quotes are used for any parameter that contains spaces or other special chars the backslash \ is used as an escape the star * matches anything, e.g. ba* matches bar and baz

Unix/Linux networking commands telnet host port connects to the given port on the given host: if there is a telnet server on that port of the given host, then allows entering commands remotely (but very insecurely) ftp host opens a File Transfer Protocol session to the given host (assuming there is an FTP server running there) ftp supports simple commands to transfer files, including ls, cd, lcd, binary, ascii, get, mget, put, mput, quit both telnet and ftp transfer everything in the clear anyone with access to the network can see what is transferred modern systems use encrypted trahsfers, particularly based on the secure shell with the two commands ssh and scp ssh host or ssh -p port host scp file host:remote/path, or scp host:remote/path local/path, or scp -P port host:remote/path local/path ping host sends packets to a host that are likely to elicit replies, and prints any replies it gets traceroute host sends packets that are likely to be dropped enroute to a host, and prints the error messages

nc/netcat on one computer, or in one window, run: nc l 12345 on the other side, run: nc <IP address> 12345 now, anything typed in one (window, computer) appears in the other