Docsity

Exploring Linux Filesystems: Directories, Files, Viewing Contents, and Searching, Slides of Advanced Operating Systems

Partial preview of the text

Download Exploring Linux Filesystems: Directories, Files, Viewing Contents, and Searching and more Slides Advanced Operating Systems in PDF only on Docsity!

Chapter 4: Exploring Linux

Filesystems

2

Directory Structure

  • Similar to Windows structure but there is no drive name
  • It uses forward slash instead of backward one
  • Home directory
  • Remember the difference between # and $
  • Command commands {pwd, cd, etc.}
  • Use of cd without argument or with ~ to change to home
  • Relative versus absolute paths
  • The. and ..
  • Tab-completion feature and history

4

Viewing File Contents

โ€ข Common commands:

  • cat
  • tac
  • head
  • tail
  • more
  • less
  • Using redirection | with more and less
  • strings
  • od

5

Searching for Text

  • Regular expression versus wild characters