SlideShare une entreprise Scribd logo
1  sur  19
Télécharger pour lire hors ligne
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

Contenu connexe

Tendances

File systems and inodes
File systems and inodesFile systems and inodes
File systems and inodesDr. Girish GS
 
1 basic computer operations
1   basic computer operations1   basic computer operations
1 basic computer operationsmissCS
 
Compression
CompressionCompression
Compressionaswathyu
 
Linux Basic Commands
Linux Basic CommandsLinux Basic Commands
Linux Basic CommandsHanan Nmr
 
The LINUX File System - R.D.Sivakumar
The LINUX File System - R.D.SivakumarThe LINUX File System - R.D.Sivakumar
The LINUX File System - R.D.SivakumarSivakumar R D .
 
Linux - Directory commands
Linux - Directory commandsLinux - Directory commands
Linux - Directory commandsjoesofi
 
Hdfs connector api
Hdfs connector apiHdfs connector api
Hdfs connector apiThang Loi
 
Unix commands in etl testing
Unix commands in etl testingUnix commands in etl testing
Unix commands in etl testingGaruda Trainings
 
Productivity tips - Introduction to linux for bioinformatics
Productivity tips - Introduction to linux for bioinformaticsProductivity tips - Introduction to linux for bioinformatics
Productivity tips - Introduction to linux for bioinformaticsBITS
 
CBSE - Class 12 - Ch -5 -File Handling , access mode,CSV , Binary file
CBSE - Class 12 - Ch -5 -File Handling , access mode,CSV , Binary fileCBSE - Class 12 - Ch -5 -File Handling , access mode,CSV , Binary file
CBSE - Class 12 - Ch -5 -File Handling , access mode,CSV , Binary fileShivaniJayaprakash1
 

Tendances (20)

File systems and inodes
File systems and inodesFile systems and inodes
File systems and inodes
 
Basic Linux commands
Basic Linux commandsBasic Linux commands
Basic Linux commands
 
Unix Basics Commands
Unix Basics CommandsUnix Basics Commands
Unix Basics Commands
 
Marwan al suwaidi
Marwan al suwaidiMarwan al suwaidi
Marwan al suwaidi
 
1 basic computer operations
1   basic computer operations1   basic computer operations
1 basic computer operations
 
Compression
CompressionCompression
Compression
 
Linux Basic Commands
Linux Basic CommandsLinux Basic Commands
Linux Basic Commands
 
Linux basic commands
Linux basic commandsLinux basic commands
Linux basic commands
 
The LINUX File System - R.D.Sivakumar
The LINUX File System - R.D.SivakumarThe LINUX File System - R.D.Sivakumar
The LINUX File System - R.D.Sivakumar
 
Linux - Directory commands
Linux - Directory commandsLinux - Directory commands
Linux - Directory commands
 
Linux Shell Basics
Linux Shell BasicsLinux Shell Basics
Linux Shell Basics
 
Linux comands for Beginners
Linux comands for BeginnersLinux comands for Beginners
Linux comands for Beginners
 
Linux commands
Linux commandsLinux commands
Linux commands
 
Hdfs connector api
Hdfs connector apiHdfs connector api
Hdfs connector api
 
Unix commands in etl testing
Unix commands in etl testingUnix commands in etl testing
Unix commands in etl testing
 
Linux
LinuxLinux
Linux
 
Productivity tips - Introduction to linux for bioinformatics
Productivity tips - Introduction to linux for bioinformaticsProductivity tips - Introduction to linux for bioinformatics
Productivity tips - Introduction to linux for bioinformatics
 
Know the UNIX Commands
Know the UNIX CommandsKnow the UNIX Commands
Know the UNIX Commands
 
Directories description
Directories descriptionDirectories description
Directories description
 
CBSE - Class 12 - Ch -5 -File Handling , access mode,CSV , Binary file
CBSE - Class 12 - Ch -5 -File Handling , access mode,CSV , Binary fileCBSE - Class 12 - Ch -5 -File Handling , access mode,CSV , Binary file
CBSE - Class 12 - Ch -5 -File Handling , access mode,CSV , Binary file
 

En vedette

03 browsing the filesystem
03 browsing the filesystem03 browsing the filesystem
03 browsing the filesystemShay Cohen
 
13 process management
13 process management13 process management
13 process managementShay Cohen
 
Infra / Cont delivery - 3rd party automation
Infra / Cont delivery - 3rd party automationInfra / Cont delivery - 3rd party automation
Infra / Cont delivery - 3rd party automationShay Cohen
 
Augusta Linux User Group - Vim Introduction
Augusta Linux User Group - Vim IntroductionAugusta Linux User Group - Vim Introduction
Augusta Linux User Group - Vim IntroductionKeith Pickett
 
14 network tools
14 network tools14 network tools
14 network toolsShay Cohen
 
Linux Internals - Kernel/Core
Linux Internals - Kernel/CoreLinux Internals - Kernel/Core
Linux Internals - Kernel/CoreShay Cohen
 
chroot and SELinux
chroot and SELinuxchroot and SELinux
chroot and SELinuxShay Cohen
 

En vedette (7)

03 browsing the filesystem
03 browsing the filesystem03 browsing the filesystem
03 browsing the filesystem
 
13 process management
13 process management13 process management
13 process management
 
Infra / Cont delivery - 3rd party automation
Infra / Cont delivery - 3rd party automationInfra / Cont delivery - 3rd party automation
Infra / Cont delivery - 3rd party automation
 
Augusta Linux User Group - Vim Introduction
Augusta Linux User Group - Vim IntroductionAugusta Linux User Group - Vim Introduction
Augusta Linux User Group - Vim Introduction
 
14 network tools
14 network tools14 network tools
14 network tools
 
Linux Internals - Kernel/Core
Linux Internals - Kernel/CoreLinux Internals - Kernel/Core
Linux Internals - Kernel/Core
 
chroot and SELinux
chroot and SELinuxchroot and SELinux
chroot and SELinux
 

Similaire à Unit3 browsing the filesystem

Chapter 2 Linux File System and net.pptx
Chapter 2 Linux File System and net.pptxChapter 2 Linux File System and net.pptx
Chapter 2 Linux File System and net.pptxalehegn9
 
Introduction to linux2
Introduction to linux2Introduction to linux2
Introduction to linux2Gourav Varma
 
linux-file-system01.ppt
linux-file-system01.pptlinux-file-system01.ppt
linux-file-system01.pptMeesanRaza
 
File handling and permisions.pptx
File handling and permisions.pptxFile handling and permisions.pptx
File handling and permisions.pptxAkampaPhilomena
 
2. UNIX OS System Architecture easy.pptx
2. UNIX OS System Architecture easy.pptx2. UNIX OS System Architecture easy.pptx
2. UNIX OS System Architecture easy.pptxPriyadarshini648418
 
BITS: Introduction to Linux - Text manipulation tools for bioinformatics
BITS: Introduction to Linux - Text manipulation tools for bioinformaticsBITS: Introduction to Linux - Text manipulation tools for bioinformatics
BITS: Introduction to Linux - Text manipulation tools for bioinformaticsBITS
 
Linux_Ch2 Lecture (1).pdf
Linux_Ch2 Lecture (1).pdfLinux_Ch2 Lecture (1).pdf
Linux_Ch2 Lecture (1).pdfAllinOne746595
 
Management file and directory in linux
Management file and directory in linuxManagement file and directory in linux
Management file and directory in linuxZkre Saleh
 
intro unix/linux 07
intro unix/linux 07intro unix/linux 07
intro unix/linux 07duquoi
 
Nguyễn Vũ Hưng: Basic Linux Power Tools
Nguyễn Vũ Hưng: Basic Linux Power Tools Nguyễn Vũ Hưng: Basic Linux Power Tools
Nguyễn Vũ Hưng: Basic Linux Power Tools Vu Hung Nguyen
 
Commands and shell programming (3)
Commands and shell programming (3)Commands and shell programming (3)
Commands and shell programming (3)christ university
 
Linux Introduction (Commands)
Linux Introduction (Commands)Linux Introduction (Commands)
Linux Introduction (Commands)anandvaidya
 
Linux introduction-commands2338
Linux introduction-commands2338Linux introduction-commands2338
Linux introduction-commands2338Cam YP Co., Ltd
 
Linux introduction-commands2338
Linux introduction-commands2338Linux introduction-commands2338
Linux introduction-commands2338Cam YP Co., Ltd
 

Similaire à Unit3 browsing the filesystem (20)

Chapter 2 Linux File System and net.pptx
Chapter 2 Linux File System and net.pptxChapter 2 Linux File System and net.pptx
Chapter 2 Linux File System and net.pptx
 
Introduction to linux2
Introduction to linux2Introduction to linux2
Introduction to linux2
 
linux-file-system01.ppt
linux-file-system01.pptlinux-file-system01.ppt
linux-file-system01.ppt
 
File handling and permisions.pptx
File handling and permisions.pptxFile handling and permisions.pptx
File handling and permisions.pptx
 
2. UNIX OS System Architecture easy.pptx
2. UNIX OS System Architecture easy.pptx2. UNIX OS System Architecture easy.pptx
2. UNIX OS System Architecture easy.pptx
 
BITS: Introduction to Linux - Text manipulation tools for bioinformatics
BITS: Introduction to Linux - Text manipulation tools for bioinformaticsBITS: Introduction to Linux - Text manipulation tools for bioinformatics
BITS: Introduction to Linux - Text manipulation tools for bioinformatics
 
Unix training session 1
Unix training   session 1Unix training   session 1
Unix training session 1
 
Linux_Ch2 Lecture (1).pdf
Linux_Ch2 Lecture (1).pdfLinux_Ch2 Lecture (1).pdf
Linux_Ch2 Lecture (1).pdf
 
Management file and directory in linux
Management file and directory in linuxManagement file and directory in linux
Management file and directory in linux
 
intro unix/linux 07
intro unix/linux 07intro unix/linux 07
intro unix/linux 07
 
Basics of Linux
Basics of LinuxBasics of Linux
Basics of Linux
 
Linux Fundamentals
Linux FundamentalsLinux Fundamentals
Linux Fundamentals
 
Nguyễn Vũ Hưng: Basic Linux Power Tools
Nguyễn Vũ Hưng: Basic Linux Power Tools Nguyễn Vũ Hưng: Basic Linux Power Tools
Nguyễn Vũ Hưng: Basic Linux Power Tools
 
Linuxnishustud
LinuxnishustudLinuxnishustud
Linuxnishustud
 
Linux shell scripting
Linux shell scriptingLinux shell scripting
Linux shell scripting
 
Commands and shell programming (3)
Commands and shell programming (3)Commands and shell programming (3)
Commands and shell programming (3)
 
Linux Introduction (Commands)
Linux Introduction (Commands)Linux Introduction (Commands)
Linux Introduction (Commands)
 
Linux introduction-commands2338
Linux introduction-commands2338Linux introduction-commands2338
Linux introduction-commands2338
 
Linux introduction-commands2338
Linux introduction-commands2338Linux introduction-commands2338
Linux introduction-commands2338
 
Linux ppt
Linux pptLinux ppt
Linux ppt
 

Plus de root_fibo

Unit 13 network client
Unit 13 network clientUnit 13 network client
Unit 13 network clientroot_fibo
 
Unit 11 configuring the bash shell – shell script
Unit 11 configuring the bash shell – shell scriptUnit 11 configuring the bash shell – shell script
Unit 11 configuring the bash shell – shell scriptroot_fibo
 
Unit 10 investigating and managing
Unit 10 investigating and managingUnit 10 investigating and managing
Unit 10 investigating and managingroot_fibo
 
Unit 9 basic system configuration tools
Unit 9 basic system configuration toolsUnit 9 basic system configuration tools
Unit 9 basic system configuration toolsroot_fibo
 
Unit 8 text processing tools
Unit 8 text processing toolsUnit 8 text processing tools
Unit 8 text processing toolsroot_fibo
 
Unit 7 standard i o
Unit 7 standard i oUnit 7 standard i o
Unit 7 standard i oroot_fibo
 
Unit 6 bash shell
Unit 6 bash shellUnit 6 bash shell
Unit 6 bash shellroot_fibo
 
Unit 5 vim an advanced text editor
Unit 5 vim an advanced text editorUnit 5 vim an advanced text editor
Unit 5 vim an advanced text editorroot_fibo
 
Unit 4 user and group
Unit 4 user and groupUnit 4 user and group
Unit 4 user and grouproot_fibo
 

Plus de root_fibo (10)

Unit 13 network client
Unit 13 network clientUnit 13 network client
Unit 13 network client
 
Unit 11 configuring the bash shell – shell script
Unit 11 configuring the bash shell – shell scriptUnit 11 configuring the bash shell – shell script
Unit 11 configuring the bash shell – shell script
 
Unit 10 investigating and managing
Unit 10 investigating and managingUnit 10 investigating and managing
Unit 10 investigating and managing
 
Unit 9 basic system configuration tools
Unit 9 basic system configuration toolsUnit 9 basic system configuration tools
Unit 9 basic system configuration tools
 
Unit 8 text processing tools
Unit 8 text processing toolsUnit 8 text processing tools
Unit 8 text processing tools
 
Unit 7 standard i o
Unit 7 standard i oUnit 7 standard i o
Unit 7 standard i o
 
Unit 6 bash shell
Unit 6 bash shellUnit 6 bash shell
Unit 6 bash shell
 
Unit 5 vim an advanced text editor
Unit 5 vim an advanced text editorUnit 5 vim an advanced text editor
Unit 5 vim an advanced text editor
 
Unit 4 user and group
Unit 4 user and groupUnit 4 user and group
Unit 4 user and group
 
Unit2 help
Unit2 helpUnit2 help
Unit2 help
 

Dernier

Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilV3cube
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...gurkirankumar98700
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 

Dernier (20)

Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 

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>...