かりんソフトウェア工房 Linux

上へ

コマンド

ls

フォーマット

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ファイルを表示する。






copyright (c) かりんソフトウェア工房 Linux All right reserved.