ls

LS(1L)                                                                  LS(1L)



åå
       ls, dir, vdir - ãã£ã¬ã¯ããªã®ä¸èº«ããªã¹ã表示ããã

æ¸å¼
       ls [-abcdefgiklmnopqrstuxABCFGLNQRSUX178] [-w cols] [-T cols] [-I
       pattern] [--all] [--escape] [--directory] [--inode] [--kilobytes]
       [--numeric-uid-gid] [--no-group] [--hide-control-chars] [--reverse]
       [--size] [--width=cols] [--tabsize=cols] [--almost-all] [--ignore-
       backups] [--classify] [--file-type] [--full-time] [--ignore=pattern]
       [--dereference] [--literal] [--quote-name] [--recursive]
       [--sort={none,time,size,extension}]
       [--format={long,verbose,commas,across,vertical,single-column}]
       [--time={atime,access,use,ctime,status}] [--color[={yes,no,tty}]]
       [--colour[={yes,no,tty}]] [--7bit] [--8bit] [--help] [--version]
       [name...]

説æ
       ãã®ããã¥ã¢ã«ãã¼ã¸ã¯ GNU ãã¼ã¸ã§ã³ã® ls (è²ä»ã)ã«ã¤ãã¦æ¸ãã¦ããã dir ã¨
       vdir ã¯ããã©ã«ãã®åºåæ¸å¼ã®ç°ãªããã¼ã¸ã§ã³ã® ls ã§ããããããã®ãã‐
       ã°ã©ã ã¯ä¸ãããããã¡ã¤ã«åããã£ã¬ã¯ããªåããªã¹ã表示 ããããã£ã¬ã¯ããªã®ä¸‐
       身ã¯ã¢ã«ãã¡ãããé ã«ã½ã¼ãããã¦ããã ls
       ã¯æ¨æºåºåã端æ«ãªãã°ãããã©ã«ãã§ãã¡ã¤ã«ãåç´æ¹åã«ã½ã¼ãããåã§
       ãªã¹ã表示ããã(æ¨æºåºåã端æ«ã§ãªããã°ãï¼è¡ãã¨ã«ãªã¹ã表示ããã) dir
       ã¯ããã©ã«ãã§ã¯ãã¡ã¤ã«ãåç´æ¹åã«ã½ã¼ãããåã§ãªã¹ã表示ããã vdir
       ã¯ããã©ã«ãã§ã¯ãã¡ã¤ã«ãé·ã表示形å¼ã§ãªã¹ã表示ããã

   ãªãã·ã§ã³
       -a, --all ã§ã¯ãã¾ãå¨ã¦ã®ãã¡ã¤ã«ãå«ãããã£ã¬ã¯ããªåã®
              ãå¨ã¦ã®ãã¡ã¤ã«ããªã¹ã表示ããã

       -b, --escape
              ãã¡ã¤ã«åã«ã¢ã«ãã¡ãããããªã¯ã¿ã«ã®ããã¯ã¹ã©ãã·ã¥ã·ã¼ã±ã³ã¹
              ã使ã£ã¦ãã(c ã§ä½¿ããã¦ããæ§ã«)é表示æåãå¼ç¨ããã

       -c, --time=ctime, --time=status
              ãã¡ã¤ã«ãå¤æ´ããæéã®ãããã«ãã¡ã¤ã«ã®ã¹ãã¼ã¿ã¹ãå¤æ´ããæéã§
              ãã£ã¬ã¯ããªã®å容ãã½ã¼ããããé·ããªã¹ãå½¢å¼ã使ãããã¨ãã¯ã
              ãã¡ã¤ã«ãå¤æ´ããæéã®ãããã«ãã¡ã¤ã«ã®ã¹ãã¼ã¿ã¹ãå¤æ´ãã æéã表示ããã

       -d, --directory
              ãã£ã¬ã¯ããªãããã®ä¸èº«ã表示ããã®ã§ãªããä»ã®ãã¡ã¤ã«ã¨åãããã«
              ãªã¹ã表示ããã

       -e, --full-time
              æéã«é¢ããå¨ã¦ã®æå ±ã(çç¥å½¢ã§ãªã)ãªã¹ã表示ããã

       -f     ãã£ã¬ã¯ããªã®ä¸èº«ãã½ã¼ãããªãã(ãã£ã¹ã¯ã«ããé ã«ãªã¹ã表示ããã) -a
              㨠-U ãæå¹ã«ãã¦ã -l, -o, -s, -t.  ãç¡å¹ã«ããå ´åã¨åãã

       -g     ãã®ãªãã·ã§ã³ã¯ç¡è¦ãããã(Unixã¨ã®äºææ§ã®ããã«ãã)

       -i, --inode
              ãã¡ã¤ã«ã®ã¤ã³ããã¯ã¹çªå·ããã¡ã¤ã«åã®å·¦ã«è¡¨ç¤ºããã

       -k, --kilobytes
              ãã¡ã¤ã«ãµã¤ãºããªã¹ã表示ããã¨ãããããã¤ãåä½ã§è¡¨ç¤ºããã
              ãã®ãªãã·ã§ã³ã¯ç°å¢å¤æ° POSIXLY_CORRECT ããåªåããã

       -l, --format=long, --format=verbose
              ãã¡ã¤ã«åã«å ãã¦ããã¡ã¤ã«ã¿ã¤ãããã¼ããã·ã§ã³ããã¼ããªã³ã¯ã®æ°ã
              ãªã¼ãã¼åãã°ã«ã¼ãåããã¤ããµã¤ãºãã¿ã¤ã ã¹ã¿ã³ã(ä»ã®æéãæå®
              ããªããã°ããã¡ã¤ã«ãå¤æ´ãããæé)ã表示ããããã¡ã¤ã«ã®ã¿ã¤ã
              ã¹ã¿ã³ããï¼ã«æ以ä¸åã¾ãã¯ï¼æé以ä¸åãªå ´åã
              ã¿ã¤ã ã¹ã¿ã³ãã¯æ¥ä»ã¨æå»ã®ãããã«æ¥ä»ã¨å¹´ã表示ããã

       -m, --format=commas
              ãã¡ã¤ã«ãããããã®è¡ã«ã§ããã ãå¤ãè©°ãè¾¼ã¿ãã³ã³ãã§åºåã£ã¦
              横ã«ãªã¹ã表示ããã

       -n, --numeric-uid-gid
              UID 㨠GID ãååã®ãããã«æ°åã§ãªã¹ã表示ããã

       -o, --color, --colour, --color=yes, --colour=yes
              ãã¡ã¤ã«ã¿ã¤ãã«ãã£ã¦ãã¡ã¤ã«åãè²ä»ã§è¡¨ç¤ºããã 詳細ã¯ãã®å¾ã®
              'DISPLAY COLORIZATION' ãåç§ã®ãã¨ã --color ããã¯é£æ³ã§ããªã -o
              ããã°ã«ã§ãããã¨ã«æ³¨æã

       -p     ãã¡ã¤ã«ã¿ã¤ãã示ãæåããã¡ã¤ã«åã«å ããã

       -q, --hide-control-chars
              ãã¡ã¤ã«åä¸ã®é表示æåã®ãããã«ã¯ã¨ã¹ãã§ã³ãã¼ã¯ã使ãã

       -r, --reverse
              ãã£ã¬ã¯ããªã®ä¸èº«ãéé ã«ã½ã¼ãããã

       -s, --size
              ãã¡ã¤ã«åã®å·¦ã«1kãããã¯åä½ã§ãã¡ã¤ã«ãµã¤ãºã表示ãããç°å¢å¤æ°
              POSIXLY_CORRECT ãã»ããããã¦ããã°ãããã«512ãã¤ããããã¯åä½ã使ãããã

       -t, --sort=time
              ãã£ã¬ã¯ããªã®ä¸èº«ãã¢ã«ãã¡ãããé ã§ãªããã¿ã¤ã ã¹ã¿ã³ãã§
              ã½ã¼ããããæãæ°ãããã¡ã¤ã«ãæåã«ããã

       -u, --time=atime, --time=access, --time=use
              ãã£ã¬ã¯ããªã®ä¸èº«ããã¡ã¤ã«ãå¤æ´ãããæéã®ãããã«
              æå¾ã«ãã¡ã¤ã«ã«ã¢ã¯ã»ã¹ããæéã§ã½ã¼ãããã
              é·ããªã¹ãå½¢å¼ã使ãããã¨ãã¯ããã¡ã¤ã«ãå¤æ´ããæéã®ãããã«
              æå¾ã«ãã¡ã¤ã«ã«ã¢ã¯ã»ã¹ããæéã表示ããã

       -x, --format=across, --format=horizontal
              æ°´å¹³æ¹åã«ã½ã¼ããã¦åæ¹åã«ãã¡ã¤ã«ããªã¹ã表示ããã

       -A, --almost-all

       -B, --ignore-backups
              ã³ãã³ãã©ã¤ã³ã§æå®ããå ´åãé¤ãã¦ã'~' ãæå¾ã«ã¤ã
              ãã¡ã¤ã«ããªã¹ã表示ããªãã

       -C, --format=vertical
              åç´æ¹åã«ã½ã¼ããã¦åæ¹åã«ãã¡ã¤ã«ããªã¹ã表示ããã

       -F, --classify
              ãã¡ã¤ã«åã«ãã¡ã¤ã«ã¿ã¤ãã示ãæåãä»ããã å®è¡å¯è½ãã¡ã¤ã«ã§ã¯ '*'
              ãä»ããããã¡ã¤ã«ã¿ã¤ãã示ãæå ã¨ãã¦ã'/' ã¯ãã£ã¬ã¯ããªã '@'
              ã¯ã·ã³ããªã㯠ãªã³ã¯ã '|' 㯠FIFO ã '='
              ã¯ã½ã±ããã表ããæ®éã®ãã¡ã¤ã« ã«ã¯ãªã«ãä»ããªãã

       -G, --no-group
              é·ããã£ã¬ã¯ããªãªã¹ã表示ã§ã°ã«ã¼ãæå ±ã表示ããªãã

       -L, --dereference
              ã·ã³ããªãã¯ãªã³ã¯ã®ä¸èº«ããªã¹ã表示ãããããã«ããªã³ã¯ããã
              ãã¡ã¤ã«ããªã¹ã表示ããã

       -N, --literal
              ãã¡ã¤ã«åãå¼ç¨ããªãã

       -Q, --quote-name
              ãã¡ã¤ã«åãããã«ã¯ã©ã¼ãã¼ã·ã§ã³ã§å²ããCè¨èªã§ã¤ãããããã㪠é表示æå‐
              ãå¼ç¨ããã

       -R, --recursive
              ãã¹ã¦ã®ãã£ã¬ã¯ããªã®ä¸èº«ãå帰çã«ãªã¹ã表示ããã

       -S, --sort=size
              ãã£ã¬ã¯ããªã®ä¸èº«ãã¢ã«ãã¡ãããé ã§ãªããã¡ã¤ã«ãµã¤ãºé ã«ã½ã¼ãããã
              æã大ããªãµã¤ãºã®ãã¡ã¤ã«ãæåã«ããã

       -U, --sort=none
              ãã£ã¬ã¯ããªã®ä¸èº«ãã½ã¼ãããªãã(ãã£ã¹ã¯ã«ããé ã«ãªã¹ã表示ããã)
              ãã®ãªãã·ã§ã³ã¯ -f ã¨ã¯ç°ãªã£ã¦ããã ãªããªã Unix ls ã® -f
              ãªãã·ã§ã³ã¯(-Uã«å ãã¦) -a ãæå¹ã«ãã -l, -s, -t.  ãç¡å¹ã«ããããã§ããã
              ãããã®ç¡é¢ä¿ãªãã®ãï¼ã¤ã®ãªãã·ã§ã³ã«ã¾ã¨ããã®ã¯ä½¿ãã«ãã
              ç¾ãããªãã¨èããããããªããã§éãååãä»ããã®ã§ããã

       -X, --sort=extension
              ãã£ã¬ã¯ããªã®ä¸èº«ããã¡ã¤ã«ã®æ¡å¼µå(æå¾ã® '.' ã®ãã¨ã®æå)ã®
              ã¢ã«ãã¡ãããé ã§ã½ã¼ããããæ¡å¼µåã®ãªããã¡ã¤ã«ãåã«ããã

       -1, --format=single-column
              ï¼è¡ãããï¼ãã¡ã¤ã«ã¥ã¤ãªã¹ã表示ããã

       -7, --7bit
              表示ã§ããªãå¶å¾¡æåãªã©ã® ASCII(ISO 646) æåã»ãã(0x20-0x7E) 以å¤
              ã®ãã¹ã¦ã®æåãæ±ãã

       -8, --8bit
              表示ã§ãã 8ãããISO 8859æåã»ãã(0x20-0x7E,0xA1-0xFF) ã® ãã¹ã¦ã®æå‐
              ãæ±ããããã«ã¯ãµãã»ããã¨ã㦠ASCII ãå«ã¾ããã
              ã³ã³ãã¤ã«æã«ç¡å¹ã«ããå ´åãã®ããã¦ããã®è¨å®ã¯ããã©ã«ãã§ããã

       -w, --width cols
              端æ«ã®å¹ã cols
              åã§ããã¨ãã¦è¡¨ç¤ºãããããã©ã«ãã§ã¯å¯è½ãªãã°ã¿ã¼ããã«ãã©ã¤ã ã§è¨‐
              å®ããããããªããã°ãç°å¢å¤æ° COLUMNS
              ã使ããããããããªããã°ãããã©ã«ãã§ã¯80åã§ããã

       -T, --tabsize cols
              ã¿ãå¹ã cols åã¨ãã¦è¡¨ç¤ºãããããã©ã«ãã§ã¯8ããããã¯ç°å¢å¤æ° TABSIZE
              ã®å¤ã使ããã¿ãå¹ã0ã«ã»ããããã¨ã¾ã£ããã¿ãæåã使ããªãã

       -I, --ignore pattern
              ãã¡ã¤ã«åãã³ãã³ãã©ã¤ã³ããä¸ããããã°ãããã®ãã㦠ã·ã§ã«ã® pattern
              ã«ããããããã¡ã¤ã«ããªã¹ã表示ããªãã ã·ã§ã«ã§ã¯ãåé ã '.' ã®ãã¡ã¤ã«åã¯
              pattern ã®åé ã®ã¯ã¤ã«ãã«ã¼ãã«ãããããªãã

       --color=tty, --colour=tty
              -o ã¨åãã ãæ¨æºåºåã端æ«ã®å ´åã®ã¿æå¹ããã®ãªãã·ã§ã³ã¯
              ã·ã§ã«ã¹ã¯ãªãããã³ãã³ãã®ã¨ãªã¢ã¹ã«ã¨ã¦ã便å©ã«ä½¿ããã
              ããªãã®å¥½ããªãã¼ã¸ã£ã¼ãè²ã®å¶å¾¡ã³ã¼ãããµãã¼ããã¦ããªã
              å ´åã¯ç¹ã«æå¹ã§ããã

       --color=no, --colour=no
              è²ãã¤ããªãããããããã©ã«ãã§ãããæ¢åã®ã«ã©ã¼ãªãã·ã§ã³ãç¡å¹ã« ããããã«ããã

       --help æ¨æºåºåã«ä½¿ãæ¹ã表示ããã

       --version
              æ¨æºåºåã«ãã¼ã¸ã§ã³æå ±ã表示ããã

   DISPLAY COLORIZATION
       -o ã¾ã㯠--color ãªãã·ã§ã³ã使ã£ãæãã®ãã¼ã¸ã§ã³ã® ls
       ã¯ãã¡ã¤ã«åããã¡ã¤ã«ã¿ã¤ãã«ãã£ã¦ãã¡ã¤ã«åãè²ã¤ãã§è¡¨ç¤ºããã
       ããã©ã«ãã§ã¯ãã®è²ã®ä»ãæ¹ã¯ãã¡ã¤ã«ã¿ã¤ãã®ã¿ã«ä¾ã£ã¦ã㦠使ãã³ã¼ãã®ä»æ§ã¯
       ISO 6429 (ANSI) ã§ããã

       ç°å¢å¤æ° LS_COLORS (ã¾ã㯠LS_COLOURS)
       ãæå®ãããã¨ã§ããã©ã«ãã®è²ãç¡å¹ã«ã§ããããã®å¤æ°ã®æ¸å¼ 㯠termcap(5)
       ã«ä¼¼ã¦ããããã®æ¸å¼ã¯æ¸å¼ "xx=string" ãæ¡å¼µãã ã³ãã³ã§åºåããããªã¹ã㧠"xx"
       ã¯ï¼æåã®å¤æ°åã§ããã ç°å¢å¤æ°ã®ããã©ã«ãã¯ï¼

         no        0              Normal (non-filename) text
         fi        0              æ®éã®ãã¡ã¤ã«
         di        32             ãã£ã¬ã¯ããª
         ln        36             ã·ã³ããªãã¯ãªã³ã¯
         pi        31             ååä»ããã¤ã (FIFO)
         so        33             ã½ã±ãã
         bd        44;37          ãããã¯ããã¤ã¹
         cd        44;37          ãã£ã©ã¯ã¿ããã¤ã¹
         ex        35             å®è¡å¯è½ãã¡ã¤ã«
         mi        (none)         Missing file (defaults to fi)
         or        (none)         Orphanned symbolic link (defaults to ln)
         lc        \e[            å·¦ã³ã¼ã
         rc        m              å³ã³ã¼ã
         ec        (none)         çµäºã³ã¼ã (lc+no+rc ã®ä»£ãã)

       ããã©ã«ãããè¨å®ãå¤ãããå¤æ°ã®ã¿è¨å®ããã°ããã

       ã¾ããã¡ã¤ã«åã¯ãã¡ã¤ã«ã®æ¡å¼µåããã¨ã«è²ã¤ããããã¨ãã§ããã ãã㯠LS_COLORS
       å¤æ°ã« "*ext=string" ã¨ããæ¸å¼ã§æå®ããã ä¾ãã° ISO 6429 ã³ã¼ãã使ã£ã¦ããæ
       "*.c=34" ãæå®ãã㨠ãã¹ã¦ã®Cè¨èªã½ã¼ã¹ãã¡ã¤ã«ãéè²ã«ããã ãã㯠.c
       ã§ããããã¹ã¦ã®ãã¡ã¤ã«ãé(34)ã«ããã¨ãããã¨ã§ããã

       å¶å¾¡æåã¯Cè¨èªã®ãã㪠\ (ã¨ã¹ã±ã¼ã)表è¨ã¾ã㯠stty ã®ãã㪠^
       表è¨ã®ããããã§æ¸ãããCè¨èªã®è¡¨è¨æ³ã«å ãã¦ã¨ã¹ã±ã¼ã ã¨ã㦠\e ãã空ç½æå‐
       ã¨ã㦠\_ ããåé¤ã³ã¼ãã¨ã㦠\? ã使ããã ããã« \ ã¨ã¹ã±ã¼ãæå㯠\, ^, :, =,
       ã®ããã©ã«ãã®è§£éã ç¡å¹ã«ããã®ã«ä½¿ãã

       ããããã®ãã¡ã¤ã«ã¯ <lc> <color code> <rc> <filename> <ec> ã¨æ¸ãã <ec>
       ã³ã¼ããæå®ããã¦ããªããã°ãããã« <lc> <no> <rc> ã·ã¼ã±ã³ã¹
       ã使ããããããã¯æ®éã®ãããããã使ããããããä¸è¬çã§ã¯ãªãã
       å³ãå·¦ãçµäºã®ã³ã¼ããç¹°ãè¿ãé¨åãä½åº¦ãã¿ã¤ãããªãã¦ããããã«ãã¾ã
       端æ«ããµãã¼ããããããã«ãããªãããã¦ããã端æ«ã ISO 6429 ã«ã©ã¼
       ã·ã¼ã±ã³ã¹ã使ã£ã¦ããªãã·ã¹ãã ã®å ´åãé¤ãã¦æ®éããããå¤æ´ ããå¿è¦ã¯ãªãã

       端æ«ã ISO 6429 ã«ã©ã¼ã³ã¼ãã使ã£ã¦ããã¨ãã»ãã³ãã³ã§ åºåã£ãæ°å‐
       ã³ãã³ãã§ã¿ã¤ãã³ã¼ã(ã¤ã¾ãlc, rc, ec lc, rc, ec
       ã³ã¼ã以å¤ã®ãã¹ã¦)ãä½ãããå±éã®ã³ãã³ãã®å¤§é¨åã¯ä»¥ä¸ã®ã¨ããã

          0        ããã©ã«ãã®è²ã«æ»ã
          1        for brighter colors
          4        ã¢ã³ãã¼ã©ã¤ã³ãå¼ã
          5        ç¹æ»ããã
         30        é»ã®æåã«ãã
         31        赤ã®æåã«ãã
         32        ç·ã®æåã«ãã
         33        é»è²(ã¾ãã¯è¶è²)ã®æåã«ãã
         34        éã®æåã«ãã
         35        ç´«ã®æåã«ãã
         36        ã·ã¢ã³ã®æåã«ãã
         37        ç½(ã¾ãã¯ç°è²)ã®æåã«ãã
         40        é»ã®èæ¯ã«ãã
         41        赤ã®èæ¯ã«ãã
         42        ç·ã®èæ¯ã«ãã
         43        é»è²(ã¾ãã¯è¶è²)ã®èæ¯ã«ãã
         44        éã®èæ¯ã«ãã
         45        ç´«ã®èæ¯ã«ãã
         46        ã·ã¢ã³ã®èæ¯ã«ãã
         47        ç½(ã¾ãã¯ç°è²)ã®èæ¯ã«ãã

       ãã¹ã¦ã®ã³ãã³ãããã¹ã¦ã®ã·ã¹ãã ã表示è£ç½®ã§æå¹ãªããã§ã¯ãªãã

       ã¿ã¼ããã«ããã°ã©ã ã§ããã©ã«ãã®çµäºã³ã¼ããé©åã«å¦çããªã
       ãã®ãããããã£ã¬ã¯ããªã®ãªã¹ãå¦çãè¡ãªã£ããã¨ãªã¹ãã®
       ãã¹ã¦ã«è²ãã¤ããããªãæå®ããæ¨æºã®æåè²ãèæ¯è²ã«ããããã« no ã fi ã³ã¼ãã0ããæ°å‐
       ã³ã¼ãã«ããã¦ã¿ããã¨ã

ãã°
       BSDã·ã¹ãã ã§ã¯ã -s
       ãªãã·ã§ã³ã使ãã¨HP-UXã·ã¹ãã ããNFSãã¦ã³ãããããã¡ã¤ã«ã¯æ£ç¢º
       ãªãµã¤ãºã®ååã®å¤ã表示ãããHP-UXã·ã¹ãã ã§ã¯BSDã·ã¹ãã ããNFSãã¦ã³ã ãããæ‐
       £ç¢ºãªãµã¤ãºã®åã®å¤ã表示ãããããã¯HP-UXã®æ¬ ç¹ã«ããã ããã¯HP-UXã® ls ãã‐
       ã°ã©ã ã«ãå½±é¿ãåã¼ãã¦ããã

       æåã»ããã®é¸å®ã¯ããã·ã¹ãã ç¬ç«ã§ããã¹ãã§ããã

       ã¿ãã¨ã«ã©ã¼ã³ã¼ãã®çµåããå«ãã·ã¹ãã ããããããªã®ã§è²ã¥ãã æå®ãããå ´å㯠-T
       ãªãã·ã§ã³ããªãéãã«ã©ã ã¹ãã¼ã·ã³ã°ã®ããã®ã¿ãæåã¯ä½¿ããªãã

       è±èªã«ãã ä¸ã¤ããæ¨æºãåå¨ããªãã£ãããä½åãªã¹ãã«ã ãµãã¼ãããå¿è¦ã¯ãªãã®ã«ã



FSF                           GNU File Utilities                        LS(1L)