Exploring Linux File Systems - Unix Systems - Lecture Slides, Slides of Advanced Operating Systems

These lecture slides of the unix system are very helpful and quite informative in terms of the understanding the use of the unix system. The major issue cover in these slides are:Exploring Linux File Systems, Linux Directory Structure, Absolute Pathnames, Types of Linux Files, Filenames and File Types, Shell Wildcards, Regular Expressions, Common Text Editors, Relative Pathname

Typology: Slides

2012/2013

Uploaded on 04/24/2013

banani
banani ๐Ÿ‡ฎ๐Ÿ‡ณ

4.3

(3)

91 documents

1 / 43

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Chapter 4
Exploring Linux File systems
Docsity.com
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b

Partial preview of the text

Download Exploring Linux File Systems - Unix Systems - Lecture Slides and more Slides Advanced Operating Systems in PDF only on Docsity!

Chapter 4

Exploring Linux File systems

Objectives

  • Understand and navigate the Linux directory structure using relative and absolute pathnames
  • Describe the various types of Linux files
  • View filenames and file types
  • Use shell wildcards to specify multiple filenames

The Linux Directory Structure

  • Directory: Used to organize other files into a logical tree structure
  • Absolute pathname: Pathname from the root directory to a certain file or directory
  • Root: The top level directory
    • referred to using the / character

The Linux Directory Structure

(continued)

Figure 4-1: The Windows filesystem structure

Figure 4-2: The Linux filesystem structure

Changing Directories (continued)

  • Subdirectory: Directory residing within another directory
  • Tab-completion: Pressing the Tab key fills in remaining characters of a unique filename or directory name - BASH shell feature

Viewing Files and Directories: File Types

  • Text files: Store information in a readable text format
  • Binary data files: Store information associated with executable programs
  • Executable program files
  • Directory files

Filenames

  • Filename: Identifier given to a file
  • Filename extensions: Identifiers following a dot (.) at end of filename - Denote file type - Most files on Linux do not have file extensions

Filenames (continued)

Table 4-1: Common filename extensions

Listing Files

  • ls command: List the files in a directory
    • May pass an argument indicating the directory to be listed - โ€“ F switch: Argument to list file types - โ€“ l switch: Argument to list long file listings
  • Alias: Shortcut for a command
  • ll command: Alias for ls -l
  • File command: Displays file type of any file

Listing Files (continued)

  • Hidden files: Files not normally displayed to user - Filenames start with a dot (.) - Configuration files often hidden - ls โ€“ a command: Displays hidden files

Listing Files (continued)

Table 4-2 (continued): Common options to the ls command

Wildcard Metacharacters

  • Wildcard metacharacter: Used to simplify commands specifying multiple filenames - Can be used with most Linux filesystem commands

Displaying Content of Text Files

  • Concatenation: Joining text together
  • cat command: Displays (concatenates) contents of a text file to the screen - -n switch: Displays line number and contents
  • Log files: Contain records of past system events - New events appended to end
  • tac command: Displays files in reverse order
  • head command: View first few lines of a file

Displaying Content of Text Files (continued)

  • tail command: View last few lines of a file
    • Can also specify what line number to start at
  • more command: Displays text files page-by- page - Space key goes to next page - Enter key goes to next line
  • less command: Same as more command, but can also use cursor to scroll