rview of file system management in linux

41 234 0
rview of file system management in linux

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

OVERVIEW OF FILESYSTEM MANAGEMENT IN LINUX Lecturer: MS. Võ Minh Sơn Students: Nguyễn Đức Tiến 0620076 Nguyễn Xuân Thuận 0620069 CONTENTS filesystem management in Linux 2 Demo 4 Exploring the Linux filesystem 1 File permissions 2 File processing 3 5 Q & A6 Examining Files 1.1 Exploring the Linux filesystem 1.1 Overview 1.2 Filesystem hierarchy 1.3 Type of information 1.4 Linux device files 1.5 Mounting and unmounting a device on the filesystem filesystem management in Linux 3 1.1 Overview  Physical storage device: HDD, DVD-ROM  sector, track, cylinder • HDDs can be divided into separate storage devices called partitions  A filesystem is the methods and data structures that an operating system uses to keep track of files on a disk or partition (the way the files are organized on the disk) • ext3 (third extended filesystem) filesystem management in Linux 4 1.1 Overview (cont) filesystem management in Linux 5 1.1 Overview (cont)  File properties (Administrative information) 6 Filesystem management in Linux  Name  Location  Size  Owner/Group  Type  Data created/ accessed/modified  Permissions  Desktop  Command line  file’s inode  File manager KDE  Konqueror (Windows Explorer) GNOME Nautilus 1.2 Filesystem hierarchy 7 filesystem management in Linux 1.1 Understanding the filesystem hierarchy (cont) filesystem management in Linux 8 1.2 Filesystem hierarchy (cont)  path (pathname) absolute name vs relative name • /home/nguyenxuanthuan/programs • /home/guest/programs  shorcut • “ . ”  current directory • “ ”  directory immediately above the current directory Filesystem management in Linux 9 1.3 Type of information Filesystem management in Linux 10 Data files Link files Directory files Configuration files Device files Type of information  Application-specific files o Program Applications o Image files  Text files [...]... Moving Files 4.4 Viewing and Editing Text Files 4.5 Deleting Files and Directories 4.6 Backup and restoring files Filesystem management in Linux 4.1 Finding file Filesystem management in Linux 4.1.1 Find command find pathname conditions Filesystem management in Linux 4.1.2 Grep command grep options pattern files Filesystem management in Linux 4.2 Creating Directories, Files, and Links Filesystem management. .. directory containing the files Filesystem management in Linux 4.6 Backup and Restoring files  +which files needing to back up Back up strategy +how often Back up media +what back up storage to use  34 tap archiver command (tar)  Format: tar options tarfile filelist Filesystem management in Linux Tar options Filesystem management in Linux Tar options (cont) Filesystem management in Linux ... a filesystem and then attach it to your Linux file structure Mounting is the operation you perform to cause the filesystem on a physical storage device to appear as part of the Linux filesystem Mounting point is a specified directory that contains the mount command to mount a device on the Linux filesystem Filesystem management in Linux Mounting a device on the filesystem 15 filesystem management in. ..1.4 Linux device files 11 filesystem management in Linux 1.4 Linux device files (cont)  Linux treats all devices as files and uses a device just as it uses a file Open file Close file  12 Write file Read file Device Driver: a special program that controls a particular type of hardware  Any application can access a device by opening the file specific to that device Filesystem management in Linux. .. contents of the file • Write (w) Save the file to the hard disk • Execute (x) Run the file or enter the directory  Example: drwxr-xr Filesystem management in Linux 3 File Permissions (cont) Format: chmod who action permission filename Example: chmod u+x nguyen.txt Filesystem management in Linux 4 File processing 4.1 Finding file 4.2 Creating Directories, Files, and Links 4.3 Copying, Renaming, and Moving... (moves a file or directory) Your account needs to have write permissions Filesystem management in Linux 4.4 Viewing and Editing Text Files Applications: Kate, Kwrite, … Command lines: cat filename: The entire file contents display on the screen at once less filename: display the contents one screen at a time vi filename: edit file Filesystem management in Linux Vi options Filesystem management in Linux. .. management in Linux Vi options Filesystem management in Linux Vi options (cont) Filesystem management in Linux Vi options (cont) Filesystem management in Linux Vi options (cont) ZZ: save file :q!: close without saving file Filesystem management in Linux 4.5 Deleting Files and Directories rm filename: delete a file rm *: delete all file in current directory rmdir dirname: remove a empty directory rm -r dirname:... in Linux 1.4 Linux device files (cont)  Device file: the file which applications use to access a device • These special appear in the /dev directory in the Linux filesystem • block devices  ‘b’ character devices  ‘c’ network devices  ‘ethx’/‘pppx’ 13 (x = 0, 1, ) Filesystem management in Linux 1.5 Mounting and unmounting a device on the filesystem  Each of storage device has own filesystem •  ... right-click the file icon and select properties Command line: • ls • options: -l, -a… • operators: >,>> • pwd Filesystem management in Linux 18 Filesystem management in Linux 3 File Permissions  Three types of user accounts • Owner The account that owns the file • Group Members of a group that owns the file • All users All accounts on the system  Do one or more of three things to the file • Read (r)... Links Filesystem management in Linux 4.2 Creating Directories, Files, and Links (cont) Files can be created by applications, such as a word processor, and cat command Links can be created at the command line using the ln command Filesystem management in Linux 4.3 Copying, Renaming, and Moving Files To copy or move a file, type: + cp path/sourcename path/targetname (copies a file) + cp -r path/sourcename . the Linux filesystem Filesystem management in Linux 14 filesystem management in Linux 15 Mounting a device on the filesystem How to name a storage in Linux Filesystem management in Linux 16  Example • . directory Filesystem management in Linux 9 1.3 Type of information Filesystem management in Linux 10 Data files Link files Directory files Configuration files Device files Type of information  . the Linux filesystem 1 File permissions 2 File processing 3 5 Q & A6 Examining Files 1.1 Exploring the Linux filesystem 1.1 Overview 1.2 Filesystem hierarchy 1.3 Type of information 1.4 Linux

Ngày đăng: 24/11/2014, 17:59

Từ khóa liên quan

Mục lục

  • Slide 1

  • CONTENTS

  • 1.1 Exploring the Linux filesystem

  • 1.1 Overview

  • 1.1 Overview (cont)

  • 1.1 Overview (cont)

  • 1.2 Filesystem hierarchy

  • 1.1 Understanding the filesystem hierarchy (cont)

  • 1.2 Filesystem hierarchy (cont)

  • 1.3 Type of information

  • 1.4 Linux device files

  • 1.4 Linux device files (cont)

  • 1.4 Linux device files (cont)

  • 1.5 Mounting and unmounting a device on the filesystem

  • Slide 15

  • How to name a storage in Linux

  • 2. Examining Files

  • Slide 18

  • 3. File Permissions

  • 3. File Permissions (cont)

Tài liệu cùng người dùng

Tài liệu liên quan