/home/username/documents ls (List) ファイルやディレクトリの一覧を表示します。 $ ls file1.txt file2.txt mydir 便利なオプション: -l : 詳細表示 (パーミッション、所有者、サイズ、更新日時など) $ ls -l total 8 -rw-r--r-- 1 username group 1024 Oct 26 10:00 file1.txt drwxr-xr-x 2 username group 4096 Oct 26 10:05 mydir -a : 隠しファイル(ファイル名が . で始まるもの)も表示 5
is the content of file1. It has multiple lines. less ファイルの内容をページ単位で表示します。長いファイルを見るのに便利です。 $ less long_document.txt 操作方法: スペースキー or f : 次のページへ b : 前のページへ j or ↓ : 1行下へ k or ↑ : 1行上へ /検索語 : 文字列を検索 (n: 次へ, N: 前へ) 9