Command Line Interface UNIX & DOS. Command Line Interface. Terminology. General Format. Part 3. You don't need a mouse or icons

Size: px
Start display at page:

Download "Command Line Interface UNIX & DOS. Command Line Interface. Terminology. General Format. Part 3. You don't need a mouse or icons"

Transcription

1 UNIX & DOS Command Line Interface Part 3 You don't need a mouse or icons Command Line Interface Command Line Interface Most computer enjoy the advantages of a Graphical User Interface (GUI) You interact with pictures and click (or touch) what you want to command But, you can perform all the same functions using a command line interface You type commands and the computer reacts Before the GUI, this is how people used computers 6/11/2018 Sacramento State - Cook - CSc 8 - Summer /11/2018 Sacramento State - Cook - CSc 8 - Summer General Format Terminology Each command starts with a name followed by zero or more arguments Using these, you have the same abilities that you do in Windows/Mac name argument-1 argument-2 The command line interface was created long before the GUI So, the terminology is not quite the same 6/11/2018 Sacramento State - Cook - CSc 8 - Summer /11/2018 Sacramento State - Cook - CSc 8 - Summer

2 Folders are Files Folders vs. Directories Folders are also called directories The two are typically used synonymously, but there are a few differences Folder used by the desktop metaphor they are the metaphor icons you click on Directory list of grouped files like a folder, but its not a metaphor 6/11/2018 Sacramento State - Cook - CSc 8 - Summer /11/2018 Sacramento State - Cook - CSc 8 - Summer Command Line Today It is not obsolete Computer scientists, cyber investigators, etc use it to access computers without all that graphical overhead You can control a computer with Telnet You don't have to be in the same location Basics of UNIX Feel the pow-wah of the dark side 6/11/2018 Sacramento State - Cook - CSc 8 - Summer Basics UNIX What is Linux UNIX was developed at AT&T s Bell Labs in 1969 Design goals: operating system for mainframes stable and powerful but not exactly easy to use GUI hadn t been invented yet By 1992, personal computers were as powerful as mainframes 20 years ago UNIX was ported to the PC with a nice GUI It also evolved into several competing versions 6/11/2018 Sacramento State - Cook - CSc 8 - Summer /11/2018 Sacramento State - Cook - CSc 8 - Summer

3 Basics UNIX There are versions of UNIX with a nice graphical user interface A good example is all the various versions of Linux However, all you need is a command line interface 6/11/2018 Sacramento State - Cook - CSc 8 - Summer ls Command ls Command This command will list all the files in the current directory It has arguments that control how the list will look Folder names end with a slash suffix Programs end with an asterisk suffix a.out* demo/ html/ mail/ test.c 6/11/2018 Sacramento State - Cook - CSc 8 - Summer /11/2018 Sacramento State - Cook - CSc 8 - Summer ll Command ll Command This command displays all the files in "list long" format It is shortcut notation for ls -l It Besides the filename, its size, access rights, etc are displayed > ll -rwx cookd othcsc 4650 Sep 10 17:44 a.out* drwx cookd othcsc 4096 Sep 5 17:49 demo/ drwxrwxrwx 10 cookd othcsc 4096 Sep 6 11:04 html/ drwxrwxrwx 2 cookd othcsc 4096 Jun 20 17:58 mail/ -rw cookd othcsc 74 Sep 10 17:44 test.c 6/11/2018 Sacramento State - Cook - CSc 8 - Summer /11/2018 Sacramento State - Cook - CSc 8 - Summer

4 cd Command cd Command To change your current folder, you will use the "change directory" command If you specify a folder name, you will move into it If you use.. (two dots), you will got to the parent folder > cd html Move into html folder > cd.. Return to parent folder 6/11/2018 Sacramento State - Cook - CSc 8 - Summer /11/2018 Sacramento State - Cook - CSc 8 - Summer mkdir Command mkdir Command This command will "make a directory" Great idea for organizing your data and backups a.out* html/ test.c > mkdir demo a.out* demo/ html/ test.c 6/11/2018 Sacramento State - Cook - CSc 8 - Summer /11/2018 Sacramento State - Cook - CSc 8 - Summer rmdir Command rmdir Command This command will "remove a directory" The directory must be empty for this to work Otherwise, you will receive an onscreen error a.out* demo/ html/ test.c > rmdir demo a.out* html/ test.c 6/11/2018 Sacramento State - Cook - CSc 8 - Summer /11/2018 Sacramento State - Cook - CSc 8 - Summer

5 rm Command rm Command If you want to delete a file, you can use the "remove" command It's good to cleanup your folders from time to time It can also delete multiple files using patterns a.out* html/ mail/ test.c > rm a.out html/ mail/ test.c 6/11/2018 Sacramento State - Cook - CSc 8 - Summer /11/2018 Sacramento State - Cook - CSc 8 - Summer mv Command mv Command - Moving The mv command is quite complex and accomplishes two different actions If it often used to "move" a file into a directory However, if the target field is a filename, it will copy html/ test.c programs/ > mv test.c programs html/ programs/ 6/11/2018 Sacramento State - Cook - CSc 8 - Summer /11/2018 Sacramento State - Cook - CSc 8 - Summer mv Command - Renaming nano html/ test.c programs/ > mv test.c backup.c html/ programs/ backup.c Nano is the UNIX text editor (well, the best one that is) It is very similar to Windows Notepad but can be used on a terminal You will use this to write your programs 6/11/2018 Sacramento State - Cook - CSc 8 - Summer /11/2018 Sacramento State - Cook - CSc 8 - Summer

6 nano Nano can create new file (use a new name) It can also open an existing file to edit Microsoft Command Line Interpreter nano filename Microsoft's command line family 6/11/2018 Sacramento State - Cook - CSc 8 - Summer Command Line Interpreter Command Line Interpreter The Microsoft Command Line Interpreter evolved from the original Disk Operating System (DOS) DOS ran PCs in the 80's and 90's and is the reason for Microsoft's success It can be accessed by running the program "CMD.EXE" Easy to find Icon is a black window that mimics the look of DOS 6/11/2018 Sacramento State - Cook - CSc 8 - Summer /11/2018 Sacramento State - Cook - CSc 8 - Summer Command Line Interpreter dir Command It is similar to UNIX since it evolved from a variation of UNIX called CP/M Far more intuitive than UNIX Some differences: Windows/DOS is not case sensitive Windows/DOS uses a backslash instead of a forward slash This command will list all the files in the current directory It has arguments that control how the list will look Unlike UNIX, it uses a different column to tell you what is a file and directory 6/11/2018 Sacramento State - Cook - CSc 8 - Summer /11/2018 Sacramento State - Cook - CSc 8 - Summer

7 dir Command cd Command Works exactly the same as UNIX to "change directory" 6/11/2018 Sacramento State - Cook - CSc 8 - Summer /11/2018 Sacramento State - Cook - CSc 8 - Summer cd Command md Command > cd html Move into html folder > cd.. Return to parent folder This command will "make a directory" The name is much shorter than UNIX, but consistent 6/11/2018 Sacramento State - Cook - CSc 8 - Summer /11/2018 Sacramento State - Cook - CSc 8 - Summer md Command rmdir Command > md backup 06/24/ :45 PM <DIR> backup This command will "remove a directory" The directory must be empty for this to work Yes, this is identical to UNIX 6/11/2018 Sacramento State - Cook - CSc 8 - Summer /11/2018 Sacramento State - Cook - CSc 8 - Summer

8 rmdir Command del Command > rmdir backup This command is used if you want to delete a file It is the same as the UNIX rm command However, it is not as potentially dangerous! 6/11/2018 Sacramento State - Cook - CSc 8 - Summer /11/2018 Sacramento State - Cook - CSc 8 - Summer del Command Before del Command After > del test.c 6/11/2018 Sacramento State - Cook - CSc 8 - Summer /11/2018 Sacramento State - Cook - CSc 8 - Summer move Command move Command Unlike UNIX, the move command only works with files It will not copy Much safer since the UNIX one can cause headaches > move test.c demo 6/11/2018 Sacramento State - Cook - CSc 8 - Summer /11/2018 Sacramento State - Cook - CSc 8 - Summer

9 copy Command copy Command Before The copy command will create a copy of a file It is very simple, and is much safer than the UNIX mv 6/11/2018 Sacramento State - Cook - CSc 8 - Summer /11/2018 Sacramento State - Cook - CSc 8 - Summer copy Command After > copy test.c backup.c 06/24/ :45 AM 3,126 backup.c Comparison Guide Trust me, you'll need it 6/11/2018 Sacramento State - Cook - CSc 8 - Summer Comparison Chart - Directory Comparison Chart - File Command UNIX CMD Path delimiter / \ List files ls dir Change directory cd cd Make directory mkdir md Remove directory rmdir rmdir Command UNIX CMD Delete/remove file rm del Move file mv move Copy file cp copy Rename mv rename Edit file nano none 6/11/2018 Sacramento State - Cook - CSc 8 - Summer /11/2018 Sacramento State - Cook - CSc 8 - Summer

10 Microsoft Powershell Feel da pow-wah! Microsoft Power Shell Powershell was added with Windows XP More advanced version of CMD Supports both UNIX and CMD commands 6/11/2018 Sacramento State - Cook - CSc 8 - Summer New features Supports advanced scripting (like Perl + VB) Data pipelining send one programs output into another Advanced administrator commands Looking at Your Network Some Useful Commands 6/11/2018 Sacramento State - Cook - CSc 8 - Summer Your Settings Your Settings The CMD tool "ipconfig" will display all network information about your computer Use "ipconfig /all" for detailed information Types of information you can get: your IP address default gateway computer that talks to the outside world for you subnet mask how your IP is interpreted 6/11/2018 Sacramento State - Cook - CSc 8 - Summer /11/2018 Sacramento State - Cook - CSc 8 - Summer

11 Your Settings Checking a Remote Server C:\Users\Devin>ipconfig Windows IP Configuration Wireless LAN adapter Wireless Network Connection 2: Media State : Media disconnected Connection-specific DNS Suffix. : Wireless LAN adapter Wireless Network Connection: Media State : Media disconnected Connection-specific DNS Suffix. : Ethernet adapter Local Area Connection: Connection-specific DNS Suffix. : csus.edu Link-local IPv6 Address..... : fe80::759d:74a6:e9e:5e97%10 IPv4 Address : Subnet Mask : Default Gateway : /11/2018 Sacramento State - Cook - CSc 8 - Summer A UNIX tool called nmap can be used to find all the ports, on a host, that has programs listening This tool can be used for both good and evil WARNING some states have laws against performing any unauthorized scans against network devices/hosts nmap has a stealth mode (-ss) which does not do a complete connection 6/11/2018 Sacramento State - Cook - CSc 8 - Summer Checking a Local Computer Another tool called netstat can find what servers are running on the local host On Windows or UNIX type netstat and it will show Active connections netstat with the a option will show the state of all sockets (servers). If you use the r option you can see the local host routing table. 6/11/2018 Sacramento State - Cook - CSc 8 - Summer IP Routing To trace the route packets take use "traceroute" (UNIX) or "tracert" (Windows) Great for checking how data moves over a network Note: packets take different routes at different times of the day and also take different routes if tracing in the opposite direction 6/11/2018 Sacramento State - Cook - CSc 8 - Summer IP Routing How it works host sends out packets with a hop count if the hop is 1, the router responds it is bigger than 1, it decrements the counter and sends it to the next router So, the tool sends a small packet with a hop count of 1 a total of 3 times and records the response times it then tries it with a top count of 2, 3, etc 6/11/2018 Sacramento State - Cook - CSc 8 - Summer C:\Documents and Settings>tracert Tracing route to [ ] over a maximum of 30 hops: 1 <1 ms <1 ms <1 ms ecsrtr.ecs.csus.edu [ ] 2 <1 ms <1 ms <1 ms pix1-in.csus.edu [ ] 3 1 ms 1 ms <1 ms sacstatertr-1-in.csus.edu [ ] 4 1 ms 1 ms 1 ms dc-sac-dc2--sac-csu-cmf.cenic.net [ ] 5 3 ms 3 ms 3 ms dc-oak-core1--sac-dc1-10g.cenic.net [ ] 6 5 ms 4 ms 4 ms dc-svl-core1--oak-core1-ge-1.cenic.net [ ] 7 4 ms 4 ms 4 ms dc-svl-peer1--svl-core1-10ge.cenic.net [ ] 8 4 ms 4 ms 4 ms te tr01-plalca01.transitrail.net [ ] 9 4 ms 4 ms 5 ms yahoo-peer.plalca01.transitrail.net [ ] 10 5 ms 5 ms 65 ms ae1-p151.msr2.sp1.yahoo.com [ ] 11 5 ms 5 ms 5 ms te-9-1.bas-a2.sp1.yahoo.com [ ] 12 5 ms 5 ms 5 ms f1. [ ] Trace complete. 6/11/2018 Sacramento State - Cook - CSc 8 - Summer

History. Terminology. Opening a Terminal. Introduction to the Unix command line GNOME

History. Terminology. Opening a Terminal. Introduction to the Unix command line GNOME Introduction to the Unix command line History Many contemporary computer operating systems, like Microsoft Windows and Mac OS X, offer primarily (but not exclusively) graphical user interfaces. The user

More information

CISC 220 fall 2011, set 1: Linux basics

CISC 220 fall 2011, set 1: Linux basics CISC 220: System-Level Programming instructor: Margaret Lamb e-mail: malamb@cs.queensu.ca office: Goodwin 554 office phone: 533-6059 (internal extension 36059) office hours: Tues/Wed/Thurs 2-3 (this week

More information

CS Fundamentals of Programming II Fall Very Basic UNIX

CS Fundamentals of Programming II Fall Very Basic UNIX CS 215 - Fundamentals of Programming II Fall 2012 - Very Basic UNIX This handout very briefly describes how to use Unix and how to use the Linux server and client machines in the CS (Project) Lab (KC-265)

More information

Unit 10. Linux Operating System

Unit 10. Linux Operating System 1 Unit 10 Linux Operating System 2 Linux Based on the Unix operating system Developed as an open-source ("free") alternative by Linux Torvalds and several others starting in 1991 Originally only for Intel

More information

Essential Linux Shell Commands

Essential Linux Shell Commands Essential Linux Shell Commands Special Characters Quoting and Escaping Change Directory Show Current Directory List Directory Contents Working with Files Working with Directories Special Characters There

More information

Unit 13. Linux Operating System Debugging Programs

Unit 13. Linux Operating System Debugging Programs 1 Unit 13 Linux Operating System Debugging Programs COMPILATION 2 3 Editors "Real" developers use editors designed for writing code No word processors!! You need a text editor to write your code Eclipse,

More information

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

An Introduction to Using the Command Line Interface (CLI) to Work with Files and Directories An Introduction to Using the Command Line Interface (CLI) to Work with Files and Directories Mac OS by bertram lyons senior consultant avpreserve AVPreserve Media Archiving & Data Management Consultants

More information

CS 215 Fundamentals of Programming II Spring 2019 Very Basic UNIX

CS 215 Fundamentals of Programming II Spring 2019 Very Basic UNIX CS 215 Fundamentals of Programming II Spring 2019 Very Basic UNIX This handout very briefly describes how to use Unix and how to use the Linux server and client machines in the EECS labs that dual boot

More information

CMSC 104 Lecture 2 by S Lupoli adapted by C Grasso

CMSC 104 Lecture 2 by S Lupoli adapted by C Grasso CMSC 104 Lecture 2 by S Lupoli adapted by C Grasso A layer of software that runs between the hardware and the user. Controls how the CPU, memory and I/O devices work together to execute programs Keeps

More information

Mills HPC Tutorial Series. Linux Basics I

Mills HPC Tutorial Series. Linux Basics I Mills HPC Tutorial Series Linux Basics I Objectives Command Line Window Anatomy Command Structure Command Examples Help Files and Directories Permissions Wildcards and Home (~) Redirection and Pipe Create

More information

AMS 200: Working on Linux/Unix Machines

AMS 200: Working on Linux/Unix Machines AMS 200, Oct 20, 2014 AMS 200: Working on Linux/Unix Machines Profs. Nic Brummell (brummell@soe.ucsc.edu) & Dongwook Lee (dlee79@ucsc.edu) Department of Applied Mathematics and Statistics University of

More information

Introduction: What is Unix?

Introduction: What is Unix? Introduction Introduction: What is Unix? An operating system Developed at AT&T Bell Labs in the 1960 s Command Line Interpreter GUIs (Window systems) are now available Introduction: Unix vs. Linux Unix

More information

Processes. Shell Commands. a Command Line Interface accepts typed (textual) inputs and provides textual outputs. Synonyms:

Processes. Shell Commands. a Command Line Interface accepts typed (textual) inputs and provides textual outputs. Synonyms: Processes The Operating System, Shells, and Python Shell Commands a Command Line Interface accepts typed (textual) inputs and provides textual outputs. Synonyms: - Command prompt - Shell - CLI Shell commands

More information

CSC 112 Lab 1: Introduction to Unix and C++ Fall 2009

CSC 112 Lab 1: Introduction to Unix and C++ Fall 2009 CSC 112 Lab 1: Introduction to Unix and C++ Fall 2009 Due: Friday, September 4 th, 9:00am Introduction The operating system of a computer is the coordinator of all of the computer s activities, including

More information

CS CS Tutorial 2 2 Winter 2018

CS CS Tutorial 2 2 Winter 2018 CS CS 230 - Tutorial 2 2 Winter 2018 Sections 1. Unix Basics and connecting to CS environment 2. MIPS Introduction & CS230 Interface 3. Connecting Remotely If you haven t set up a CS environment password,

More information

Tiny Instruction Manual for the Undergraduate Mathematics Unix Laboratory

Tiny Instruction Manual for the Undergraduate Mathematics Unix Laboratory Tiny Instruction Manual for the Undergraduate Mathematics Unix Laboratory 1 Logging In When you sit down at a terminal and jiggle the mouse to turn off the screen saver, you will be confronted with a window

More information

Introduction to UNIX I: Command Line 1 / 21

Introduction to UNIX I: Command Line 1 / 21 Introduction to UNIX I: Command Line 1 / 21 UNIX Command line The UNIX Shell: command line interface Navigating Directories and Files Running applications Reminder about helpful tutorial: http://korflab.ucdavis.edu/unix_and_perl/current.html

More information

Introduction to Unix - Lab Exercise 0

Introduction to Unix - Lab Exercise 0 Introduction to Unix - Lab Exercise 0 Along with this document you should also receive a printout entitled First Year Survival Guide which is a (very) basic introduction to Unix and your life in the CSE

More information

Files

Files http://www.cs.fsu.edu/~langley/cop3353-2013-1/reveal.js-2013-02-11/02.html?print-pdf 02/11/2013 10:55 AM Files A normal "flat" file is a collection of information. It's usually stored somewhere reasonably

More information

CSE 391 Lecture 1. introduction to Linux/Unix environment

CSE 391 Lecture 1. introduction to Linux/Unix environment CSE 391 Lecture 1 introduction to Linux/Unix environment slides created by Marty Stepp, modified by Jessica Miller & Ruth Anderson http://www.cs.washington.edu/391/ 1 2 Lecture summary Course introduction

More information

CMSC 201 Spring 2018 Lab 01 Hello World

CMSC 201 Spring 2018 Lab 01 Hello World CMSC 201 Spring 2018 Lab 01 Hello World Assignment: Lab 01 Hello World Due Date: Sunday, February 4th by 8:59:59 PM Value: 10 points At UMBC, the GL system is designed to grant students the privileges

More information

Introduction to Linux

Introduction to Linux Introduction to Linux M Tech CS I 2015-16 Arijit Bishnu Debapriyo Majumdar Sourav Sengupta Mandar Mitra Login, Logout, Change password $ ssh, ssh X secure shell $ ssh www.isical.ac.in $ ssh 192.168 $ logout,

More information

Linux File System and Basic Commands

Linux File System and Basic Commands Linux File System and Basic Commands 0.1 Files, directories, and pwd The GNU/Linux operating system is much different from your typical Microsoft Windows PC, and probably looks different from Apple OS

More information

Operating Systems and Using Linux. Topics What is an Operating System? Linux Overview Frequently Used Linux Commands

Operating Systems and Using Linux. Topics What is an Operating System? Linux Overview Frequently Used Linux Commands Operating Systems and Using Linux Topics What is an Operating System? Linux Overview Frequently Used Linux Commands 1 What is an Operating System? A computer program that: Controls how the CPU, memory

More information

Linux Essentials. Programming and Data Structures Lab M Tech CS First Year, First Semester

Linux Essentials. Programming and Data Structures Lab M Tech CS First Year, First Semester Linux Essentials Programming and Data Structures Lab M Tech CS First Year, First Semester Adapted from PDS Lab 2014 and 2015 Login, Logout, Password $ ssh mtc16xx@192.168.---.--- $ ssh X mtc16xx@192.168.---.---

More information

Lecture 3. Unix. Question? b. The world s best restaurant. c. Being in the top three happiest countries in the world.

Lecture 3. Unix. Question? b. The world s best restaurant. c. Being in the top three happiest countries in the world. Lecture 3 Unix Question? Denmark is famous for? a. LEGO. b. The world s best restaurant. c. Being in the top three happiest countries in the world. d. Having the highest taxes in Europe (57%). e. All of

More information

GET TO KNOW YOUR COMMAND PROMPT

GET TO KNOW YOUR COMMAND PROMPT PC TERMINAL COMMANDS GET TO KNOW YOUR COMMAND PROMPT A command line interface (or the command line) is a text-only way of browsing and interacting with your computer. In Windows, the command line is called

More information

Basic UNIX commands. HORT Lab 2 Instructor: Kranthi Varala

Basic UNIX commands. HORT Lab 2 Instructor: Kranthi Varala Basic UNIX commands HORT 59000 Lab 2 Instructor: Kranthi Varala Client/Server architecture User1 User2 User3 Server (UNIX/ Web/ Database etc..) User4 High Performance Compute (HPC) cluster User1 Compute

More information

CS 300. Data Structures

CS 300. Data Structures CS 300 Data Structures Start VirtualBox Search or Windows Run C:\CS300 Launches CS 300/360 Virtual Machine (Eventually) Logon with Zeus password Syllabus http://zeus.cs.pacificu.edu/chadd/cs300f18/syllabus.html

More information

Chapter-3. Introduction to Unix: Fundamental Commands

Chapter-3. Introduction to Unix: Fundamental Commands Chapter-3 Introduction to Unix: Fundamental Commands What You Will Learn The fundamental commands of the Unix operating system. Everything told for Unix here is applicable to the Linux operating system

More information

CSE 390a Lecture 1. introduction to Linux/Unix environment

CSE 390a Lecture 1. introduction to Linux/Unix environment 1 CSE 390a Lecture 1 introduction to Linux/Unix environment slides created by Marty Stepp, modified by Jessica Miller & Ruth Anderson http://www.cs.washington.edu/390a/ 2 Lecture summary Course introduction

More information

CS 2400 Laboratory Assignment #1: Exercises in Compilation and the UNIX Programming Environment (100 pts.)

CS 2400 Laboratory Assignment #1: Exercises in Compilation and the UNIX Programming Environment (100 pts.) 1 Introduction 1 CS 2400 Laboratory Assignment #1: Exercises in Compilation and the UNIX Programming Environment (100 pts.) This laboratory is intended to give you some brief experience using the editing/compiling/file

More information

Introduction to the Linux Command Line

Introduction to the Linux Command Line Introduction to the Linux Command Line May, 2015 How to Connect (securely) ssh sftp scp Basic Unix or Linux Commands Files & directories Environment variables Not necessarily in this order.? Getting Connected

More information

CENG 334 Computer Networks. Laboratory I Linux Tutorial

CENG 334 Computer Networks. Laboratory I Linux Tutorial CENG 334 Computer Networks Laboratory I Linux Tutorial Contents 1. Logging In and Starting Session 2. Using Commands 1. Basic Commands 2. Working With Files and Directories 3. Permission Bits 3. Introduction

More information

User Guide Version 2.0

User Guide Version 2.0 User Guide Version 2.0 Page 2 of 8 Summary Contents 1 INTRODUCTION... 3 2 SECURESHELL (SSH)... 4 2.1 ENABLING SSH... 4 2.2 DISABLING SSH... 4 2.2.1 Change Password... 4 2.2.2 Secure Shell Connection Information...

More information

Lesson 12 Lab Key Lab Exercises

Lesson 12 Lab Key Lab Exercises Lab 1 Doing a Ping Test Lesson 12 Lab Key Lab Exercises The purpose of this lab is to familiarize the student with running a ping test. This lab will also help the student correctly interpret the results

More information

STA 303 / 1002 Using SAS on CQUEST

STA 303 / 1002 Using SAS on CQUEST STA 303 / 1002 Using SAS on CQUEST A review of the nuts and bolts A.L. Gibbs January 2012 Some Basics of CQUEST If you don t already have a CQUEST account, go to www.cquest.utoronto.ca and request one.

More information

CSCI 2132 Software Development. Lecture 4: Files and Directories

CSCI 2132 Software Development. Lecture 4: Files and Directories CSCI 2132 Software Development Lecture 4: Files and Directories Instructor: Vlado Keselj Faculty of Computer Science Dalhousie University 12-Sep-2018 (4) CSCI 2132 1 Previous Lecture Some hardware concepts

More information

CSE 391 Lecture 1. introduction to Linux/Unix environment

CSE 391 Lecture 1. introduction to Linux/Unix environment CSE 391 Lecture 1 introduction to Linux/Unix environment slides created by Marty Stepp, modified by Jessica Miller & Ruth Anderson http://www.cs.washington.edu/391/ 1 2 Lecture summary Course introduction

More information

Introduction to Linux Environment. Yun-Wen Chen

Introduction to Linux Environment. Yun-Wen Chen Introduction to Linux Environment Yun-Wen Chen 1 The Text (Command) Mode in Linux Environment 2 The Main Operating Systems We May Meet 1. Windows 2. Mac 3. Linux (Unix) 3 Windows Command Mode and DOS Type

More information

Netcat Scanning to Backdoors

Netcat Scanning to Backdoors Netcat Scanning to Backdoors Security & Privacy on the Internet (03-60-467) Fall 2009 Submitted to Dr. A.K. Aggarwal Submitted By Jeffrey Kurcz School of Computer Science University of Windsor CONTENTS

More information

You should see something like this, called the prompt :

You should see something like this, called the prompt : CSE 1030 Lab 1 Basic Use of the Command Line PLEASE NOTE this lab will not be graded and does not count towards your final grade. However, all of these techniques are considered testable in a labtest.

More information

Shell Programming Overview

Shell Programming Overview Overview Shell programming is a way of taking several command line instructions that you would use in a Unix command prompt and incorporating them into one program. There are many versions of Unix. Some

More information

5/8/2012. Creating and Changing Directories Chapter 7

5/8/2012. Creating and Changing Directories Chapter 7 Creating and Changing Directories Chapter 7 Types of files File systems concepts Using directories to create order. Managing files in directories. Using pathnames to manage files in directories. Managing

More information

Linux Systems Administration Getting Started with Linux

Linux Systems Administration Getting Started with Linux Linux Systems Administration Getting Started with Linux Network Startup Resource Center www.nsrc.org These materials are licensed under the Creative Commons Attribution-NonCommercial 4.0 International

More information

Pivotal Capgemini Just Do It Training HDFS-NFS Gateway Labs

Pivotal Capgemini Just Do It Training HDFS-NFS Gateway Labs Pivotal Capgemini Just Do It Training HDFS-NFS Gateway Labs In this lab exercise you will have an opportunity to explore HDFS as well as become familiar with using the HDFS- NFS Bridge. First we will go

More information

To see how ARP (Address Resolution Protocol) works. ARP is an essential glue protocol that is used to join Ethernet and IP.

To see how ARP (Address Resolution Protocol) works. ARP is an essential glue protocol that is used to join Ethernet and IP. Lab Exercise ARP Objective To see how ARP (Address Resolution Protocol) works. ARP is an essential glue protocol that is used to join Ethernet and IP. Requirements Wireshark: This lab uses the Wireshark

More information

Introduction to Linux Spring 2014, Section 02, Lecture 3 Jason Tang

Introduction to Linux Spring 2014, Section 02, Lecture 3 Jason Tang Introduction to Linux Spring 2014, Section 02, Lecture 3 Jason Tang Topics What is an Operating System Overview of Linux Linux commands Shell Submit system What is an Operating System? Special type of

More information

Helsinki 19 Jan Practical course in genome bioinformatics DAY 0

Helsinki 19 Jan Practical course in genome bioinformatics DAY 0 Helsinki 19 Jan 2017 529028 Practical course in genome bioinformatics DAY 0 This document can be downloaded at: http://ekhidna.biocenter.helsinki.fi/downloads/teaching/spring2017/exercises_day0.pdf The

More information

CENG393 Computer Networks Labwork 1

CENG393 Computer Networks Labwork 1 CENG393 Computer Networks Labwork 1 Linux is the common name given to a large family of operating systems. All Linux-based operating systems are essentially a large set of computer software that are bound

More information

CSC116: Introduction to Computing - Java

CSC116: Introduction to Computing - Java CSC116: Introduction to Computing - Java Course Information Introductions Website Syllabus Computers First Java Program Text Editor Helpful Commands Java Download Intro to CSC116 Instructors Course Instructor:

More information

Week 2 Lecture 3. Unix

Week 2 Lecture 3. Unix Lecture 3 Unix Terminal and Shell 2 Terminal Prompt Command Argument Result 3 Shell Intro A system program that allows a user to execute: shell functions (e.g., ls -la) other programs (e.g., eclipse) shell

More information

Unix File System. Learning command-line navigation of the file system is essential for efficient system usage

Unix File System. Learning command-line navigation of the file system is essential for efficient system usage ULI101 Week 02 Week Overview Unix file system File types and file naming Basic file system commands: pwd,cd,ls,mkdir,rmdir,mv,cp,rm man pages Text editing Common file utilities: cat,more,less,touch,file,find

More information

CSE115 Lab exercises for week 1 of recitations Spring 2011

CSE115 Lab exercises for week 1 of recitations Spring 2011 Introduction In this first lab you will be introduced to the computing environment in the Baldy 21 lab. If you are familiar with Unix or Linux you may know how to do some or all of the following tasks.

More information

Scripting Languages Course 1. Diana Trandabăț

Scripting Languages Course 1. Diana Trandabăț Scripting Languages Course 1 Diana Trandabăț Master in Computational Linguistics - 1 st year 2017-2018 Today s lecture Introduction to scripting languages What is a script? What is a scripting language

More information

Introduction to Unix and Linux. Workshop 1: Directories and Files

Introduction to Unix and Linux. Workshop 1: Directories and Files Introduction to Unix and Linux Workshop 1: Directories and Files Genomics Core Lab TEXAS A&M UNIVERSITY CORPUS CHRISTI Anvesh Paidipala, Evan Krell, Kelly Pennoyer, Chris Bird Genomics Core Lab Informatics

More information

Tutorial 1: Unix Basics

Tutorial 1: Unix Basics Tutorial 1: Unix Basics To log in to your ece account, enter your ece username and password in the space provided in the login screen. Note that when you type your password, nothing will show up in the

More information

CSE 303 Lecture 2. Introduction to bash shell. read Linux Pocket Guide pp , 58-59, 60, 65-70, 71-72, 77-80

CSE 303 Lecture 2. Introduction to bash shell. read Linux Pocket Guide pp , 58-59, 60, 65-70, 71-72, 77-80 CSE 303 Lecture 2 Introduction to bash shell read Linux Pocket Guide pp. 37-46, 58-59, 60, 65-70, 71-72, 77-80 slides created by Marty Stepp http://www.cs.washington.edu/303/ 1 Unix file system structure

More information

CSC111 Computer Science II

CSC111 Computer Science II CSC111 Computer Science II Lab 1 Getting to know Linux Introduction The purpose of this lab is to introduce you to the command line interface in Linux. Getting started In our labs If you are in one of

More information

Refresher workshop in programming for polytechnic graduates General Java Program Compilation Guide

Refresher workshop in programming for polytechnic graduates General Java Program Compilation Guide Refresher workshop in programming for polytechnic graduates General Java Program Compilation Guide Overview Welcome to this refresher workshop! This document will serve as a self-guided explanation to

More information

Introduction to Cygwin Operating Environment

Introduction to Cygwin Operating Environment Introduction to Cygwin Operating Environment ICT 106 Fundamentals of Computer Systems Eric Li ICT106_Pract_week 1 1 What s Cygwin? Emulates Unix/Linux environment on a Windows Operating System; A collection

More information

Week Overview. Unix file system File types and file naming Basic file system commands: pwd,cd,ls,mkdir,rmdir,mv,cp,rm man pages

Week Overview. Unix file system File types and file naming Basic file system commands: pwd,cd,ls,mkdir,rmdir,mv,cp,rm man pages ULI101 Week 02 Week Overview Unix file system File types and file naming Basic file system commands: pwd,cd,ls,mkdir,rmdir,mv,cp,rm man pages Text editing Common file utilities: cat,more,less,touch,file,find

More information

Programming Studio #1 ECE 190

Programming Studio #1 ECE 190 Programming Studio #1 ECE 190 Programming Studio #1 Announcements In Studio Assignment Introduction to Linux Command-Line Operations Recitation Floating Point Representation Binary & Hexadecimal 2 s Complement

More information

Secure Shell Commands

Secure Shell Commands This module describes the Cisco IOS XR software commands used to configure Secure Shell (SSH). For detailed information about SSH concepts, configuration tasks, and examples, see the Implementing Secure

More information

EE516: Embedded Software Project 1. Setting Up Environment for Projects

EE516: Embedded Software Project 1. Setting Up Environment for Projects EE516: Embedded Software Project 1. Setting Up Environment for Projects By Dong Jae Shin 2015. 09. 01. Contents Introduction to Projects of EE516 Tasks Setting Up Environment Virtual Machine Environment

More information

Introduction to Linux

Introduction to Linux Introduction to Linux The command-line interface A command-line interface (CLI) is a type of interface, that is, a way to interact with a computer. Window systems, punched cards or a bunch of dials, buttons

More information

CSC116: Introduction to Computing - Java

CSC116: Introduction to Computing - Java CSC116: Introduction to Computing - Java Intro to CSC116 Course Information Introductions Website Syllabus Computers First Java Program Text Editor Helpful Commands Java Download Course Instructor: Instructors

More information

CS 261 Recitation 1 Compiling C on UNIX

CS 261 Recitation 1 Compiling C on UNIX Oregon State University School of Electrical Engineering and Computer Science CS 261 Recitation 1 Compiling C on UNIX Winter 2017 Outline Secure Shell Basic UNIX commands Editing text The GNU Compiler

More information

Lesson 3 Transcript: Part 2 of 2 Tools & Scripting

Lesson 3 Transcript: Part 2 of 2 Tools & Scripting Lesson 3 Transcript: Part 2 of 2 Tools & Scripting Slide 1: Cover Welcome to lesson 3 of the DB2 on Campus Lecture Series. Today we are going to talk about tools and scripting. And this is part 2 of 2

More information

ENCM 339 Fall 2017: Editing and Running Programs in the Lab

ENCM 339 Fall 2017: Editing and Running Programs in the Lab page 1 of 8 ENCM 339 Fall 2017: Editing and Running Programs in the Lab Steve Norman Department of Electrical & Computer Engineering University of Calgary September 2017 Introduction This document is a

More information

Chapter 1 An Introduction to C++, Unix, SSH and Komodo Edit

Chapter 1 An Introduction to C++, Unix, SSH and Komodo Edit Chapter 1 An Introduction to C++, Unix, SSH and Komodo Edit Contents 1 An Introduction to C++, Unix, SSH and Komodo Edit 1.1 Introduction 1.2 The C++ Language 1.2.1 A Brief Introduction 1.2.1.1 Recommended

More information

Introduction to UNIX command-line

Introduction to UNIX command-line Introduction to UNIX command-line Boyce Thompson Institute March 17, 2015 Lukas Mueller & Noe Fernandez Class Content Terminal file system navigation Wildcards, shortcuts and special characters File permissions

More information

Examples: Directory pathname: File pathname: /home/username/ics124/assignments/ /home/username/ops224/assignments/assn1.txt

Examples: Directory pathname: File pathname: /home/username/ics124/assignments/ /home/username/ops224/assignments/assn1.txt ULI101 Week 03 Week Overview Absolute and relative pathnames File name expansion Shell basics Command execution in detail Recalling and editing previous commands Quoting Pathnames A pathname is a list

More information

Introduction to Linux Workshop 1

Introduction to Linux Workshop 1 Introduction to Linux Workshop 1 The George Washington University SEAS Computing Facility Created by Jason Hurlburt, Hadi Mohammadi, Marco Suarez hurlburj@gwu.edu Logging In The lab computers will authenticate

More information

The flow of transferring the machining programs of the server PC and starting an automatic operation is as below.

The flow of transferring the machining programs of the server PC and starting an automatic operation is as below. CONTENTS 1 OUTLINE... 1 2 OVERALL FLOW... 1 3 NETWORK CONNECTION... 1 4 SETTING EXAMPLE... 1 5 SET SERVER PC... 2 5.1 Windows 7... 2 5.1.1 Install IIS... 2 5.1.2 Set IIS... 4 5.1.3 Set firewall... 9 5.1.4

More information

Warmup. A programmer s wife tells him, Would you mind going to the store and picking up a loaf of bread? Also, if they have eggs, get a dozen.

Warmup. A programmer s wife tells him, Would you mind going to the store and picking up a loaf of bread? Also, if they have eggs, get a dozen. Warmup A programmer s wife tells him, Would you mind going to the store and picking up a loaf of bread? Also, if they have eggs, get a dozen. The programmer returns with 12 loaves of bread. Section 2:

More information

Session 1: Accessing MUGrid and Command Line Basics

Session 1: Accessing MUGrid and Command Line Basics Session 1: Accessing MUGrid and Command Line Basics Craig A. Struble, Ph.D. July 14, 2010 1 Introduction The Marquette University Grid (MUGrid) is a collection of dedicated and opportunistic resources

More information

Welcome. IT in AOS. Michael Havas Dept. of Atmospheric and Oceanic Sciences McGill University. September 21, 2012

Welcome. IT in AOS. Michael Havas Dept. of Atmospheric and Oceanic Sciences McGill University. September 21, 2012 Welcome IT in AOS Michael Havas Dept. of Atmospheric and Oceanic Sciences McGill University September 21, 2012 Outline 1 Introduction to AOS IT Services 2 Introduction to Linux Benefits of Linux What Exactly

More information

Physics REU Unix Tutorial

Physics REU Unix Tutorial Physics REU Unix Tutorial What is unix? Unix is an operating system. In simple terms, its the set of programs that makes a computer work. It can be broken down into three parts. (1) kernel: The component

More information

15-122: Principles of Imperative Computation

15-122: Principles of Imperative Computation 15-122: Principles of Imperative Computation Lab 0 Navigating your account in Linux Tom Cortina, Rob Simmons Unlike typical graphical interfaces for operating systems, here you are entering commands directly

More information

EECS Software Tools. Lab 2 Tutorial: Introduction to UNIX/Linux. Tilemachos Pechlivanoglou

EECS Software Tools. Lab 2 Tutorial: Introduction to UNIX/Linux. Tilemachos Pechlivanoglou EECS 2031 - Software Tools Lab 2 Tutorial: Introduction to UNIX/Linux Tilemachos Pechlivanoglou (tipech@eecs.yorku.ca) Sep 22 & 25, 2017 Material marked with will be in your exams Sep 22 & 25, 2017 Introduction

More information

Username: Lab Section (Circle One): 9:30 12:30 2:00 3:30

Username: Lab Section (Circle One): 9:30 12:30 2:00 3:30 Name: Email Username: Lab Section (Circle One): 9:30 12:30 2:00 3:30 CSC 101: Lab #12: Networking [based largely on work by William Turkett] Lab due date: 12 noon, Friday, Dec 2 Purpose: The purpose of

More information

Introduction to Linux. Fundamentals of Computer Science

Introduction to Linux. Fundamentals of Computer Science Introduction to Linux Fundamentals of Computer Science Outline Operating Systems Linux History Linux Architecture Logging in to Linux Command Format Linux Filesystem Directory and File Commands Wildcard

More information

CS356 Lab NIL (Lam) In this lab you will learn: Cisco 2600 Router Configuration Static Routing PartB 20 min Access Control Lists PartC 30 min Explore!

CS356 Lab NIL (Lam) In this lab you will learn: Cisco 2600 Router Configuration Static Routing PartB 20 min Access Control Lists PartC 30 min Explore! CS356 Lab NIL (Lam) In this lab you will learn: PartA Time: 2 hrs 40 min Cisco 2600 Router Configuration Static Routing PartB 20 min Access Control Lists PartC 30 min Explore! Components used: 2 computers

More information

Part I. Introduction to Linux

Part I. Introduction to Linux Part I Introduction to Linux 7 Chapter 1 Linux operating system Goal-of-the-Day Familiarisation with basic Linux commands and creation of data plots. 1.1 What is Linux? All astronomical data processing

More information

The Directory Structure

The Directory Structure The Directory Structure All the files are grouped together in the directory structure. The file-system is arranged in a hierarchical structure, like an inverted tree. The top of the hierarchy is traditionally

More information

CS246 Spring14 Programming Paradigm Notes on Linux

CS246 Spring14 Programming Paradigm Notes on Linux 1 Unix History 1965: Researchers from Bell Labs and other organizations begin work on Multics, a state-of-the-art interactive, multi-user operating system. 1969: Bell Labs researchers, losing hope for

More information

Programming Studio #1 ECE 190

Programming Studio #1 ECE 190 Programming Studio #1 ECE 190 Programming Studio #1 Announcements Recitation Binary representation, hexadecimal notation floating point representation, 2 s complement In Studio Assignment Introduction

More information

Getting your department account

Getting your department account 02/11/2013 11:35 AM Getting your department account The instructions are at Creating a CS account 02/11/2013 11:36 AM Getting help Vijay Adusumalli will be in the CS majors lab in the basement of the Love

More information

UNIX Tutorial Two

UNIX Tutorial Two 2.1 Copying Files cp (copy) UNIX Tutorial Two cp file1 file2 is the command which makes a copy of file1 in the current working directory and calls it file2 What we are going to do now, is to take a file

More information

Chapter 4. Unix Tutorial. Unix Shell

Chapter 4. Unix Tutorial. Unix Shell Chapter 4 Unix Tutorial Users and applications interact with hardware through an operating system (OS). Unix is a very basic operating system in that it has just the essentials. Many operating systems,

More information

CSCI 1100L: Topics in Computing Lab Lab 3: Windows Command Prompt

CSCI 1100L: Topics in Computing Lab Lab 3: Windows Command Prompt CSCI 1100L: Topics in Computing Lab Lab 3: Windows Command Prompt Purpose: So far in Lab, we ve played around and learned more about Windows 10 and the WIMP (Windows- Icons, Menus, Pointers) interface.

More information

Unix Tutorial. Beginner. CS Help Desk: Marc Jarvis (in spirit), Monica Ung, Corey Antoniuk 2015

Unix Tutorial. Beginner. CS Help Desk: Marc Jarvis (in spirit), Monica Ung, Corey Antoniuk 2015 Unix Tutorial Beginner CS Help Desk: Marc Jarvis (in spirit), Monica Ung, Corey Antoniuk 2015 Helpful info SOCS wiki cs.mcgill.ca/docs Help desk - McConnell 209N help@cs.mcgill.ca CSUS help desk - 3rd

More information

[301] The Terminal. Tyler Caraza-Harter

[301] The Terminal. Tyler Caraza-Harter [301] The Terminal Tyler Caraza-Harter Today's Topics Terminal Emulators and Shells Terminal history Shells Running programs from a shell Navigation Running Programs and Commands Demos History: the Original

More information

idirect Technical Note 1. INTRODUCTION 2. DIFFERENCES BETWEEN INFINITI AND NETMODEM II+ SERIES

idirect Technical Note 1. INTRODUCTION 2. DIFFERENCES BETWEEN INFINITI AND NETMODEM II+ SERIES idirect Technical Note Subject: Recovering infiniti Remotes Date: March 10, 2006 Applies To: Version 6.0.1 and Later 1. INTRODUCTION This technical note contains information and procedures pertaining to:

More information

Lecture 01 - Working with Linux Servers and Git

Lecture 01 - Working with Linux Servers and Git Jan. 9, 2018 Working with Linux Servers: SSH SSH (named for Secure SHell) is a protocol commonly used for remote login. You can use it from a command line interface with the following syntax ssh username@server_url

More information

DATA 301 Introduction to Data Analytics Command Line. Dr. Ramon Lawrence University of British Columbia Okanagan

DATA 301 Introduction to Data Analytics Command Line. Dr. Ramon Lawrence University of British Columbia Okanagan DATA 301 Introduction to Data Analytics Command Line Dr. Ramon Lawrence University of British Columbia Okanagan ramon.lawrence@ubc.ca Why learn the Command Line? The command line is the text interface

More information

Why learn the Command Line? The command line is the text interface to the computer. DATA 301 Introduction to Data Analytics Command Line

Why learn the Command Line? The command line is the text interface to the computer. DATA 301 Introduction to Data Analytics Command Line DATA 301 Introduction to Data Analytics Command Line Why learn the Command Line? The command line is the text interface to the computer. DATA 301: Data Analytics (2) Understanding the command line allows

More information

Lecture 1. A. Sahu and S. V. Rao. Indian Institute of Technology Guwahati

Lecture 1. A. Sahu and S. V. Rao. Indian Institute of Technology Guwahati Lecture 1 Introduction to Computing A. Sahu and S. V. Rao Dept of Comp. Sc. & Engg. Indian Institute of Technology Guwahati 1 Outline Computer System Problem Solving and Flow Chart Linux Command ls, mkdir,

More information

CMSC 201 Spring 2017 Lab 01 Hello World

CMSC 201 Spring 2017 Lab 01 Hello World CMSC 201 Spring 2017 Lab 01 Hello World Assignment: Lab 01 Hello World Due Date: Sunday, February 5th by 8:59:59 PM Value: 10 points At UMBC, our General Lab (GL) system is designed to grant students the

More information