LS(1)			UNIX ¥³¥Þ¥ó¥É		LS(1)

¡ÎÌ¾Á°¡Ï
ls - ¥Ç¥£¥ì¥¯¥È¥ê¤ÎÆâÍÆ¤Î°ìÍ÷É½¼¨

¡Î·Á¼°¡Ï
ls [ -acdfgilqrstu1ACLFR ] [name ...]

¡Îµ¡Ç½ÀâÌÀ¡Ï
°ú¿ô¤Ë¥Ç¥£¥ì¥¯¥È¥ê¤ò»ØÄê¤¹¤ë¤È¡¢ls ¤Ï¤½¤Î¥Ç¥£¥ì¥¯¥È¥ê¤ÎÆâÍÆ¤ò°ìÍ÷É½¼¨¤·¤Þ¤¹¡£°ú¿ô¤Ë¥Õ¥¡¥¤¥ë¤ò»ØÄê¤¹¤ë¤È¡¢ls ¤Ï¤½¤Î¥Õ¥¡¥¤¥ëÌ¾¤ª¤è¤Ó¤½¤ÎÂ¾¤ÎÍ×µá¤µ¤ì¤¿¾ðÊó¤ò·«¤êÊÖ¤·É½¼¨¤·¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢½ÐÎÏ¤Ï¥¢¥ë¥Õ¥¡¥Ù¥Ã¥È½ç¤Ë¤Ê¤ê¤Þ¤¹¡£
°ú¿ô¤¬¤Ê¤¤¾ì¹ç¡¢¥«¥ì¥ó¥È¥Ç¥£¥ì¥¯¥È¥ê¤ÎÆâÍÆ¤ò°ìÍ÷É½¼¨¤·¤Þ¤¹¡£°ú¿ô¤òÊ£¿ô¸Ä»ØÄê¤·¤¿¾ì¹ç¡¢°ú¿ô¤ÏºÇ½é¤ËÅ¬Åö¤Ê½çÈÖ¤Ë¥½¡¼¥È¤µ¤ì¤Þ¤¹¤¬¡¢¥Õ¥¡¥¤¥ë°ú¿ô¤Î½èÍý¤Ï¡¢¥Ç¥£¥ì¥¯¥È¥ê¤ª¤è¤Ó¤½¤ÎÆâÍÆ¤Î½èÍý¤ÎÁ°¤Ë¼Â¹Ô¤µ¤ì¤Þ¤¹¡£

¡ÎÆüËÜ¸ìµ¡Ç½¡Ï
°ú¿ô¤Î¥Õ¥¡¥¤¥ëÌ¾¤ª¤è¤Ó¥Ç¥£¥ì¥¯¥È¥êÌ¾¤Ë¡¢EUCÊ¸»ú¤ò»ÈÍÑ¤Ç¤­¤Þ¤¹¡£

¡Î¥ª¥×¥·¥ç¥ó¡Ï
¼¡¤Î¤è¤¦¤ÊÂ¿¤¯¤Î¥ª¥×¥·¥ç¥ó¤¬¤¢¤ê¤Þ¤¹¡£

-l   
¾éÄ¹¤Ê·Á¼°(long format)¤Ç¡¢³Æ¥Õ¥¡¥¤¥ë¾ðÊó¤ò°ìÍ÷É½¼¨¤·¤Þ¤¹¡£¾éÄ¹¤Ê·Á¼°¤Ï¡¢Í¿¤¨¤é¤ì¤Æ¤¤¤ë¥â¡¼¥É¡¢¥ê¥ó¥¯¿ô¡¢¥ª¡¼¥Ê¡¼¡¢¥Ð¥¤¥È¿ô¡¢ºÇ½ª½¤Àµ»þ¹ï¤«¤é¹½À®¤µ¤ì¤Þ¤¹¡£¥Õ¥¡¥¤¥ë¤¬ÆÃ¼ì¥Õ¥¡¥¤¥ë¤Î¾ì¹ç¤Ï¡¢¥µ¥¤¥º¥Õ¥£¡¼¥ë¥É¤ÎÂå¤ï¤ê¤Ë¡¢¥á¥¸¥ã¡¼¡¦¥Ç¥Ð¥¤¥¹ÈÖ¹æ¤ª¤è¤Ó¥Þ¥¤¥Ê¡¼¡¦¥Ç¥Ð¥¤¥¹ÈÖ¹æ¤¬Æþ¤ê¤Þ¤¹¡£¥Õ¥¡¥¤¥ë¤¬¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯¤Î¾ì¹ç¤Ï¡¢¥ê¥ó¥¯¤â¤È¤Î¥Õ¥¡¥¤¥ë¤Î¥Ñ¥¹Ì¾¤¬¡¢ ``->'' ¤Î¸å¤ËÉ½¼¨¤µ¤ì¤Þ¤¹¡£

-g   
¾éÄ¹¤Ê·Á¼°¤Î½ÐÎÏ¥Õ¥£¡¼¥ë¥É¤Ë¡¢¥Õ¥¡¥¤¥ë¤Î½êÍ­¼Ô¤Î¥°¥ë¡¼¥×Ì¾(groupownership)¤òÄÉ²Ã¤·¤Þ¤¹¡£

-t   
¥Õ¥¡¥¤¥ëÌ¾¤ÎÂå¤ï¤ê¤Ë¡¢½¤Àµ»þ¹ï(time modified)¤Î¿·¤·¤¤½ç¤Ë¥½¡¼¥È¤·¤Þ¤¹¡£

-a   
¤¹¤Ù¤Æ¤Î¥¨¥ó¥È¥ê(all entries)¤ò°ìÍ÷É½»ú¤·¤Þ¤¹¡£
¤³¤Î¥ª¥×¥·¥ç¥ó¤ò»ØÄê¤·¤Ê¤¤¤È¡¢¥Ô¥ê¥ª¥É (.) ¤Ç»Ï¤Þ¤ë¥¨¥ó¥È¥ê¤ÏÉ½¼¨¤µ¤ì¤Þ¤»¤ó¡£

-A   
¤¹¤Ù¤Æ¤Î¥¨¥ó¥È¥ê(all entries)¤ò°ìÍ÷É½»ú¤·¤Þ¤¹¡£¤¿¤À¤·¡¢¥«¥ì¥ó¥È¥Ç¥£¥ì¥¯¥È¥ê (.) ¤È¿Æ¥Ç¥£¥ì¥¯¥È¥ê (..) ¤Ï¡¢É½¼¨¤µ¤ì¤Þ¤»¤ó¡£

-s   
³Æ¥Õ¥¡¥¤¥ë¤Î¥µ¥¤¥º(size)¤ò¡¢¥­¥í¥Ð¥¤¥ÈÃ±°Ì¤ÇÍ¿¤¨¤Þ¤¹¡£

-d   
°ú¿ô¤¬¥Ç¥£¥ì¥¯¥È¥ê¤Î¾ì¹ç¡¢(¥Ç¥£¥ì¥¯¥È¥ê¤ÎÆâÍÆ¤Ç¤Ï¤Ê¤¯)¥Ç¥£¥ì¥¯¥È¥êÌ¾¤Î¤ß¤ò°ìÍ÷É½¼¨¤·¤Þ¤¹¡£
¥Ç¥£¥ì¥¯¥È¥ê¤Î¾õÂÖ¤òÄ´¤Ù¤ë¤¿¤á¤Ë¡¢-l ¥ª¥×¥·¥ç¥ó¤È¶¦¤ËÍÑ¤¤¤é¤ì¤ë¤³¤È¤¬¤è¤¯¤¢¤ê¤Þ¤¹¡£

-L   
°ú¿ô¤¬¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯¤Î¾ì¹ç¡¢¥ê¥ó¥¯¤½¤Î¤â¤Î¤Ç¤Ï¤Ê¤¯¥ê¥ó¥¯¤Î»²¾È¤¹¤ë¥Õ¥¡¥¤¥ë¤ä¥Ç¥£¥ì¥¯¥È¥ê¤ò°ìÍ÷É½¼¨¤·¤Þ¤¹¡£
¥ê¥ó¥¯¤¬¥Ç¥£¥ì¥¯¥È¥ê¤ò»²¾È¤·¤Æ¤¤¤ë¾ì¹ç¡¢-l ¥ª¥×¥·¥ç¥ó¤ò»ÈÍÑ¤·¤Ê¤¤¤«¤®¤ê¡¢¥ê¥ó¥¯¤Ï¾ï¤ËºÇ¸å¤Þ¤ÇÄÉÀ×¤µ¤ì¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£

-r   
¥½¡¼¥È¤Î½çÈÖ¤òµÕ¤Ë¤·¤Þ¤¹¡£¥¢¥ë¥Õ¥¡¥Ù¥Ã¥È¤ÎµÕ¤Î½çÈÖ¤ä¡¢»þ´Ö¤Î¸Å¤¤½çÈÖ¤Ë¥½¡¼¥È¤·¤¿¤¤¤È¤­¤ËÍÑ¤¤¤Þ¤¹¡£

-u   
ºÇ½ª½¤Àµ»þ¹ï¤ÎÂå¤ï¤ê¤ËºÇ½ª¥¢¥¯¥»¥¹»þ¹ï¤ò»ÈÍÑ¤·¤Æ¡¢(-t ¥ª¥×¥·¥ç¥ó¤È¶¦ÍÑ¤¹¤ë¤È¤­¤Ï)¥½¡¼¥È¡¢(-l ¥ª¥×¥·¥ç¥ó¤È¶¦ÍÑ¤¹¤ë¤È¤­¤Ï)É½¼¨¤ò¹Ô¤¤¤Þ¤¹¡£

-c   
ºÇ½ªinodeÊÑ¹¹»þ¹ï¤ò»ÈÍÑ¤·¤Æ¡¢(-t ¥ª¥×¥·¥ç¥ó¤È¶¦ÍÑ¤¹¤ë¤È¤­¤Ï)¥½¡¼¥È¡¢(-l ¥ª¥×¥·¥ç¥ó¤È¶¦ÍÑ¤¹¤ë¤È¤­¤Ï)É½¼¨¤ò¹Ô¤¤¤Þ¤¹¡£

-i   
³Æ¥Õ¥¡¥¤¥ë¤ËÂÐ¤·¡¢É½¤ÎºÇ½é¤ÎÍó¤Ë i ¥Î¡¼¥ÉÈÖ¹æ¤òÉ½¼¨¤·¤Þ¤¹¡£

-f   
³Æ°ú¿ô¤ò¥Ç¥£¥ì¥¯¥È¥ê¤È²ò¼á¤¹¤ë¤è¤¦¤Ë¶¯À©¤·¡¢¤½¤ì¤¾¤ì¤Î¾ì½ê¤ÇÆÀ¤é¤ì¤ëÌ¾Á°¤ò°ìÍ÷É½¼¨¤·¤Þ¤¹¡£¤³¤Î¥ª¥×¥·¥ç¥ó¤ò»ÈÍÑ¤¹¤ë¤È¡¢-l, -t, -s, -r,¤¬Ìµ¸ú¤Ë¤Ê¤ê¡¢-a ¤¬Í­¸ú¤Ë¤Ê¤ê¤Þ¤¹¡£É½¼¨¤¹¤ë½çÈÖ¤Ï¡¢¥Ç¥£¥ì¥¯¥È¥êÃæ¤Ë¸½¤ì¤ë¥¨¥ó¥È¥ê¤Î½çÈÖ¤Ë¤Ê¤ê¤Þ¤¹¡£ 

-F   
¥Ç¥£¥ì¥¯¥È¥ê¤ÎËöÈø¤Ë `/' ¤ò¡¢¥½¥±¥Ã¥È¤ÎËöÈø¤Ë `=' ¤òÉÕ¤±¡¢¼Â¹Ô²ÄÇ½¥Õ¥¡¥¤¥ë¤ÎËöÈø¤Ë `*' ¤ò¡¢¥Õ¥¡¥¤¥ë¤Ø¤Î¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯¤ÎËöÈø¤Ë `@' ¤òÉÕ¤±¤Þ¤¹¡£
¥Ç¥£¥ì¥¯¥È¥ê¤Ø¤Î¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯¤Ë¤Ï¡¢ -l ¥ª¥×¥·¥ç¥ó¤òÊ»ÍÑ¤·¤Æ¤¤¤Ê¤¤¤È¤­¤Ë¸Â¤ê¡¢ËöÈø¤Ë `/' ¤òÉÕ¤±¤Þ¤¹¡£ 

-R   
¥µ¥Ö¥Ç¥£¥ì¥¯¥È¥ê¤òºÆµ¢Åª¤Ë°ìÍ÷É½¼¨¤·¤Þ¤¹¡£

-1   
½ÐÎÏ·Á¼°¤ò°ì¹Ô¤Ë°ì¤Ä¤Î¥¨¥ó¥È¥ê¤Ë¶¯À©¤·¤Þ¤¹¡£½ÐÎÏ¤¬Ã¼Ëö¤Ç¤Ê¤¤¤È¤­¤Ë¤Ï¡¢¤³¤ì¤¬¥Ç¥Õ¥©¥ë¥È¤Ë¤Ê¤ê¤Þ¤¹¡£

-C   
½ÐÎÏ·Á¼°¤ò¥Þ¥ë¥Á¥«¥é¥à¤Ë¶¯À©¤·¤Þ¤¹¡£½ÐÎÏ¤¬Ã¼Ëö¤Î¤È¤­¤Ë¤Ï¡¢¤³¤ì¤¬¥Ç¥Õ¥©¥ë¥È¤Ë¤Ê¤ê¤Þ¤¹¡£

-q   
¥Õ¥¡¥¤¥ëÌ¾¤Î°õ»úÉÔÇ½Ê¸»ú¤ò `?' ¤ÇÉ½¼¨¤¹¤ë¤è¤¦¶¯À©¤·¤Þ¤¹¡£½ÐÎÏ¤¬Ã¼Ëö¤Î¤È¤­¤Ë¤Ï¡¢¤³¤ì¤¬¥Ç¥Õ¥©¥ë¥È¤Ë¤Ê¤ê¤Þ¤¹¡£

-l ¥ª¥×¥·¥ç¥ó¤ÇÉ½¼¨¤µ¤ì¤ë¥â¡¼¥É¤Ë¤Ï¡¢¼¡¤Î¤è¤¦¤Ê 11 Ê¸»ú¤¬´Þ¤Þ¤ì¤Þ¤¹¡£ºÇ½é¤Î 1 Ê¸»ú¤Ï¡¢¼¡¤Î¤è¤¦¤Ë²ò¼á¤µ¤ì¤Þ¤¹¡£

d	¤½¤Î¥¨¥ó¥È¥ê¤¬¡¢¥Ç¥£¥ì¥¯¥È¥ê¤Ç¤¢¤ë¤³¤È¤ò¼¨¤¹¡£
b	¤½¤Î¥¨¥ó¥È¥ê¤¬¡¢¥Ö¥í¥Ã¥¯·¿ÆÃ¼ì¥Õ¥¡¥¤¥ë¤Ç¤¢¤ë¤³¤È¤ò¼¨¤¹¡£
c	¤½¤Î¥¨¥ó¥È¥ê¤¬¡¢Ê¸»ú·¿ÆÃ¼ì¥Õ¥¡¥¤¥ë¤Ç¤¢¤ë¤³¤È¤ò¼¨¤¹¡£
l	¤½¤Î¥¨¥ó¥È¥ê¤¬¡¢¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯¤Ç¤¢¤ë¤³¤È¤ò¼¨¤¹¡£
s	¤½¤Î¥¨¥ó¥È¥ê¤¬¡¢¥½¥±¥Ã¥È¤Ç¤¢¤ë¤³¤È¤ò¼¨¤¹¡£
-	¤½¤Î¥¨¥ó¥È¥ê¤¬¡¢ÄÌ¾ï¥Õ¥¡¥¤¥ë¤Ç¤¢¤ë¤³¤È¤ò¼¨¤¹¡£

¼¡¤Î 9 Ê¸»ú¤Ï¡¢¤½¤ì¤¾¤ì 3 ¥Ó¥Ã¥È¤«¤éÀ®¤ë 3 ¤Ä¤Î½¸¹ç¤È²ò¼á¤µ¤ì¤Þ¤¹¡£ºÇ½é¤Î½¸¹ç¤Ï¡¢¥Õ¥¡¥¤¥ë¤Î½êÍ­¼Ô¤Î¥¢¥¯¥»¥¹µö²Ä¤ò¼¨¤·¤Æ¤¤¤Þ¤¹¡£
¼¡¤Î½¸¹ç¤Ï¡¢Æ±¤¸¥æ¡¼¥¶¥°¥ë¡¼¥×Æâ¤Î½êÍ­¼Ô°Ê³°¤Î¿Í¤Î¥¢¥¯¥»¥¹µö²Ä¤ò¡¢ºÇ¸å¤Ï¡¢¤½¤ÎÂ¾¤Î¿Í¤Î¥¢¥¯¥»¥¹µö²Ä¤ò¼¨¤·¤Æ¤¤¤Þ¤¹¡£
³Æ½¸¹çÆâ¤Î 3 ¤Ä¤ÎÊ¸»ú¤Ï¡¢¤½¤ì¤¾¤ìÆÉ¤ß¤È¤êµö²Ä¡¢½ñ¤­¹þ¤ßµö²Ä¡¢¥Õ¥¡¥¤¥ë¤ò¥×¥í¥°¥é¥à¤È¤·¤Æ¼Â¹Ô¤¹¤ëµö²Ä¤ò¼¨¤·¤Æ¤¤¤Þ¤¹¡£¥Ç¥£¥ì¥¯¥È¥ê¤ËÂÐ¤·¤Æ¤Ï¡¢¡Ö¼Â¹Ô¡×µö²Ä¤È¤Ï¡¢¥Ç¥£¥ì¥¯¥È¥ê¤ò¸¡º÷¤¹¤ëµö²Ä¤ò¼¨¤¹¤È²ò¼á¤µ¤ì¤Þ¤¹¡£
¥¢¥¯¥»¥¹µö²Ä¤Ï¼¡¤Î¤è¤¦¤Ë²ò¼á¤µ¤ì¤Þ¤¹¡£

r	¤½¤Î¥Õ¥¡¥¤¥ë¤¬¡¢ÆÉ¤ß¤È¤ê²ÄÇ½¡£
w	¤½¤Î¥Õ¥¡¥¤¥ë¤¬¡¢½ñ¤­¹þ¤ß²ÄÇ½¡£
x	¤½¤Î¥Õ¥¡¥¤¥ë¤¬¡¢¼Â¹Ô²ÄÇ½¡£
-	¤½¤Î¾ì½ê¤¬¼¨¤¹¥¢¥¯¥»¥¹µö²Ä¤¬¡¢Ç§¤á¤é¤ì¤Ê¤¤¾ì¹ç¡£

¥Õ¥¡¥¤¥ë¤¬¥»¥Ã¥È¡¦¥°¥ë¡¼¥× id ¥Ó¥Ã¥È¤ò¥»¥Ã¥È¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¡¢¥°¥ë¡¼¥×¼Â¹Ôµö²Ä¤ÎÊ¸»ú¤Ï¡¢ s ¤ÇÍ¿¤¨¤é¤ì¤Þ¤¹¡£Æ±ÍÍ¤Ë¡¢¥Õ¥¡¥¤¥ë¤¬¥»¥Ã¥È¡¦¥æ¡¼¥¶ id ¥Ó¥Ã¥È¤ò¥»¥Ã¥È¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¡¢¥æ¡¼¥¶¼Â¹Ôµö²Ä¤ÎÊ¸»ú¤Ï¡¢ s ¤ÇÍ¿¤¨¤é¤ì¤Þ¤¹¡£

¥â¡¼¥É¤ÎºÇ¸å¤ÎÊ¸»ú (ÄÌ¾ï `x' ¤Þ¤¿¤Ï `-') ¤Ï¡¢ ¥â¡¼¥É¤Î 1000 ¥Ó¥Ã¥È¤¬¥ª¥ó¤Î¾ì¹ç¡¢ t ¤Ë¤Ê¤ê¤Þ¤¹¡£¤³¤Î¥â¡¼¥É¤Î°ÕÌ£¤Ë¤Ä¤¤¤Æ¤Ï¡¢chmod(1) ¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£

¥Ç¥£¥ì¥¯¥È¥êÃæ¤Î¥Õ¥¡¥¤¥ë¤Î¥µ¥¤¥º¤ò°ìÍ÷É½¼¨¤¹¤ë¾ì¹ç¡¢¥Ö¥í¥Ã¥¯¤ÎÁí¿ô¤Ï¡¢´ÖÀÜ¥Ö¥í¥Ã¥¯¤â´Þ¤á¤Æ¡¢É½¼¨¤µ¤ì¤Þ¤¹¡£

¡Î´ØÏ¢¹àÌÜ¡Ï
chmod(1), netinfo(5)
3.3J ¥ê¥ê¡¼¥¹¥Î¡¼¥È UNIX ¥³¥Þ¥ó¥É ¥é¥¤¥Ö¥é¥ê

¡ÎÃí°Õ»ö¹à¡Ï
¥Õ¥¡¥¤¥ëÌ¾Ãæ¤Î²þ¹ÔÊ¸»ú¤È¥¿¥Ö¤Ï¡¢°õ»ú²ÄÇ½Ê¸»ú¤È¤ß¤Ê¤µ¤ì¤Æ¤¤¤Þ¤¹¡£

½ÐÎÏ¥Ç¥Ð¥¤¥¹¤Ï¡¢ 80 ¥«¥é¥àÉý¤ò»ý¤Ä¤È²¾Äê¤µ¤ì¤Æ¤¤¤Þ¤¹¡£

½ÐÎÏ¤¬¥Æ¥ì¥¿¥¤¥×¤«¤É¤¦¤«¤Ë¤â¤È¤Å¤¯¥ª¥×¥·¥ç¥ó¤ÎÀßÄê¤Ï¡¢Ë¾¤Þ¤·¤¯¤¢¤ê¤Þ¤»¤ó¡£¤¿¤È¤¨¤Ð¡¢``ls -s'' ¤È ``ls -s | lpr'' ¤È¤Ï¤«¤Ê¤ê°Û¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£°ìÊý¡¢¤³¤ÎÀßÄê¤ò¤·¤Ê¤¤¤È¡¢ls ¤òÍÑ¤¤¤ë¸Å¤¤¥·¥§¥ë¥¹¥¯¥ê¥×¥È¤Ï¤Û¤Ü³Î¼Â¤Ë°Û¾ï¤ÊÆ°ºî¤ò¤ª¤³¤Ê¤¦¤³¤È¤Ë¤Ê¤ë¤Ç¤·¤ç¤¦¡£