SlideShare a Scribd company logo
Junior Level Linux Certification
Exam Objectives
Key Knowledge Areas
Create links.
Identify hard and/or softlinks.
Copying versus linking files.
Use links to support system administration tasks.
Objective 4: Devices, Linux Filesystems, Filesystem Hierarchy Standard
Create and change hard and symbolic links Weight: 2
Terms and Utilities
ln
2
Create and change hard and symbolic links
Disk file format
3
Create and change hard and symbolic links
inodes
4
Create and change hard and symbolic links
inodes
5
Hard link
hard link maintains the same permissions and access times of the original file
both have same inode number - simply appears to have different filename and/or location
6
Create and change hard and symbolic links
•Changes to either the original file or the link affect both.
•The two files have equal importance. But deleting either of files won’t affect the other.
•Hard link files appear to be regular files when examined and they function this way as
well
• Normal users can’t create hard links to directories.
• Also, hard links aren’t allowed to span file systems
To create a hard link, use the ln command
# ln stuff2 /home/angie/stuff
# ls –al
-rw-r--r-- 2 root root 89704 Aug 27 2000 stuff
-rw-r--r-- 2 root root 89704 Aug 27 2000 stuff2
Ex:
Create and change hard and symbolic links
Hard links
7
Symbolic link
Users can create symbolic links to directories, and symbolic links can span file systems.
8
Create and change hard and symbolic links
• Symbolic link maintains permissions separate from those of the original file.
• Deleting the original file won’t remove the symbolic link, but the link wont funtion.
To create a soft link, you use the ln command.
# ln –s stuff /home/angie/stuffEx:
Soft links can be identified by listing the details of a directory’s contents:
# ls –al
lrwxrwxrwx 1 angie angie 7 Mar 10 17:06 stuff -> /fun/stuff
Ex:
Create and change hard and symbolic links
Symbolic links
9
Create and change hard and symbolic links
Symbolic Links to Different File Systems
10
Create and change hard and symbolic links
Multiple Links to One File
11
Fim de sessão
12

More Related Content

PPT
101 2.3 manage shared libraries
PPT
101 4.7 find system files and place files in the correct location
PPT
Lpi lição 01 exam 101 objectives
ODP
intro unix/linux 02
PDF
Linux Directory Structure
PDF
Lesson 3 Working with Files in Linux
PPT
intro unix/linux 07
PPT
Unix/Linux Basic Commands and Shell Script
101 2.3 manage shared libraries
101 4.7 find system files and place files in the correct location
Lpi lição 01 exam 101 objectives
intro unix/linux 02
Linux Directory Structure
Lesson 3 Working with Files in Linux
intro unix/linux 07
Unix/Linux Basic Commands and Shell Script

What's hot (20)

PPT
4.6 create and change hard and symbolic links v2
DOCX
The linux file system structure
PPT
101 2.3 manage shared libraries
PPT
03 browsing the filesystem
PPT
intro unix/linux 09
PPT
2.3 manage shared libraries
PPT
intro unix/linux 11
DOC
Introduction to linux
PDF
Linux commands
PPTX
Unit 7
PDF
10 File System
PDF
Lesson 1 Linux System Fundamentals
PDF
linux file system
PDF
Unix files
PPTX
Linux commands
PPTX
AFS introduction
PDF
Operating system lab manual
PPT
Linux commands and file structure
PPT
Linux fs structure (1)
PDF
Lesson 2 Understanding Linux File System
4.6 create and change hard and symbolic links v2
The linux file system structure
101 2.3 manage shared libraries
03 browsing the filesystem
intro unix/linux 09
2.3 manage shared libraries
intro unix/linux 11
Introduction to linux
Linux commands
Unit 7
10 File System
Lesson 1 Linux System Fundamentals
linux file system
Unix files
Linux commands
AFS introduction
Operating system lab manual
Linux commands and file structure
Linux fs structure (1)
Lesson 2 Understanding Linux File System
Ad

Viewers also liked (11)

PPT
101 1.3 runlevels , shutdown, and reboot
PPT
Lpi lição 01 exam 102 objectives
PPT
Apend. networking generic a
PPT
101 1.1 hardware settings
PPT
101 1.2 boot the system
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)
101 1.3 runlevels , shutdown, and reboot
Lpi lição 01 exam 102 objectives
Apend. networking generic a
101 1.1 hardware settings
101 1.2 boot the system
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.6 create and change hard and symbolic links (20)

PPT
101 4.6 create and change hard and symbolic links v2
PDF
Course 102: Lecture 5: File Handling Internals
PDF
Chip Designer's Code - Linux Terminal Part 3 - File Handling
DOCX
Unix Work
PDF
Mounting and Creating Links - RHCSA (RH124) .pdf
PPTX
Managing files chapter 7
PPTX
Managing files chapter 7
PDF
LinkFixerPlus-Data-Migration-Technical-Brief
PPTX
Acyclic grapch directory 56(2)
PDF
Whitepaper: File Server Migration - Happiest Minds
PDF
File system in operating system e learning
PDF
Google Drive for Libraries
PPTX
Linux day 2.ppt
PPTX
Working with Files _ Directories in Linux(21-25).pptx
PPTX
File System operating system operating system
PDF
LONI_MakeTutorial_Spring2012.pdf
PPT
linux-file-system01.ppt
PPTX
(file systems)12312321321321312312312.pptx
ODP
2nd part
101 4.6 create and change hard and symbolic links v2
Course 102: Lecture 5: File Handling Internals
Chip Designer's Code - Linux Terminal Part 3 - File Handling
Unix Work
Mounting and Creating Links - RHCSA (RH124) .pdf
Managing files chapter 7
Managing files chapter 7
LinkFixerPlus-Data-Migration-Technical-Brief
Acyclic grapch directory 56(2)
Whitepaper: File Server Migration - Happiest Minds
File system in operating system e learning
Google Drive for Libraries
Linux day 2.ppt
Working with Files _ Directories in Linux(21-25).pptx
File System operating system operating system
LONI_MakeTutorial_Spring2012.pdf
linux-file-system01.ppt
(file systems)12312321321321312312312.pptx
2nd part

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)

PPTX
sap open course for s4hana steps from ECC to s4
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Approach and Philosophy of On baking technology
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Empathic Computing: Creating Shared Understanding
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PPTX
Cloud computing and distributed systems.
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
KodekX | Application Modernization Development
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PPTX
Spectroscopy.pptx food analysis technology
PDF
MIND Revenue Release Quarter 2 2025 Press Release
sap open course for s4hana steps from ECC to s4
MYSQL Presentation for SQL database connectivity
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Programs and apps: productivity, graphics, security and other tools
Review of recent advances in non-invasive hemoglobin estimation
Network Security Unit 5.pdf for BCA BBA.
Reach Out and Touch Someone: Haptics and Empathic Computing
Approach and Philosophy of On baking technology
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Chapter 3 Spatial Domain Image Processing.pdf
Empathic Computing: Creating Shared Understanding
Mobile App Security Testing_ A Comprehensive Guide.pdf
20250228 LYD VKU AI Blended-Learning.pptx
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Cloud computing and distributed systems.
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
KodekX | Application Modernization Development
Building Integrated photovoltaic BIPV_UPV.pdf
Spectroscopy.pptx food analysis technology
MIND Revenue Release Quarter 2 2025 Press Release

101 4.6 create and change hard and symbolic links

  • 1. Junior Level Linux Certification
  • 2. Exam Objectives Key Knowledge Areas Create links. Identify hard and/or softlinks. Copying versus linking files. Use links to support system administration tasks. Objective 4: Devices, Linux Filesystems, Filesystem Hierarchy Standard Create and change hard and symbolic links Weight: 2 Terms and Utilities ln 2
  • 3. Create and change hard and symbolic links Disk file format 3
  • 4. Create and change hard and symbolic links inodes 4
  • 5. Create and change hard and symbolic links inodes 5
  • 6. Hard link hard link maintains the same permissions and access times of the original file both have same inode number - simply appears to have different filename and/or location 6 Create and change hard and symbolic links •Changes to either the original file or the link affect both. •The two files have equal importance. But deleting either of files won’t affect the other. •Hard link files appear to be regular files when examined and they function this way as well • Normal users can’t create hard links to directories. • Also, hard links aren’t allowed to span file systems To create a hard link, use the ln command # ln stuff2 /home/angie/stuff # ls –al -rw-r--r-- 2 root root 89704 Aug 27 2000 stuff -rw-r--r-- 2 root root 89704 Aug 27 2000 stuff2 Ex:
  • 7. Create and change hard and symbolic links Hard links 7
  • 8. Symbolic link Users can create symbolic links to directories, and symbolic links can span file systems. 8 Create and change hard and symbolic links • Symbolic link maintains permissions separate from those of the original file. • Deleting the original file won’t remove the symbolic link, but the link wont funtion. To create a soft link, you use the ln command. # ln –s stuff /home/angie/stuffEx: Soft links can be identified by listing the details of a directory’s contents: # ls –al lrwxrwxrwx 1 angie angie 7 Mar 10 17:06 stuff -> /fun/stuff Ex:
  • 9. Create and change hard and symbolic links Symbolic links 9
  • 10. Create and change hard and symbolic links Symbolic Links to Different File Systems 10
  • 11. Create and change hard and symbolic links Multiple Links to One File 11