UNIX File System by Tero Toikkanen, CAP02S. UNIX Multi-user system Multi-user system Multi-tasking system Multi-tasking system Wide selection of tools.

Slides:



Advertisements
Similar presentations
Pre-Assessment Questions
Advertisements

Exploring the UNIX File System and File Security
Lesson 22 – Introduction to Linux Systems Administration.
Linux+ Guide to Linux Certification, Second Edition
Linux Linux File System.
Guide To UNIX Using Linux Third Edition
Guide To UNIX Using Linux Third Edition
ENGINEERING COMPUTING CENTER LINUX workshop
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.
Linux Commands LINUX COMMANDS.
CS 141 Labs are mandatory. Attendance will be taken in each lab. Make account on moodle. Projects will be submitted via moodle.
Learning basic Unix command IT 325 operating system.
Guide To UNIX Using Linux Fourth Edition
1 THE UNIX FILE SYSTEM By Chokechai Chuensukanant ID COSC 513 Operating System.
The file structure and related utilities CS240 Computer Science II.
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.
1 Lecture 2 Working with Files and Directories COP 3344 Introduction to UNIX.
Chapter Four UNIX File Processing. 2 Lesson A Extracting Information from Files.
2INC0 Operating Systems Introduction to Linux
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
Working with Linux Lab 1 1. Login and logout Account – username & password – Note: Linux is case-sensitive Administrator: username = root Logout: exit,
Linux overview. Architecture Kernel File system Shell: Korn, Bourne, C, Bash X Windows: Motif, Open Look, X.OrgX.Org Desktop: Gnome, KDE,etc.
Chapter Two Exploring the UNIX File System and File Security.
INTRODUCTION TO LINUX Jacob Chan. GNU/Linux Consists of Linux kernel, GNU utilities, and open source and commercial applications Works like Unix –Multi-user.
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.
Linux file system "On a UNIX system, everything is a file; if something is not a file, it is a process." Sorts of files (on a Linux system) Directories:
Chapter Two Exploring the UNIX File System and File Security.
ITR3 lecture 6: intoduction to UNIX Thomas Krichel
November 5, 2015CIS 118 Intro to UNIX What’s a Unix? Unix is an Operating System Designed for high-traffic usage Many variants –Linux, BSD: free versions.
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.
Basic of UNIX For fresh members of SPARCS
Λειτουργικά Συστήματα – Lab2 Γιάννης Πετράκης. Directory Navigation and Control  The Unix file system is set up like a tree branching out from the root.
Linux Commands C151 Multi-User Operating Systems.
Linux Filesystem WeeSan Lee. Roadmap Disk Partitions The Filesystem Filesystem Mouting & Umounting File Tree File Type File Permission.
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.
A gentle introduction to LINUX at the command prompt.
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.
A Brief Overview of Unix Brandon Bohrer. Topics What is Unix? – Quick introduction Documentation – Where to get it, how to use it Text Editors – Know.
1 CS3695 – Network Vulnerability Assessment & Risk Mitigation – Introduction to Unix & Linux.
The Unix File sytem. Introduction Tree structure …
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).
Learning Unix/Linux Based on slides from: Eric Bishop.
Using UNIX Charles Duan FAS Computer Services June 12, 2016.
Linux 101 Mark C. Ballew ACES Program Desert Research Institute.
Linux Filesystem Management
Getting Started with Linux
By Jonathan Rinfret UNIX/LINUX By Jonathan Rinfret
Chapter 8 Unix & Linux.
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.
Linux file system "On a UNIX system, everything is a file;
Basic Commands ls cp ls –l (in detail format) echo ls –a
Lecture 2 Working with Files and Directories
Some Linux Commands.
UNIX Basics Internet Technology.
Introduction to UNIX.
Exploring the UNIX File System and File Security
Introduction to Linux Week 0 - Thursday.
Unix : Introduction and Commands
The Unix File System.
Linux Commands LINUX COMMANDS.
Chapter 4: The Linux Filesystem
January 26th, 2004 Class Meeting 2
Presentation transcript:

UNIX File System by Tero Toikkanen, CAP02S

UNIX Multi-user system Multi-user system Multi-tasking system Multi-tasking system Wide selection of tools for software development Wide selection of tools for software development Open architecture Open architecture

Some UNIX variants LINUX (Caldera, Debian, Mandrake, RedHat, Slackware, SuSE...) LINUX (Caldera, Debian, Mandrake, RedHat, Slackware, SuSE...) BSD (FreeBSD, NetBSD, OpenBSD) BSD (FreeBSD, NetBSD, OpenBSD) HP-UX HP-UX Solaris Solaris IRIX IRIX Compaq Tru64 UNIX (discontinued) Compaq Tru64 UNIX (discontinued)

KISS The general principle: ”Keep It Simple, Stupid” The general principle: ”Keep It Simple, Stupid” Programs perform one well defined task properly Programs perform one well defined task properly Almost all data is presented as text Almost all data is presented as text Programs can be combined like LEGO- blocks Programs can be combined like LEGO- blocks

RTFM Learn to use the documentation Learn to use the documentation man and info commands man and info commands Internet resources Internet resources –Website of the variant or distribution –HOW-TO’s –Tutorials

The Basics of UNIX File system Hierarchical tree -structure Hierarchical tree -structure File-spesific security rights File-spesific security rights Files may be shared Files may be shared Almost everything can be considered to be a file, so a file can contain anything Almost everything can be considered to be a file, so a file can contain anything Even directories are files, they just contain a list of other files Even directories are files, they just contain a list of other files Case-sensitive file names Case-sensitive file names

Mounting All UNIX systems usually have at least one permanent non-removable hard disk system. The root directory and the directories below it are stored on this disk. Its structure is known as the root file system. All UNIX systems usually have at least one permanent non-removable hard disk system. The root directory and the directories below it are stored on this disk. Its structure is known as the root file system. If an additional hard disk is added, UNIX creates a separate new filesystem on this disk. Before it can be used, it must be attached to the root file system. This is called mounting an additional filesystem. If an additional hard disk is added, UNIX creates a separate new filesystem on this disk. Before it can be used, it must be attached to the root file system. This is called mounting an additional filesystem.

Mounting example 1

Mounting example 2 Filesystem blocks Used Available Mounted on /dev/hda / /dev/hda /usr /dev/hda /home /dev/hda /boot /dev/hdb /scratch /dev/hdb /tmp /dev/fd /floppy

File types A file can be e.g.: A file can be e.g.: –Text file –Data file –Source Code file –Executable file –Shell program –Link –Device file

file-command Used to determine file type Used to determine file type Usage: Usage: – file file e.g: e.g: – file * – file /dev/hda1 Output examples Output examples – ASCII text – c program text – character special (Device file)

cd,ls - and pwd -commands cd cd ~ ls ls -a ls -l la -p pwd

Root-directory / /dev/net /etc/opt /export/sbin /home/stand /kernel/tmp /lost+found/usr /mnt/var

Security rights Example file Example file -rwxr-x--- 1 ex1 users 512 Sep 11 10:28 a.ps File type indicatior | Permissions for file owner | | Permission for group members | | | Permissions for others | | | | - rwx r-x ---

File tools rm - remove file (or directory) rm - remove file (or directory) cp - copy file to another location cp - copy file to another location mv - move file to another location mv - move file to another location mkdir - create new directory mkdir - create new directory rmdir - remove directory rmdir - remove directory

ch-commands chmod chmod –Change permission mode for file chown chown –Change owner for file chgrp chgrp –Change group for file

chmod Usage: Usage: – chmod o+r datafiles chmod [augo][+-=][rwx] file

cat and more cat - Display, combine, append, copy, or create files cat - Display, combine, append, copy, or create files –Usage: cat [option] file more - Display all or parts of a file one screen at a time more - Display all or parts of a file one screen at a time –Usage: more [option] file

More info