Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationEventAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
2
Help us understand the problem. What are the problem?

More than 3 years have passed since last update.

posted at

ls コマンド

ls

この記事は Linux コマンド 全部オレ Advent Calendar 2017 の1日目の記事です。

man

NAME
       ls - list directory contents

SYNOPSIS
       ls [OPTION]... [FILE]...

DESCRIPTION
       List information about the FILEs (the current directory by default).  Sort entries alphabetically if none of -cftuvSUX nor --sort is specified.

       Mandatory arguments to long options are mandatory for short options too.

list の略。

知っとくとよさそうなこと

終了ステータス

   Exit status:
       0      if OK,

       1      if minor problems (e.g., cannot access subdirectory),

       2      if serious trouble (e.g., cannot access command-line argument).

アクセスできないディレクトリとかがあると、エラー値を返す。

i ノード

-i オプションで i ノード番号を表示できる。

       -i, --inode
              print the index number of each file

i ノードとは、ファイル(やディレクトリ)の管理情報のようなもの。
http://kazmax.zpp.jp/linux_beginner/inode.html

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
2
Help us understand the problem. What are the problem?