프로젝트 의 Linux 스킬 트리

특정 파일 검색

초급

이 프로젝트에서는 /etc 디렉토리에서 'labex' 문자열을 포함하는 파일을 검색하고, 결과를 특정 형식으로 정리하는 방법을 배우게 됩니다.

linuxshell

💡 이 튜토리얼은 영어로 번역되었습니다. 원본을 보려면 영어로 전환

소개

이 프로젝트에서는 /etc 디렉토리에서 내용에 문자열 "labex"를 포함하는 파일을 검색하고, 출력을 특정 형식으로 정리하는 방법을 배우게 됩니다.

👀 미리보기

/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

🎯 과제

이 프로젝트에서 다음을 배우게 됩니다:

  • grep 명령어를 사용하여 파일에서 특정 문자열을 검색하는 방법
  • 검색 출력에서 중복 항목을 제거하는 방법
  • 출력을 깔끔하고 읽기 쉬운 형식으로 정리하는 방법

🏆 성과

이 프로젝트를 완료하면 다음을 수행할 수 있습니다:

  • 내용에 따라 파일을 효율적으로 검색
  • 검색 출력을 조작하고 정리
  • 이러한 기술을 다양한 파일 검색 및 정리 작업에 적용

강사

labby
Labby
Labby is the LabEx teacher.