CIS 240 Introduction to UNIX Instructor: Sue Sampson.

Slides:



Advertisements
Similar presentations
Agenda The Linux File System (chapter 4 in text) Directory Structures / Navigation Terminology / File Naming Rules Relative vs Absolute pathnames mkdir,
Advertisements

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.
Introduction to Unix (CA263) File System
Exploring the UNIX File System and File Security
Lesson 22 – Introduction to Linux Systems Administration.
Linux+ Guide to Linux Certification, Second Edition
CIS 240 Introduction to UNIX Instructor: Sue Sampson.
CIS 240 Introduction to UNIX Instructor: Sue Sampson.
UNIX Chapter 11 File Sharing Mr. Mohammad Smirat.
CIS 240 Introduction to UNIX Instructor: Sue Sampson.
Guide To UNIX Using Linux Third Edition
SoftwareTools CGS 3460, Lecture 7 Jan 25, 2006 Zhen Yang.
Chapter 31 File Transfer & Remote File Access (NFS)
2440: 141 Web Site Administration Remote Web Server Access Tools Instructor: Enoch E. Damson.
Guide To UNIX Using Linux Fourth Edition
Filesystem Hierarchy Standard (FHS) –Standard of outlining the location of set files and directories on a Linux system –Gives Linux software developers.
File Systems Sources and Resources: 1. A Students Guide to UNIX, by Hahn 2. Paula Davidson’s Handout on UNIXHandout on UNIX.
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.
Manage Directories and Files in Linux
Lesson 7-Creating and Changing Directories. Overview Using directories to create order. Managing files in directories. Using pathnames to manage files.
Guide to Linux Installation and Administration, 2e1 Chapter 3 Installing Linux.
Guide to Linux Installation and Administration, 2e1 Chapter 8 Basic Administration Tasks.
Home Media Network Hard Drive Training for Update to 2.0 By Erik Collett Revised for Firmware Update.
1 Web Server Administration Chapter 3 Installing the Server.
Linux+ Guide to Linux Certification, Second Edition
Department of Computer Science Southern Illinois University Edwardsville Spring, 2008 Dr. Hiroshi Fujinoki FTP Protocol Programming.
Chapter Two Exploring the UNIX File System and File Security.
1 Interface Two most common types of interfaces –SCSI: Small Computer Systems Interface (servers and high-performance desktops) –IDE/ATA: Integrated Drive.
Chapter 11 File Sharing. Sharing Techniques Duplicate files Common login Setting appropriate access permissions on shared files Common group for team.
Lesson 9-Setting and Using Permissions. Overview Describing file permissions. Using execute permissions with a file. Changing file permissions using mnemonics.
Managing Files. Module 5 Managing Files ♦ Introduction “On a Linux system, everything is a file; if something is not a file, it is a process.” ♦ Topics.
Manage Directories and Files in Linux. 2 Objectives Understand the Filesystem Hierarchy Standard (FHS) Identify File Types in the Linux System Change.
ITR3 lecture 6: intoduction to UNIX Thomas Krichel
Creating and Managing File Systems. Module 5 – Creating and Managing File Systems ♦ Overview This module deals with the structure of the file system,
1 Chapter 34 Internet Applications (Telnet, FTP).
Networking in Linux. ♦ Introduction A computer network is defined as a number of systems that are connected to each other and exchange information across.
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
CS 346 – Chapter 11 File system –Files –Access –Directories –Mounting –Sharing –Protection.
Accessing Evitech network via FTP by Susan Jansson.
1 © 2001 John Urrutia. All rights reserved. Chapter 4 The LINUX Filesystem.
Chapter 27 - Faxes & File Transfer (FTP) Introduction Sending a Fax –The Internet can be used to send a fax. Two fax machines can be modified to communicate.
Manage Directories and Files in Linux Part 2. 2 Identify File Types in the Linux System The file types in Linux referred to as normal files and directories.
File Systems, telnet and ftp Sources and Resources: 1. A Students Guide to UNIX, by Hahn 2. Paula Davidson’s Handout on UNIXHandout on UNIX.
Agenda Using FTP What is FTP? How to Use the FTP Program How to transfer files Using FTP.
SUSE Linux Enterprise Desktop Administration Chapter 7 Manage Directories and Files.
Fall 2013 SILICON VALLEY UNIVERSITY CONFIDENTIAL 1 Introduction to Embedded Systems Dr. Jerry Shiao, Silicon Valley University.
File Transfer Protocol (FTP) CIS 130. File Transfer Protocol (FTP) Copy files from one internet host (server) to your account on another host –Need domain.
 Last lesson, the Windows Operating System was discussed along with the Windows command shell  Unix is a computer operating system, that similarly manages.
File Sharing via Links Chien-Chung Shen CIS, UD
Agenda The Linux File System (chapter 4 in text) Linking Files Hard Links / Symbolic Links Disk Storage Checking for Disk Space (df / du) Archiving (Backing.
Linux Filesystem Management
Chapter 11 File Sharing. Copyright © 2005 Pearson Addison-Wesley. All rights reserved. Objectives  To explain different ways of sharing files  To discuss.
Agenda The Linux File System (chapter 4 in text)
Guide to Linux Installation and Administration, 2e
FTP Lecture supp.
Unix Commands PowerPoint
Unix Systems Administration
Exploring the UNIX File System and File Security
Web Programming Essentials:
Lecture 43 Syed Mansoor Sarwar
Hard Link when a file is copied, both the original and copy occupy separate space on the disk. unix allows a file to have more than one name and yet maintain.
Department of School of Computing and Engineering
The Linux Command Line Chapter 4
Agenda The Linux File System (chapter 4 in text)
Internet Applications (Telnet, FTP)
January 26th, 2004 Class Meeting 2
Presentation transcript:

CIS 240 Introduction to UNIX Instructor: Sue Sampson

CIS240 – UNIX File Sharing Five Methods for File Sharing Duplicate Shared files Common login for members of a team Allowing access to a file by setting permissions Assigning a common group to members of a team File sharing via links

CIS240 – UNIX File Sharing Links Hard link – pointer to an inode of a file you want to reference Soft (symbolic) link – new file of type link that contains the path name of a file you want to reference

CIS240 – UNIX File Sharing Using ln Format to Create a Hard Link : ln [options] existing-file new-file Creates a hard link to an existing file in current directory ln test12.txt test12.hard Format to Create a Soft Link : ln -s existing-file new-file Creates a soft link to an existing file ln -s test12.txt test12.soft

CIS240 – UNIX File Sharing Advantages of Hard Links If a file is moved within the same file system, the hard link still points to it Accessing a file is faster using a hard link

CIS240 – UNIX File Sharing Drawbacks of Hard Links Hard links cannot be established between files on different file systems Only a superuser can create a hard link to a directory Some applications will copy the contents of an existing file to a new file, then rename the new file as the old one. Since hard links point to inodes, the link is broken by this process.

CIS240 – UNIX File Sharing Advantages of Soft Links Because the soft link contains a path to the file, the link will still point to a new file with an existing name. You can have a link that points to another file system You do not need to be logged in as root to create soft links

CIS240 – UNIX File Sharing Drawbacks of Soft Links A new file has to be created for each link The paths have to be updated when the files they reference are moved It takes longer to access a file via a soft link because you have to open the soft link, read the path, then open the file

CIS240 – UNIX File Sharing Sharing Files Using Links Create a directory containing links to files you want to share Set the permissions to allow access to those files

CIS240 – UNIX File Sharing File Transfer Protocol (ftp) UNIX TCP/IP utility used to transfer a file or set of files from one computer to another Format: ftp Example: ftp academic1.bellevue.edu

CIS240 – UNIX File Sharing Requirements for Use ftp client software on the local computer ftp server software on the remote computer A network connection between the two computers A user account on each computer Read permission on the source file or files Write permission on the destination directory

CIS240 – UNIX File Sharing Summary of Useful ftp Commands help Display a summary of ftp commands asciiSet the transfer mode to ASCII binarySelect the transfer mode to binary cdChange directory open Open a connection with closeClose connection without exiting ftp get Move a file from to put Move a file from to byeExit the ftp client

CIS240 – UNIX File Sharing Contexts Think before you execute commands While you are in ftp, you are not executing at the UNIX command line Entering ls creates a list of the remote directory Entering !ls creates a list of the local directory Entering lcd changes path of local directory Entering cd changes path of remote directory If you are transferring program files (executables) you must switch to binary mode or the files will not transfer correctly

CIS240 – UNIX File Systems mount Adds a new file system to the directory Allows other devices (floppy/cd rom/ etc) to be accessed by linux Allows file systems to be mounted from other computers using the Network File System Note: You must create the filesystem before you can mount it mke2fs /dev/fd0 ( Create a second extended (ext2) filesystem – a floppy drive -- in the device directory. Done for you in RH9.) mount dev/fd0 (binds the current floppy to the filesystem.)

CIS240 – UNIX File Systems umount Unmounting removes the file system from your file structure. It is done when you intend to remove the media containing the file system from the computer. Note: You must unmount a file system before you remove the floppy from the device. Failure to do so can render the files on the floppy inaccessible umount /dev/fd0 (unmounts the filesystem)