Notes Assignment #1 is due next Friday by 11:59 pm via e-mail Test #1 will be held Thursday February 18 at the start of class (one period long) Format:

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

1 Introduction to UNIX Ke Liu
Agenda The Linux File System (chapter 4 in text) Directory Structures / Navigation Terminology / File Naming Rules Relative vs Absolute pathnames mkdir,
FILE TRANSFER PROTOCOL Short for File Transfer Protocol, the protocol for exchanging files over the Internet. FTP works in the same way as HTTP for transferring.
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.
Using Pine to send your ICS111 homework First Log in into UNIX using SSH either from home (If you have previously installed SSH or from the Lab. Once in.
Exploring the UNIX File System and File Security
Linux+ Guide to Linux Certification, Second Edition
Guide To UNIX Using Linux Third Edition
1 Some basic Unix commands u Understand the concept of loggin into and out of a Unix shell u Interact with the system in a basic way through keyboard and.
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.
L INUX C OMMAND L INE I NTERFACE G UNAANBAN.G
Learning basic Unix command IT 325 operating system.
Agenda What is Computer Programming? The Programming Process
"Two of the most famous products of Berkeley are LSD and Unix. I don't think that this is a coincidence.” Anonymous.
COMP1070/2002/lec4/H.Melikian COMP1070 Lecture #5  Files and directories in UNIX  Various types of files  File attributes  Notion of pathname  Commands.
Guide To UNIX Using Linux Fourth Edition
1 THE UNIX FILE SYSTEM By Chokechai Chuensukanant ID COSC 513 Operating System.
Help session: Unix basics Keith 9/9/2011. Login in Unix lab  User name: ug0xx Password: ece321 (initial)  The password will not be displayed on the.
The file structure and related utilities CS240 Computer Science II.
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”
Lesson 7-Creating and Changing Directories. Overview Using directories to create order. Managing files in directories. Using pathnames to manage files.
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.
CHAPTER 1 UNIX FOR NONPROGRAMMERS By U ğ ur Halıcı.
Working with Files Chapter 5. Display a Calendar Display a calendar for a specific month – cal Display a calendar for a specific year – cal 2000.
1 Lecture 2 Working with Files and Directories COP 3344 Introduction to UNIX.
Agenda User Profile File (.profile) –Keyword Shell Variables Linux (Unix) filters –Purpose –Commands: grep, sort, awk cut, tr, wc, spell.
Unix Basics Chapter 4.
Agenda Chapter 1: Linux (Unix) Features Commands (Chapters 2 & 3) Command Structure / Command line editing man, passwd, cal, date, whereis, which Working.
Linux+ Guide to Linux Certification, Second Edition
The UNIX development environment CS 400/600 – Data Structures.
ICT Foundation 1 Copyright © 2010, IT Gatekeeper Project – Ohiwa Lab. All rights reserved. File and Directory.
1 N305 C Programming. 2 Objectives for the Lab ä Learn problem solving strategies ä Achieve intermediate knowledge of C Programming Language ä Gain experience.
Vim Editor and Unix Command gcc compiler Computer Networks.
Chapter Two Exploring the UNIX File System and File Security.
Second edition Your UNIX: The Ultimate Guide Das © 2006 The McGraw-Hill Companies, Inc. All rights reserved. UNIX Commands cal – will print a calendar.
BIF713 Basic Unix/Linux Commands Getting Help with Commands.
Chapter Two Exploring the UNIX File System and File Security.
Introduction to UNIX Geraint Vaughan. What is UNIX? Command-line operating system (not point- and click) Designed for ‘experts’ Lots of different variants.
Welcome to CS323 Operating System lab 1 TA: Nouf Al-Harbi NoufNaief.net.
Agenda Basic Unix Commands (Chapters 2 & 3) Miscellaneous Commands: whereis, which, whoami, finger, passwd, cal, date Working with Files: cat, more, less.
1May 16, 2005 Week 2 Lab Agenda Command Line FTP Commands Review More UNIX commands to learn File name expansion - * Introduction of vi.
Linux+ Guide to Linux Certification, Third Edition
Linux+ Guide to Linux Certification, Third Edition
Introduction to Programming Using C An Introduction to Operating Systems.
Λειτουργικά Συστήματα – Lab2 Γιάννης Πετράκης. Directory Navigation and Control  The Unix file system is set up like a tree branching out from the root.
Agenda Basic Unix Commands (Chapters 2 & 3) Miscellaneous Commands: which, passwd, date, ps / kill Working with Files: file, touch, cat, more, less, grep,
File and Folder CLI Commands 12/24/ Agenda Overview of OS functions and the SHELL Internal v External Commands Command History Making & Modifying.
1 Lecture 2 Working with Files and Directories COP 3353 Introduction to UNIX.
Agenda The Linux File System (chapter 4 in text)
BIF713 File and Directory Management. File System A File System is a structure used to organize programs and data on a computer ’ s storage device Files.
Isecur1ty training center Presented by : Eng. Mohammad Khreesha.
XP New Perspectives on Microsoft Windows XP Tutorial 2 1 Microsoft Windows XP Working with Files Tutorial 2.
Learning basic Unix command It 325 operating system.
File Management commands cat Cat command cat cal.txt cat command displays the contents of a file here cal.txt on screen (or standard out).
Chapter 2: Exploring the UNIX File System (For Tuesday Section) File and File Systems.
Linux Tutorial Lesson Two *Getting Help in Linux *Data movement and manipulation *Relative and Absolute path *Processes Note: see chapter 1,2,3 from Linux.
CS 120 Extra: The CS1 Server Tarik Booker CS 120.
Agenda The Linux File System (chapter 4 in text) Directory Structures / Navigation Terminology File Naming Rules Relative vs Absolute pathnames Unix Commands:
1 N305 C Programming. 2 Objectives for the Lab ä Learn problem solving strategies ä Achieve intermediate knowledge of C Programming Language ä Gain experience.
Agenda The Linux File System (chapter 4 in text)
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.
Lecture 2 Working with Files and Directories
Agenda Basic Unix Commands (Chapters 2 & 3) Miscellaneous Commands:
Welcome to CSCI 230! Problem Solving using C
Exploring the UNIX File System and File Security
Welcome to CSCI 230! Problem Solving using C
Algorithms File Systems Lab Environment.
Module 6 Working with Files and Directories
Presentation transcript:

Notes Assignment #1 is due next Friday by 11:59 pm via Test #1 will be held Thursday February 18 at the start of class (one period long) Format: –Multiple Choice –Fill in Blanks –Short Answer

Agenda Recap of Sending Receiving attachments via Pine Working with Directories –Directory Definition –Creating Directories –Copying Files among directories –Display / Combine Files FTP application

Pine How to Receive Attachments Read message Press V to view attachments Select attachment file Press S to save file File will be saved on your home directory

Unix Mail Command It is difficult to edit a composed message in Unix mail. Make sure to check spelling of words BEFORE pressing ENTER to go to next line If you want to abort message, press

Directories The directory of a disk is an area where the names and locations of files are stored. Each storage device such as a hard disk has at least one directory which is called Root. Directories make it more efficient to store files under logical categories or locations.

Directories Inverted Tree Diagrams visualize directory structures Root ( / ) students msaul tmp Students is the parent directory of msaul

Making Directories Building directories is similar in approach to building a house Begins from a foundation (root) Need to build in proper order (add on addition to house in right location) Need to step-back and look at construction (ls, pwd)

Create a Directory tmp From Your Default Directory Questions: Where are we located? Where do we want to build directory? What command to use? How to confirm if directory is in right location?

Where are we located? Logon to Phobos account Issue command pwd to determine location (home directory)

Where do we want to build directory? Want to build a directory called tmp that branches-off of your home directory (msaul) We need to be in home directory (msaul) before issuing command to create the directory tmp.

What command to use? Type mkdir tmp at the Unix prompt, followed by ENTER

How to confirm if directory is in right location? Type ls -l at the Unix prompt or Type tree at the Unix prompt

Subdirectory A subdirectory is a directory that relates to its parent directory. Sub means “under” in latin and indicates that the directory branches off previous directory For example, tmp is a directory, but it is also a subdirectory of msaul

Directories Relative Directory Address –Directories relative to other directories –eg. cd../lab1 would mean to move back to parent directory and then to lab1 Absolute Directory Address –Full directory path –eg cd /home/msaul/lab1

Create a Directory tmp From Your Default Directory Root ( / ) (directory) home (subdirectory) msaul (subdirectory) tmp (subdirectory)

Copying / Moving / Renaming Files cp source.file destination.file mv (specify file pathnames) mv old.filename new.filename

Changing Directories cd directory cd directory path cd cd..(change to parent directory)

Other Unix Commands Find –Used to locate files within directories More –Used to view files (ability to see screen by screen) Touch –Used to create an empty file to be later editing using text editor such as nled

Redirection A method to redirect output from a printer or a screen display onto a file eg –find lab1 -print > lab_structure

Pipe A useful method to combine one or more Unix commands eg –ls -al | more –This displays full listing of files, but pauses when screen becomes full

Removing Directories Removing directories is reverse order of building directories Cannot remove directories containing files or other subdirectories Need to “step-back” to at least parent directory to remove empty directory Issue command rmdir

Create a Directory tmp From Your Default Directory Root ( / ) (directory) home (subdirectory) msaul (subdirectory) tmp (subdirectory)

FTP Application This application is used for transferring files among different computer systems. FTP stands for File Transfer Protocol The FTP application used at Seneca College is WS_FTP