プロジェクト in Linux Skill Tree

特定のファイルを検索する

初級

このプロジェクトでは、/etc ディレクトリ内のコンテンツに文字列 'labex' が含まれるファイルを検索し、出力を特定の形式で整理する方法を学びます。

ShellLinux

💡 このチュートリアルは英語版からAIによって翻訳されています。原文を確認するには、 ここをクリックしてください

はじめに

このプロジェクトでは、/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.