Introduction
In this project, you will learn how to search for files in the /etc
directory that contain the string "labex" in their content, and organize the output in a specific format.
ð Preview
/etc/group
/etc/gshadow
/etc/passwd
/etc/security/limits.conf
/etc/shadow
/etc/subgid
/etc/subuid
/etc/supervisor/conf.d/vnc.conf
/etc/supervisor/conf.d/webide.conf
/etc/supervisor/conf.d/ttyd.conf
/etc/supervisor/supervisord.conf
/etc/shiyanlou/sbin/init.sh
/etc/shiyanlou/services/ttyd.conf
/etc/shiyanlou/services/vncserver.conf
/etc/shiyanlou/services/webide.conf
/etc/group-
/etc/gshadow-
/etc/passwd-
/etc/shadow-
/etc/sudoers.d/labex
/etc/labex_source/init.sh
/etc/labex_source/novnc/dist/main.bundle.js
/etc/labex_source/supervisord.conf
/etc/labex_source/tmux.conf
/etc/labex_source/ttyd.conf
/etc/labex_source/vnc.conf
/etc/labex_source/webide.conf
ðŊ Tasks
In this project, you will learn:
- How to use the
grep
command to search for a specific string in files
- How to remove duplicate entries from the search output
- How to organize the output in a clean and readable format
ð Achievements
After completing this project, you will be able to:
- Efficiently search for files based on their content
- Manipulate and organize the search output
- Apply these skills to various file search and organization tasks
Skills Graph
%%%%{init: {'theme':'neutral'}}%%%%
flowchart RL
linux(("`Linux`")) -.-> linux/BasicFileOperationsGroup(["`Basic File Operations`"])
linux(("`Linux`")) -.-> linux/InputandOutputRedirectionGroup(["`Input and Output Redirection`"])
linux(("`Linux`")) -.-> linux/TextProcessingGroup(["`Text Processing`"])
linux(("`Linux`")) -.-> linux/UserandGroupManagementGroup(["`User and Group Management`"])
shell(("`Shell`")) -.-> shell/BasicSyntaxandStructureGroup(["`Basic Syntax and Structure`"])
shell(("`Shell`")) -.-> shell/AdvancedScriptingConceptsGroup(["`Advanced Scripting Concepts`"])
linux/BasicFileOperationsGroup -.-> linux/cat("`File Concatenating`")
linux/InputandOutputRedirectionGroup -.-> linux/redirect("`I/O Redirecting`")
linux/TextProcessingGroup -.-> linux/grep("`Pattern Searching`")
linux/UserandGroupManagementGroup -.-> linux/passwd("`Password Changing`")
linux/UserandGroupManagementGroup -.-> linux/sudo("`Privilege Granting`")
shell/BasicSyntaxandStructureGroup -.-> shell/quoting("`Quoting Mechanisms`")
shell/AdvancedScriptingConceptsGroup -.-> shell/adv_redirection("`Advanced Redirection`")
subgraph Lab Skills
linux/cat -.-> lab-301489{{"`Searching for Specific Files`"}}
linux/redirect -.-> lab-301489{{"`Searching for Specific Files`"}}
linux/grep -.-> lab-301489{{"`Searching for Specific Files`"}}
linux/passwd -.-> lab-301489{{"`Searching for Specific Files`"}}
linux/sudo -.-> lab-301489{{"`Searching for Specific Files`"}}
shell/quoting -.-> lab-301489{{"`Searching for Specific Files`"}}
shell/adv_redirection -.-> lab-301489{{"`Searching for Specific Files`"}}
end