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.

Slides:



Advertisements
Similar presentations
Pre-Assessment Questions
Advertisements

ECT 250: Survey of e-commerce technology Publishing pages on a Unix system.
Exploring the UNIX File System and File Security
Internet Applications: Telnet, Ping and Traceroute.
The UNIX File System CS465. File Systems What is a file system? A means of organizing information on the computer. A file system is a logical view, not.
File Security. Viewing Permissions ls –l Permission Values.
Linux+ Guide to Linux Certification, Second Edition
The UNIX File System.
Guide To UNIX Using Linux Third Edition
UNIX Files and Security Software Tools. Slide 2 File Systems l What is a file system? A means of organizing information on the computer. A file system.
Basic UNIX © McGraw Hill All rights reserved.
Learning basic Unix command IT 325 operating system.
Guide To UNIX Using Linux Fourth Edition
File Systems Sources and Resources: 1. A Students Guide to UNIX, by Hahn 2. Paula Davidson’s Handout on UNIXHandout on UNIX.
Overview of Linux CS3530 Spring 2014 Dr. José M. Garrido Department of Computer Science.
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”
CHAPTER 1 UNIX FOR NONPROGRAMMERS By U ğ ur Halıcı.
1 Lecture 2 Working with Files and Directories COP 3344 Introduction to UNIX.
File Permissions. What are the three categories of users that apply to file permissions? Owner (or user) Group All others (public, world, others)
Linux+ Guide to Linux Certification, Second Edition
ECT 250: Survey of E-Commerce Technology FrontPage Publishing pages Unix.
PROGRAMMING PROJECT POLICIES AND UNIX INTRO Sal LaMarca CSCI 1302, Fall 2009.
System Administration Introduction to Unix Session 2 – Fri 02 Nov 2007 Reference:  chapter 1, The Unix Programming Environment, Kernighan & Pike, ISBN.
Chapter Two Exploring the UNIX File System and File Security.
Operating Systems and Using Linux CMSC 104, Lecture 3 John Y. Park 1.
1 Operating Systems and Using Linux Topics What is an Operating System? Linux Overview Frequently Used Linux Commands Reading None.
Chapter 3 Some additional notes… File permissions A file has three types of permissions (read, write and execute). Available to three categories of users.
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.
Second edition Your UNIX: The Ultimate Guide Das © 2006 The McGraw-Hill Companies, Inc. All rights reserved. UNIX Commands cal – will print a calendar.
Chapter Two Exploring the UNIX File System and File Security.
Linux Essentials Programming and Data Structures Lab M Tech CS – I 2014 Arijit Bishnu Ansuman Banerjee Debapriyo Majumdar.
Log-in to the Unix Server A successful log-in allows access to the server through the Secure Shell. SSH, also known as Secure Shocket Shell, is a Unix.
Agenda Basic Unix Commands (Chapters 2 & 3) Miscellaneous Commands: whereis, which, whoami, finger, passwd, cal, date Working with Files: cat, more, less.
E X C E E D I N G E X P E C T A T I O N S Basic LINUX Linux System Administration Dr. Hoganson Kennesaw State University Operating Systems Directory structure:
Linux+ Guide to Linux Certification, Third Edition
Linux+ Guide to Linux Certification, Third Edition
1 © 2001 John Urrutia. All rights reserved. Chapter 4 The LINUX Filesystem.
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.
2 Manual & Filestore Mauro Jaskelioff. Introduction Using the manual The UNIX filestore File permissions.
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.
Intro. To Unix commands For those who’ve never used Unix before Quick tutorial to let you move around your Unix Accounts No discussion of inner workings.
ECT 270 Client-side Web Application Development Professor Robin Burke.
Files and Directories in UNIX The first file in UNIX file system is “root” or “/”
Unix Environment Basics CSCI-1302 Lakshmish Ramaswamy.
UNIX filesystem CS 2204 Class meeting 2 *Notes by Doug Bowman and other members of the CS faculty at Virginia Tech. Copyright
1 Introduction to Unix. 2 What is UNIX?  UNIX is an Operating System (OS).  An operating system is a control program that helps the user communicate.
 Last lesson, the Windows Operating System was discussed along with the Windows command shell  Unix is a computer operating system, that similarly manages.
Learning basic Unix command It 325 operating system.
Chapter 2: Exploring the UNIX File System (For Tuesday Section) File and File Systems.
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:
Laboratory 1.2a1 First steps with Unix - Lab Boris Steipe Department of Biochemistry Department.
Overview of Linux Fall 2016 Dr. Donghyun Kim
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.
Commands Basic syntax of shell commands UNIX or shell commands have a basic structure command -options target command comes first (such as cd or ls) any.
Web Programming Essentials:
UNIX Basics Internet Technology.
Exploring the UNIX File System and File Security
Operating Systems and Using Linux
Operating Systems and Using Linux
Web Programming Essentials:
January 26th, 2004 Class Meeting 2
Presentation transcript:

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

Internet Applications: telnet For Remote Login telnet remote_host_name Internet application Used to login to a remote computer Allows your expensive PC to look like a dumb glass tty or asynchronous terminal At UNCA, you will use telnet to login to the servers: bulldog.unca.edu, candler.cs.unca.edu, and the engineering server.engr.unca.edu

Internet Applications: telnet For Remote Login Ways to access telnet From a DOS window From the run window in Windows From a browser

Internet Applications: ftp For Moving Files ftp remote_host_name Internet application Used to move files to or get files from a remote computer At UNCA, you will use ftp to move files to the servers: bulldog.unca.edu, candler.cs.unca.edu, and the engineering server.engr.unca.edu

Internet Applications: ftp For Moving Files Ways to access ftp From a DOS window From the run window in Windows From a browser What would happen if you used ftp://candler.cs.unca.edu

UNIX File System Hierarchical Contains files Text files Special files Standard I/O – Keyboard, Display Device files Directories

File Structure - Hierarchical

Paths Relative newDirectory newDirectory/myFiles/homework1.doc Absolute /usr/users/reiser/newDirectory /usr/users/reiser/newDirectory/myFiles/homework1.doc

Commands mkdir Make a directory mkdir newDirectory Makes a new directory named newDirectory as a child of the current directory

Commands rmdir Remove a directory rmdir newDirectory Removes a directory named newDirectory. If specified as a relative path (not beginning with a /) the directory to be removed must be in the current working directory.

Commands ls List contents of a directory ls newDirectory Lists the contents of newDirectory ls Lists the contents of the current working directory ls –a Lists all the contents of the current working directory, even the hidden files

Commands ls List contents of a directory ls –l Lists all the contents of the current working directory in a long listing which displays the file permissions as well as the owner, group, size in bytes, modification date

Commands cd Change directory cd // sets current working directory // to your home directory cd otherDirectory // sets current working directory // to otherDirectory

Commands cd Change directory cd.. // sets current working directory // to the parent directory or moves // one level up the hierarchy cd../.. // sets current working directory // to 2 levels up the hierarchy

Commands mv Move or rename a file mv file1.txt file1.html // renames file1.txt to file1.html mv file1.txt newDirectory/file1.html // moves file1.txt to newDirectory/file1.html

To do 1. telnet into your account 2. Display your home directory. What directories exist in your home directory? 3. Do you have a public_html directory?  If not, create a directory under your home directory and call it public_html

To do 4. Change directories into your public_html directory. 5. Change back to your home directory. 6. Change to the root directory. 7. Change back to your home directory. 8. Create a subdirectory called junk 9. Change into junk and create two subdirectories: j1 and j Remove j1, j2 and junk.

File Permissions The various flavors of UNIX including LINUX and OS/X store permissions for every file. There are three independent permissions Read Write Execute You can change permissions for your files.

File Permissions for Directories The various flavors of UNIX including LINUX and OS/X store permissions for every directory. There are three independent permissions Read - read names in a directory Write - make changes (create, move, copy, remove) Execute - search the directory (cd into it) You can change permissions for your directories.

Permissions: an octal representation chmod permissions file Read: 4100 Read + Write: 6110 Read + Execute: 5101 Read + Write + Execute: 7111 Write: 2010 Write + Execute: 3011 Execute: 1001

chmod permissions file Each file has three sets of permissions Permission modes exist for youyour_groupworld rwxrwx rwx n chmod 777 myWideOpenFile n chmod 744 myOtherFile n chmod 700 mySecretFile

Displaying File Permissions ls -l -rw-r--r-- 1 mmasuser staff Dec 14:14 Adobe SVG 3.0 Installer Log drwx mmasuser staff Jan 14:53 Desktop drwx mmasuser staff Jan 15:13 Documents drwx mmasuser staff Nov 14:09 Library drwx mmasuser staff Nov 19:55 Movies drwx mmasuser staff Oct 13:52 Music drwx mmasuser staff Dec 19:27 Pictures drwxr-xr-x 4 mmasuser staff Oct 13:30 Public drwxr-xr-x 5 mmasuser staff Oct 13:30 Sites

In class  Do you have a directory under your home directory named public_html ?  If not, create a directory under your home directory and call it public_html  Set file permissions for public_html :  chmod 755 ~/public_html  Change directories into your public_html directory. Create a new directory named Create 3 subdirectories of 172 : Assignment1, Assignment2, and Assignment3.