SlideShare a Scribd company logo
Junior Level Linux Certification
Exam Objectives
Key Knowledge Areas
Understand the correct locations of files under the FHS.
Find files and commands on a Linux system.
Know the location and purpose of important file and directories as defined in the FHS.
Objective 4: Devices, Linux Filesystems, Filesystem Hierarchy Standard
Find system files and place files in the correct location Weight: 2
Terms and Utilities
find
locate
updatedb
whereis
which
type
/etc/updatedb.conf
2
File system Hierarchy Standard
3
Directories required in / by the Filesystem Hierarchy Standard
Set of requirements and guidelines for file and directory placement under UNIX-like operating systems.
Directory Description
bin Essential command binaries
boot Static files of the boot loader
dev Device files
etc Host-specific system configuration
lib Essential shared libraries and kernel modules
media Mount point for removable media
mnt Mount point for mounting a filesystem temporarily
opt Add-on application software packages
sbin Essential system binaries
srv Data for services provided by this system
tmp Temporary files
usr Secondary hierarchy
var Variable data
http://www.pathname.com/fhs/
Create partitions and filesystems
Filesystem Hierarchy Standard
4
Ex:
Create partitions and filesystems
Locating Files
# find /home/angie –name stuff
/home/angie/stuff
# find /home/angie –user root
/home/angie/morestuff
find utility is used to search for files.
5
Find system files and place files in the correct location
Syntax: find /path expression
Ex:
Options:
-atime Searches based on the number of days since last accessed.
-ctime Searches based on the number of days since directory entry last changed.
-group Searches for files belonging to the specified group.
-newer Searches for files more recent than the specified file.
-name Searches for files with names matching the specified string.
-user Searches for files belonging to the specified user.
Locating Files
locate provides a secure way to index and quickly search for files on your system.
Uses slocate database, by default, to find file locations. Db is updated with cmd updatedb
6
Find system files and place files in the correct location
Syntax: locate –options arguments
Options:
-u Start at / when creating the slocate database.
-U /PATH Start at the specified path when creating the slocate database.
-e DIR Exclude the specified directories when creating the slocate database.
-c Parses the /etc/updatedb.conf file when creating the database.
-i Searches without regard to case.
-o FILE Specifies the output file to create.
-d PATH Specifies the path of databases to search.
The database is located in: /etc/updatedb.conf
Locating Files
# which locate
/usr/bin/locate
which takes one or more arguments. For each argument it prints to stdout
7
Find system files and place files in the correct location
Syntax: which –options program-name
Ex:
Locating Files
whereis locates source/binary and manuals sections for specified files.
8
Find system files and place files in the correct location
Options:
-b Searches for binaries.
-m Searches for manual entries.
-s Searches for sources.
-u Searches for unusual entries that don’t have one entry for each type.
-B Changes where whereis searches for binaries.
-M Changes where whereis searches for manual sections.
-S Changes where whereis searches for source code.
# whereis ls
ls: /bin/ls /usr/man/man1/ls.1.gz
Ex:
Fim de sessão
9
Fim de sessão
9

More Related Content

PPT
101 2.3 manage shared libraries
PPT
101 4.4 manage disk quotas
PPT
1.2 boot the system v2
PDF
Linux Directory Structure
PPT
Lpi lição 01 exam 101 objectives
PPT
101 4.6 create and change hard and symbolic links
PPT
101 4.1 create partitions and filesystems
PDF
Lesson 3 Working with Files in Linux
101 2.3 manage shared libraries
101 4.4 manage disk quotas
1.2 boot the system v2
Linux Directory Structure
Lpi lição 01 exam 101 objectives
101 4.6 create and change hard and symbolic links
101 4.1 create partitions and filesystems
Lesson 3 Working with Files in Linux

What's hot (20)

PPTX
Files and directories in Linux 6
PDF
Lesson 2 Understanding Linux File System
PDF
Linux course fhs file hierarchy standard
DOCX
The linux file system structure
PDF
File System Hierarchy
PPT
101 1.2 boot the system
PPT
Xfs file system for linux
PPSX
Management file and directory in linux
PPT
101 4.2 maintain the integrity of filesystems
PDF
Linux directory structure by jitu mistry
PDF
linux file system
PPTX
Linux file system
PDF
Part 03 File System Implementation in Linux
PDF
Lesson 1 Linux System Fundamentals
PPTX
Linux Directory System: Introduction
PPT
101 2.1 design hard disk layout
PPTX
Linux standard file system
PPT
PPT
101 2.4 use debian package management
PPT
Unix File System
Files and directories in Linux 6
Lesson 2 Understanding Linux File System
Linux course fhs file hierarchy standard
The linux file system structure
File System Hierarchy
101 1.2 boot the system
Xfs file system for linux
Management file and directory in linux
101 4.2 maintain the integrity of filesystems
Linux directory structure by jitu mistry
linux file system
Linux file system
Part 03 File System Implementation in Linux
Lesson 1 Linux System Fundamentals
Linux Directory System: Introduction
101 2.1 design hard disk layout
Linux standard file system
101 2.4 use debian package management
Unix File System
Ad

Viewers also liked (10)

PPT
Lpi lição 01 exam 102 objectives
PPT
101 1.1 hardware settings
PPT
Apend. networking generic a
PPT
101 1.3 runlevels , shutdown, and reboot
PPT
101 3.5 create, monitor and kill processes
PPTX
Licão 03 vi editor
PDF
Gnu study guide linux admin 1 (lab work lpi 101) v 0.2
PDF
Lpi 101 study_guide
PDF
Lpi Part 1 Linux Fundamentals
PDF
Linux Network Administration (LPI-1,LPI-2)
Lpi lição 01 exam 102 objectives
101 1.1 hardware settings
Apend. networking generic a
101 1.3 runlevels , shutdown, and reboot
101 3.5 create, monitor and kill processes
Licão 03 vi editor
Gnu study guide linux admin 1 (lab work lpi 101) v 0.2
Lpi 101 study_guide
Lpi Part 1 Linux Fundamentals
Linux Network Administration (LPI-1,LPI-2)
Ad

Similar to 101 4.7 find system files and place files in the correct location (20)

PPT
101 4.7 find system files and place files in the correct location
PPT
101 4.7 find system files and place files in the correct location
PPT
4.7 find system files and place files in the correct location
PPT
Unit 7
PPTX
Linux command line tutorial for beginners.pptx
PPT
linux-file-system01.ppt
PPTX
Linux 4 you
PPTX
Linux_command_line_tutorial for begineers.pptx
PPTX
Tahir Ashraf [Linux file system herarchy].pptx
ODP
File system hiearchy
PPTX
Lab 5 Linux File Structure and Hierarchy.pptx
PDF
Linux_Ch2 Lecture (1).pdf
PDF
CIT173_Ch15_Mnstr_23.pdf
PPT
managing-the-linux-file-system_suse_.ppt
PPT
managing-the-linux-file-system________________________
PPTX
DFSNov1.pptx
PPT
Linux: Basics OF Linux
PPT
Basic linux architecture
PDF
File system discovery
PPTX
Introduction to linux2
101 4.7 find system files and place files in the correct location
101 4.7 find system files and place files in the correct location
4.7 find system files and place files in the correct location
Unit 7
Linux command line tutorial for beginners.pptx
linux-file-system01.ppt
Linux 4 you
Linux_command_line_tutorial for begineers.pptx
Tahir Ashraf [Linux file system herarchy].pptx
File system hiearchy
Lab 5 Linux File Structure and Hierarchy.pptx
Linux_Ch2 Lecture (1).pdf
CIT173_Ch15_Mnstr_23.pdf
managing-the-linux-file-system_suse_.ppt
managing-the-linux-file-system________________________
DFSNov1.pptx
Linux: Basics OF Linux
Basic linux architecture
File system discovery
Introduction to linux2

More from Acácio Oliveira (20)

PPTX
Security+ Lesson 01 Topic 24 - Vulnerability Scanning vs Pen Testing.pptx
PPTX
Security+ Lesson 01 Topic 25 - Application Security Controls and Techniques.pptx
PPTX
Security+ Lesson 01 Topic 21 - Types of Application Attacks.pptx
PPTX
Security+ Lesson 01 Topic 19 - Summary of Social Engineering Attacks.pptx
PPTX
Security+ Lesson 01 Topic 23 - Overview of Security Assessment Tools.pptx
PPTX
Security+ Lesson 01 Topic 20 - Summary of Wireless Attacks.pptx
PPTX
Security+ Lesson 01 Topic 22 - Security Enhancement Techniques.pptx
PPTX
Security+ Lesson 01 Topic 15 - Risk Management Best Practices.pptx
PPTX
Security+ Lesson 01 Topic 13 - Physical Security and Environmental Controls.pptx
PPTX
Security+ Lesson 01 Topic 14 - Disaster Recovery Concepts.pptx
PPTX
Security+ Lesson 01 Topic 06 - Wireless Security Considerations.pptx
PPTX
Security+ Lesson 01 Topic 04 - Secure Network Design Elements and Components....
PPTX
Security+ Lesson 01 Topic 02 - Secure Network Administration Concepts.pptx
PPTX
Security+ Lesson 01 Topic 01 - Intro to Network Devices.pptx
PPTX
Security+ Lesson 01 Topic 08 - Integrating Data and Systems with Third Partie...
PPTX
Security+ Lesson 01 Topic 07 - Risk Related Concepts.pptx
PPTX
Security+ Lesson 01 Topic 05 - Common Network Protocols.pptx
PPTX
Security+ Lesson 01 Topic 11 - Incident Response Concepts.pptx
PPTX
Security+ Lesson 01 Topic 12 - Security Related Awareness and Training.pptx
PPTX
Security+ Lesson 01 Topic 17 - Types of Malware.pptx
Security+ Lesson 01 Topic 24 - Vulnerability Scanning vs Pen Testing.pptx
Security+ Lesson 01 Topic 25 - Application Security Controls and Techniques.pptx
Security+ Lesson 01 Topic 21 - Types of Application Attacks.pptx
Security+ Lesson 01 Topic 19 - Summary of Social Engineering Attacks.pptx
Security+ Lesson 01 Topic 23 - Overview of Security Assessment Tools.pptx
Security+ Lesson 01 Topic 20 - Summary of Wireless Attacks.pptx
Security+ Lesson 01 Topic 22 - Security Enhancement Techniques.pptx
Security+ Lesson 01 Topic 15 - Risk Management Best Practices.pptx
Security+ Lesson 01 Topic 13 - Physical Security and Environmental Controls.pptx
Security+ Lesson 01 Topic 14 - Disaster Recovery Concepts.pptx
Security+ Lesson 01 Topic 06 - Wireless Security Considerations.pptx
Security+ Lesson 01 Topic 04 - Secure Network Design Elements and Components....
Security+ Lesson 01 Topic 02 - Secure Network Administration Concepts.pptx
Security+ Lesson 01 Topic 01 - Intro to Network Devices.pptx
Security+ Lesson 01 Topic 08 - Integrating Data and Systems with Third Partie...
Security+ Lesson 01 Topic 07 - Risk Related Concepts.pptx
Security+ Lesson 01 Topic 05 - Common Network Protocols.pptx
Security+ Lesson 01 Topic 11 - Incident Response Concepts.pptx
Security+ Lesson 01 Topic 12 - Security Related Awareness and Training.pptx
Security+ Lesson 01 Topic 17 - Types of Malware.pptx

Recently uploaded (20)

PDF
Approach and Philosophy of On baking technology
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Accuracy of neural networks in brain wave diagnosis of schizophrenia
PPTX
Big Data Technologies - Introduction.pptx
PDF
cuic standard and advanced reporting.pdf
PDF
Network Security Unit 5.pdf for BCA BBA.
PPTX
Group 1 Presentation -Planning and Decision Making .pptx
PPT
Teaching material agriculture food technology
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PPTX
1. Introduction to Computer Programming.pptx
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Empathic Computing: Creating Shared Understanding
PDF
Spectral efficient network and resource selection model in 5G networks
PPTX
A Presentation on Artificial Intelligence
PDF
A comparative analysis of optical character recognition models for extracting...
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPTX
Spectroscopy.pptx food analysis technology
PPTX
SOPHOS-XG Firewall Administrator PPT.pptx
Approach and Philosophy of On baking technology
Programs and apps: productivity, graphics, security and other tools
Accuracy of neural networks in brain wave diagnosis of schizophrenia
Big Data Technologies - Introduction.pptx
cuic standard and advanced reporting.pdf
Network Security Unit 5.pdf for BCA BBA.
Group 1 Presentation -Planning and Decision Making .pptx
Teaching material agriculture food technology
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
1. Introduction to Computer Programming.pptx
Digital-Transformation-Roadmap-for-Companies.pptx
Empathic Computing: Creating Shared Understanding
Spectral efficient network and resource selection model in 5G networks
A Presentation on Artificial Intelligence
A comparative analysis of optical character recognition models for extracting...
Advanced methodologies resolving dimensionality complications for autism neur...
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Spectroscopy.pptx food analysis technology
SOPHOS-XG Firewall Administrator PPT.pptx

101 4.7 find system files and place files in the correct location

  • 1. Junior Level Linux Certification
  • 2. Exam Objectives Key Knowledge Areas Understand the correct locations of files under the FHS. Find files and commands on a Linux system. Know the location and purpose of important file and directories as defined in the FHS. Objective 4: Devices, Linux Filesystems, Filesystem Hierarchy Standard Find system files and place files in the correct location Weight: 2 Terms and Utilities find locate updatedb whereis which type /etc/updatedb.conf 2
  • 3. File system Hierarchy Standard 3 Directories required in / by the Filesystem Hierarchy Standard Set of requirements and guidelines for file and directory placement under UNIX-like operating systems. Directory Description bin Essential command binaries boot Static files of the boot loader dev Device files etc Host-specific system configuration lib Essential shared libraries and kernel modules media Mount point for removable media mnt Mount point for mounting a filesystem temporarily opt Add-on application software packages sbin Essential system binaries srv Data for services provided by this system tmp Temporary files usr Secondary hierarchy var Variable data http://www.pathname.com/fhs/ Create partitions and filesystems
  • 4. Filesystem Hierarchy Standard 4 Ex: Create partitions and filesystems
  • 5. Locating Files # find /home/angie –name stuff /home/angie/stuff # find /home/angie –user root /home/angie/morestuff find utility is used to search for files. 5 Find system files and place files in the correct location Syntax: find /path expression Ex: Options: -atime Searches based on the number of days since last accessed. -ctime Searches based on the number of days since directory entry last changed. -group Searches for files belonging to the specified group. -newer Searches for files more recent than the specified file. -name Searches for files with names matching the specified string. -user Searches for files belonging to the specified user.
  • 6. Locating Files locate provides a secure way to index and quickly search for files on your system. Uses slocate database, by default, to find file locations. Db is updated with cmd updatedb 6 Find system files and place files in the correct location Syntax: locate –options arguments Options: -u Start at / when creating the slocate database. -U /PATH Start at the specified path when creating the slocate database. -e DIR Exclude the specified directories when creating the slocate database. -c Parses the /etc/updatedb.conf file when creating the database. -i Searches without regard to case. -o FILE Specifies the output file to create. -d PATH Specifies the path of databases to search. The database is located in: /etc/updatedb.conf
  • 7. Locating Files # which locate /usr/bin/locate which takes one or more arguments. For each argument it prints to stdout 7 Find system files and place files in the correct location Syntax: which –options program-name Ex:
  • 8. Locating Files whereis locates source/binary and manuals sections for specified files. 8 Find system files and place files in the correct location Options: -b Searches for binaries. -m Searches for manual entries. -s Searches for sources. -u Searches for unusual entries that don’t have one entry for each type. -B Changes where whereis searches for binaries. -M Changes where whereis searches for manual sections. -S Changes where whereis searches for source code. # whereis ls ls: /bin/ls /usr/man/man1/ls.1.gz Ex: