SlideShare a Scribd company logo
RedHat Enterprise Linux Essential
    Unit 3: Browsing the Filesystem
Objectives
Upon completion of this unit, you should be able to:
 Describe important elements of the filesystem hierarchy

 Copy, move, and remove files

 Create and view files

 Manage files with Nautilus
Linux File Hierarchy concepts

 Files and directories are organized into a single-rooted

  inverted tree structure

 Filesystem begins at the root directory, represented by a lone /

  (forward slash) character.

 Names are case-sensitive

 Paths are delimited by /

 Symbols: .. , .
Some Important Directories


 The home directories
    /root, /home/<username>

 The bin directories
    /bin, /usr/bin , /usr/local/bin

    /sbin, /usr/sbin, /usr/local/sbin

 Foreign filesystem mountpoints
    /media and /mnt
Other Important Directories

   /etc              - system config files
   /tmp              - Temporary files
   /boot             - Kernel and bootloader
   /dev              - Device
   /usr              - Programs
   /lost+found
   /var and /srv            -Server data
   /proc                    -system information
   The lib directories      - libraries
       • /lib, /usr/lib, /usr/local/lib
Current Woking Directory

 Each shell and system process has a current working

  directory (cwd)

 pwd

    Display the absolute path to the current directory (the shell's cwd)
File and Directory Names

 Names may be up to 255 characters

 All characters are valid, except the "/"
    It may be unwise to use certain special characters in file or directory
     names

    Some characters should be included in quotation marks when
     referencing them

 Names are case-sensitive
    Example: MAIL, Mail, mail and mAIl

    Again, possible, but may not be wise
Absolute and Relative Pathnames

 Absolute pathnames
   Begin with a forward slash

   Complete "road map" to file location

   Can be used anytime you wish to specify a file name

Relative pathnames
   Do not begin with a slash

   Specify location relative to your current working directory

   Can be used as a shorter way to specify a file name
Changing Directories

cd changes directories
   To an absolute or relative path:
     • cd /home/joshua/work

     • cd project/docs

   To a directory one level up:
     • cd ..

   To your home directory:
     • cd

   To your previous working directory:
     • cd -
Listing Directory Contents
 List the contents of the current directory or a specified directory

 Usage:
    ls [options] [files_or_dirs]

 Example:
    ls -a (include hidden files)

    ls -l (display extra information)

    ls -R (recurse through directories)

    ls -ld (directory and symlink information)
Copying Files and Directories
 cp copy files and directories

 usage:

      cp [options] file destination

 More than one file may be copied at a time if the destination is
  a directory

      cp [options] file1 file2 dest
Copying Files and Directories: The Destination
 If the destination is a directory, the copy is placed there

 If the destination is a file, the copy overwrites the destination

 If the destination does not exist, the copy is renamed
Moving and Renaming Files and Directories


 mv            move and/or rename files and directories

 Usage:
    mv [options] file destination

 More than one file may be moved at a time if the destination is
  a directory
    mv [options] file1 file2 destination

 Destination works like cp
Creating and Removing Files
 touch - create empty files or update file timestamps

 rm - remove files

 Usage:
    rm [options] <file>...

 Example:
    rm -i file (interactive)

    rm -r directory (recursive)

    rm -f file (force)
Creating and Removing Files

 mkdir creates directories

 rmdir removes empty directories

 rm -r recursively removes directory trees
Using Nautilus

 Gnome graphical filesystem browser

 Can run in spatial or browser mode

 Accessed via...
    Desktop icons
      • Home: Your home directory

      • Computer: Root filesystem, network resources and removable media

 Applications->System Tools->File Browser
Moving and Copying in Nautilus

 Drag-and-Drop
   Drag: Move on same filesystem, copy on different filesystem

   Drag + Ctrl: Always copy

   Drag + Alt: Ask whether to copy, move or create symbolic link (alias)

 Context menu
   Right-click to rename, cut, copy or paste
Determining File Content
 Files can contain many types of data

 Check file type with file before opening to determine
  appropriate command or application to use

 Syntax

       file [options] <filename>...
Unit3 browsing the filesystem

More Related Content

PDF
Unit 12 finding and processing files
PPTX
Basic commands of linux
PPTX
Access control list acl - permissions in linux
PDF
Command Line Tools
PPT
Linux commands
PPTX
Directory Commands - R.D.Sivakumar
PPT
Linux commands and file structure
PDF
Linux commands
Unit 12 finding and processing files
Basic commands of linux
Access control list acl - permissions in linux
Command Line Tools
Linux commands
Directory Commands - R.D.Sivakumar
Linux commands and file structure
Linux commands

What's hot (20)

PPTX
File systems and inodes
PDF
Basic Linux commands
PDF
Unix Basics Commands
PPTX
Marwan al suwaidi
PPT
1 basic computer operations
PPTX
Compression
PDF
Linux Basic Commands
PPT
Linux basic commands
PPTX
The LINUX File System - R.D.Sivakumar
PPTX
Linux - Directory commands
PPTX
Linux Shell Basics
PDF
Linux comands for Beginners
ODP
Linux commands
PPTX
Hdfs connector api
PDF
Unix commands in etl testing
PDF
Productivity tips - Introduction to linux for bioinformatics
PPTX
Know the UNIX Commands
DOCX
Directories description
PPTX
CBSE - Class 12 - Ch -5 -File Handling , access mode,CSV , Binary file
File systems and inodes
Basic Linux commands
Unix Basics Commands
Marwan al suwaidi
1 basic computer operations
Compression
Linux Basic Commands
Linux basic commands
The LINUX File System - R.D.Sivakumar
Linux - Directory commands
Linux Shell Basics
Linux comands for Beginners
Linux commands
Hdfs connector api
Unix commands in etl testing
Productivity tips - Introduction to linux for bioinformatics
Know the UNIX Commands
Directories description
CBSE - Class 12 - Ch -5 -File Handling , access mode,CSV , Binary file
Ad

Viewers also liked (7)

PPT
03 browsing the filesystem
PPTX
13 process management
PPTX
Infra / Cont delivery - 3rd party automation
ODP
Augusta Linux User Group - Vim Introduction
PPTX
14 network tools
ODP
Linux Internals - Kernel/Core
ODP
chroot and SELinux
03 browsing the filesystem
13 process management
Infra / Cont delivery - 3rd party automation
Augusta Linux User Group - Vim Introduction
14 network tools
Linux Internals - Kernel/Core
chroot and SELinux
Ad

Similar to Unit3 browsing the filesystem (20)

PPTX
Chapter 2 Linux File System and net.pptx
PDF
Course 102: Lecture 3: Basic Concepts And Commands
PPT
BITS: Introduction to Linux - Text manipulation tools for bioinformatics
PPT
Linux shell scripting
PPT
linux-file-system01.ppt
PPT
managing-the-linux-file-system________________________
PPT
managing-the-linux-file-system_suse_.ppt
PDF
Linux_Ch2 Lecture (1).pdf
PPT
101 3.3 perform basic file management
PDF
Lecture1 2 intro-unix
PPTX
Unix Linux Commands Presentation 2013
ODP
Nguyễn Vũ Hưng: Basic Linux Power Tools
PPTX
An Introduction to Linux
PDF
Linux fundamental - Chap 03 file
PPT
8.1.intro unix
PPT
LinuxLabBasics.ppt
PPT
Linuxnishustud
PPTX
Linux Fundamentals
PDF
Basic linux commands
PPT
Tutorial 2
Chapter 2 Linux File System and net.pptx
Course 102: Lecture 3: Basic Concepts And Commands
BITS: Introduction to Linux - Text manipulation tools for bioinformatics
Linux shell scripting
linux-file-system01.ppt
managing-the-linux-file-system________________________
managing-the-linux-file-system_suse_.ppt
Linux_Ch2 Lecture (1).pdf
101 3.3 perform basic file management
Lecture1 2 intro-unix
Unix Linux Commands Presentation 2013
Nguyễn Vũ Hưng: Basic Linux Power Tools
An Introduction to Linux
Linux fundamental - Chap 03 file
8.1.intro unix
LinuxLabBasics.ppt
Linuxnishustud
Linux Fundamentals
Basic linux commands
Tutorial 2

More from root_fibo (10)

PDF
Unit 13 network client
PDF
Unit 11 configuring the bash shell – shell script
PDF
Unit 10 investigating and managing
PDF
Unit 9 basic system configuration tools
PDF
Unit 8 text processing tools
PDF
Unit 7 standard i o
PDF
Unit 6 bash shell
PDF
Unit 5 vim an advanced text editor
PDF
Unit 4 user and group
PDF
Unit2 help
Unit 13 network client
Unit 11 configuring the bash shell – shell script
Unit 10 investigating and managing
Unit 9 basic system configuration tools
Unit 8 text processing tools
Unit 7 standard i o
Unit 6 bash shell
Unit 5 vim an advanced text editor
Unit 4 user and group
Unit2 help

Recently uploaded (20)

PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
KodekX | Application Modernization Development
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Machine learning based COVID-19 study performance prediction
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPT
Teaching material agriculture food technology
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Mobile App Security Testing_ A Comprehensive Guide.pdf
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
20250228 LYD VKU AI Blended-Learning.pptx
Unlocking AI with Model Context Protocol (MCP)
KodekX | Application Modernization Development
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Review of recent advances in non-invasive hemoglobin estimation
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Machine learning based COVID-19 study performance prediction
Network Security Unit 5.pdf for BCA BBA.
Diabetes mellitus diagnosis method based random forest with bat algorithm
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Dropbox Q2 2025 Financial Results & Investor Presentation
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Digital-Transformation-Roadmap-for-Companies.pptx
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Teaching material agriculture food technology
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf

Unit3 browsing the filesystem

  • 1. RedHat Enterprise Linux Essential Unit 3: Browsing the Filesystem
  • 2. Objectives Upon completion of this unit, you should be able to:  Describe important elements of the filesystem hierarchy  Copy, move, and remove files  Create and view files  Manage files with Nautilus
  • 3. Linux File Hierarchy concepts  Files and directories are organized into a single-rooted inverted tree structure  Filesystem begins at the root directory, represented by a lone / (forward slash) character.  Names are case-sensitive  Paths are delimited by /  Symbols: .. , .
  • 4. Some Important Directories  The home directories  /root, /home/<username>  The bin directories  /bin, /usr/bin , /usr/local/bin  /sbin, /usr/sbin, /usr/local/sbin  Foreign filesystem mountpoints  /media and /mnt
  • 5. Other Important Directories  /etc - system config files  /tmp - Temporary files  /boot - Kernel and bootloader  /dev - Device  /usr - Programs  /lost+found  /var and /srv -Server data  /proc -system information  The lib directories - libraries • /lib, /usr/lib, /usr/local/lib
  • 6. Current Woking Directory  Each shell and system process has a current working directory (cwd)  pwd  Display the absolute path to the current directory (the shell's cwd)
  • 7. File and Directory Names  Names may be up to 255 characters  All characters are valid, except the "/"  It may be unwise to use certain special characters in file or directory names  Some characters should be included in quotation marks when referencing them  Names are case-sensitive  Example: MAIL, Mail, mail and mAIl  Again, possible, but may not be wise
  • 8. Absolute and Relative Pathnames  Absolute pathnames  Begin with a forward slash  Complete "road map" to file location  Can be used anytime you wish to specify a file name Relative pathnames  Do not begin with a slash  Specify location relative to your current working directory  Can be used as a shorter way to specify a file name
  • 9. Changing Directories cd changes directories  To an absolute or relative path: • cd /home/joshua/work • cd project/docs  To a directory one level up: • cd ..  To your home directory: • cd  To your previous working directory: • cd -
  • 10. Listing Directory Contents  List the contents of the current directory or a specified directory  Usage:  ls [options] [files_or_dirs]  Example:  ls -a (include hidden files)  ls -l (display extra information)  ls -R (recurse through directories)  ls -ld (directory and symlink information)
  • 11. Copying Files and Directories  cp copy files and directories  usage: cp [options] file destination  More than one file may be copied at a time if the destination is a directory cp [options] file1 file2 dest
  • 12. Copying Files and Directories: The Destination  If the destination is a directory, the copy is placed there  If the destination is a file, the copy overwrites the destination  If the destination does not exist, the copy is renamed
  • 13. Moving and Renaming Files and Directories  mv move and/or rename files and directories  Usage:  mv [options] file destination  More than one file may be moved at a time if the destination is a directory  mv [options] file1 file2 destination  Destination works like cp
  • 14. Creating and Removing Files  touch - create empty files or update file timestamps  rm - remove files  Usage:  rm [options] <file>...  Example:  rm -i file (interactive)  rm -r directory (recursive)  rm -f file (force)
  • 15. Creating and Removing Files  mkdir creates directories  rmdir removes empty directories  rm -r recursively removes directory trees
  • 16. Using Nautilus  Gnome graphical filesystem browser  Can run in spatial or browser mode  Accessed via...  Desktop icons • Home: Your home directory • Computer: Root filesystem, network resources and removable media  Applications->System Tools->File Browser
  • 17. Moving and Copying in Nautilus  Drag-and-Drop  Drag: Move on same filesystem, copy on different filesystem  Drag + Ctrl: Always copy  Drag + Alt: Ask whether to copy, move or create symbolic link (alias)  Context menu  Right-click to rename, cut, copy or paste
  • 18. Determining File Content  Files can contain many types of data  Check file type with file before opening to determine appropriate command or application to use  Syntax file [options] <filename>...