ls [OPTION]... [FILE]...
ディレクトリ内のコンテンツを一覧表示する。
[root@localhost sysconfig]# ls atd i18n libvirt-guests raid-check sysstat auditd init modules readahead sysstat.ioconf authconfig ip6tables netconsole readonly-root system-config-firewall autofs ip6tables-config network rngd system-config-firewall.old cbq ip6tables.old network-scripts rsyslog system-config-users clock iptables networking samba udev console iptables-config nfs sandbox vncservers cpuspeed iptables.old nspluginwrapper saslauthd wpa_supplicant crond irqbalance ntpd selinux xinetd dovecot kdump ntpdate selinux.org firstboot kernel openct sendmail grub keyboard prelink smartmontools httpd ldap quota_nld sshd [root@localhost sysconfig]#
| -a | .から始まるファイルを含めて表示する。 |
| -d | ディレクトリを表示する。 |
| -F | ディレクトリやファイルに種類別に目印を付与する。 |
| -h | -lオプションと併用。サイズに単位を付与して表示する。 |
| -l | 詳細に表示する。 |
| -S | ファイルサイズで並び替えて表示する。 |
| -t | 変更時間で並び替えて表示する。 |
| -1 | 1行に1ファイルを表示する。 |