LoginSignup
0
2

More than 5 years have passed since last update.

ls コマンド

Posted at

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

0
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
2