CoreLinuxforRedHatandFedoralearningunderGNUFreeDocumentationLicense-Copyleft(c)AcácioOliveira2012
Everyoneispermittedtocopyanddistributeverbatimcopiesofthislicensedocument,changingisallowed
Linux Essenciais and System Administration
CoreLinuxforRedHatandFedoralearningunderGNUFreeDocumentationLicense-Copyleft(c)AcácioOliveira2012
Everyoneispermittedtocopyanddistributeverbatimcopiesofthislicensedocument,changingisallowed
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.
Devices, Linux Filesystems, Filesystem Hierarchy Standard
Find system files and place files in the correct location
Terms and Utilities
find
locate
updatedb
whereis
which
type
/etc/updatedb.conf
2
CoreLinuxforRedHatandFedoralearningunderGNUFreeDocumentationLicense-Copyleft(c)AcácioOliveira2012
Everyoneispermittedtocopyanddistributeverbatimcopiesofthislicensedocument,changingisallowed
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
CoreLinuxforRedHatandFedoralearningunderGNUFreeDocumentationLicense-Copyleft(c)AcácioOliveira2012
Everyoneispermittedtocopyanddistributeverbatimcopiesofthislicensedocument,changingisallowed
Filesystem Hierarchy Standard
4
Ex:
Create partitions and filesystems
CoreLinuxforRedHatandFedoralearningunderGNUFreeDocumentationLicense-Copyleft(c)AcácioOliveira2012
Everyoneispermittedtocopyanddistributeverbatimcopiesofthislicensedocument,changingisallowed
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.
CoreLinuxforRedHatandFedoralearningunderGNUFreeDocumentationLicense-Copyleft(c)AcácioOliveira2012
Everyoneispermittedtocopyanddistributeverbatimcopiesofthislicensedocument,changingisallowed
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
CoreLinuxforRedHatandFedoralearningunderGNUFreeDocumentationLicense-Copyleft(c)AcácioOliveira2012
Everyoneispermittedtocopyanddistributeverbatimcopiesofthislicensedocument,changingisallowed
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:
CoreLinuxforRedHatandFedoralearningunderGNUFreeDocumentationLicense-Copyleft(c)AcácioOliveira2012
Everyoneispermittedtocopyanddistributeverbatimcopiesofthislicensedocument,changingisallowed
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:
CoreLinuxforRedHatandFedoralearningunderGNUFreeDocumentationLicense-Copyleft(c)AcácioOliveira2012
Everyoneispermittedtocopyanddistributeverbatimcopiesofthislicensedocument,changingisallowed
Fim de sessão
9
CoreLinuxforRedHatandFedoralearningunderGNUFreeDocumentationLicense-Copyleft(c)AcácioOliveira2012
Everyoneispermittedtocopyanddistributeverbatimcopiesofthislicensedocument,changingisallowed
Fim de sessão
9

More Related Content

PPT
4.7 find system files and place files in the correct location
PPT
4.6 create and change hard and symbolic links v2
PPT
101 4.7 find system files and place files in the correct location
PDF
File System Hierarchy
PDF
Linux course fhs file hierarchy standard
PPTX
Linux day 2.ppt
PPTX
Introduction to linux
PPT
1 basic computer operations
4.7 find system files and place files in the correct location
4.6 create and change hard and symbolic links v2
101 4.7 find system files and place files in the correct location
File System Hierarchy
Linux course fhs file hierarchy standard
Linux day 2.ppt
Introduction to linux
1 basic computer operations

What's hot (20)

PPT
Xfs file system for linux
PDF
10 File System
PPTX
File system Os
ODP
File system hiearchy
PDF
Operating System Practice : Meeting 4 - operasi file dan struktur direktori-s...
PPTX
File System Interface
PPT
Unit 7
PPTX
Introduction to linux2
DOCX
File system hierarchy standard
ODP
OpenGurukul : Operating System : Linux
PPT
Unix file systems 2 in unix internal systems
PDF
Course 102: Lecture 2: Unwrapping Linux
PPT
Unix File System
PDF
The unix file system
PDF
Unix files
PDF
Linux Directory Structure
PPTX
Files and directories in Linux 6
PPT
Ch11 file system interface
PDF
Course 102: Lecture 5: File Handling Internals
PPT
Xfs file system for linux
10 File System
File system Os
File system hiearchy
Operating System Practice : Meeting 4 - operasi file dan struktur direktori-s...
File System Interface
Unit 7
Introduction to linux2
File system hierarchy standard
OpenGurukul : Operating System : Linux
Unix file systems 2 in unix internal systems
Course 102: Lecture 2: Unwrapping Linux
Unix File System
The unix file system
Unix files
Linux Directory Structure
Files and directories in Linux 6
Ch11 file system interface
Course 102: Lecture 5: File Handling Internals
Ad

Viewers also liked (7)

PPTX
Presentation on rhce
PPTX
Access control list acl - permissions in linux
PPTX
Introduction to tcp ip linux networking
PPT
Linux commands and file structure
PDF
Linux System Administration Crash Course
PPTX
Linux booting process - Linux System Administration
PDF
tybsc it sem 5 Linux administration notes of unit 1,2,3,4,5,6 version 3
Presentation on rhce
Access control list acl - permissions in linux
Introduction to tcp ip linux networking
Linux commands and file structure
Linux System Administration Crash Course
Linux booting process - Linux System Administration
tybsc it sem 5 Linux administration notes of unit 1,2,3,4,5,6 version 3
Ad

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

PPTX
linuxtl05.pptx
PPT
Basic linux architecture
PDF
RHCSA Discoverability Discoverability .pdf
PPT
4.9 apend troubleshooting tools v2
PPT
101 4.2 maintain the integrity of filesystems
PPT
101 4.2 maintain the integrity of filesystems
PDF
Linux Fundamentals and how to use linux.pdf
PDF
Deployment guide
PPT
101 apend. troubleshooting tools v2
PDF
PPTX
Linux Presentation
PPT
Tutorial 2
PDF
Linux_Commands_MT.pdf
PPT
4.2 maintain the integrity of filesystems
PPT
101 3.8 perform basic file editing operations using vi
PPT
101 3.8 perform basic file editing operations using vi
PDF
Red Hat Training
PPT
101 3.1 gnu and unix commands v4
PPT
101 apend. kernel
PPT
4.1 create partitions and filesystems
linuxtl05.pptx
Basic linux architecture
RHCSA Discoverability Discoverability .pdf
4.9 apend troubleshooting tools v2
101 4.2 maintain the integrity of filesystems
101 4.2 maintain the integrity of filesystems
Linux Fundamentals and how to use linux.pdf
Deployment guide
101 apend. troubleshooting tools v2
Linux Presentation
Tutorial 2
Linux_Commands_MT.pdf
4.2 maintain the integrity of filesystems
101 3.8 perform basic file editing operations using vi
101 3.8 perform basic file editing operations using vi
Red Hat Training
101 3.1 gnu and unix commands v4
101 apend. kernel
4.1 create partitions and filesystems

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
4 layer Arch & Reference Arch of IoT.pdf
PPT
Geologic Time for studying geology for geologist
DOCX
Basics of Cloud Computing - Cloud Ecosystem
DOCX
search engine optimization ppt fir known well about this
PDF
5-Ways-AI-is-Revolutionizing-Telecom-Quality-Engineering.pdf
PDF
Transform-Your-Supply-Chain-with-AI-Driven-Quality-Engineering.pdf
PDF
Convolutional neural network based encoder-decoder for efficient real-time ob...
PPTX
Build Your First AI Agent with UiPath.pptx
PDF
Dell Pro Micro: Speed customer interactions, patient processing, and learning...
PDF
CloudStack 4.21: First Look Webinar slides
PDF
“A New Era of 3D Sensing: Transforming Industries and Creating Opportunities,...
PPT
Galois Field Theory of Risk: A Perspective, Protocol, and Mathematical Backgr...
PDF
Consumable AI The What, Why & How for Small Teams.pdf
PDF
Transform-Quality-Engineering-with-AI-A-60-Day-Blueprint-for-Digital-Success.pdf
PDF
CXOs-Are-you-still-doing-manual-DevOps-in-the-age-of-AI.pdf
PDF
Taming the Chaos: How to Turn Unstructured Data into Decisions
PDF
The influence of sentiment analysis in enhancing early warning system model f...
PDF
STKI Israel Market Study 2025 version august
PDF
Improvisation in detection of pomegranate leaf disease using transfer learni...
PDF
Enhancing plagiarism detection using data pre-processing and machine learning...
4 layer Arch & Reference Arch of IoT.pdf
Geologic Time for studying geology for geologist
Basics of Cloud Computing - Cloud Ecosystem
search engine optimization ppt fir known well about this
5-Ways-AI-is-Revolutionizing-Telecom-Quality-Engineering.pdf
Transform-Your-Supply-Chain-with-AI-Driven-Quality-Engineering.pdf
Convolutional neural network based encoder-decoder for efficient real-time ob...
Build Your First AI Agent with UiPath.pptx
Dell Pro Micro: Speed customer interactions, patient processing, and learning...
CloudStack 4.21: First Look Webinar slides
“A New Era of 3D Sensing: Transforming Industries and Creating Opportunities,...
Galois Field Theory of Risk: A Perspective, Protocol, and Mathematical Backgr...
Consumable AI The What, Why & How for Small Teams.pdf
Transform-Quality-Engineering-with-AI-A-60-Day-Blueprint-for-Digital-Success.pdf
CXOs-Are-you-still-doing-manual-DevOps-in-the-age-of-AI.pdf
Taming the Chaos: How to Turn Unstructured Data into Decisions
The influence of sentiment analysis in enhancing early warning system model f...
STKI Israel Market Study 2025 version august
Improvisation in detection of pomegranate leaf disease using transfer learni...
Enhancing plagiarism detection using data pre-processing and machine learning...

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