■lsコマンドを使用する。
# ls -i1
655120 8-07-07_MegaCLI.zip
655141 VMwareTools-9.0.0-782409.tar.gz
655139 anaconda-ks.cfg
667094 fluent-plugin-filter-parse-postfix
657187 git
657178 id_rsa
657180 id_rsa.pub
657232 inode-test.txt
651523 install.log
651525 install.log.syslog
657226 post_ip.sh
657183 test.html
657228 test1.txt
655142 vmware-tools-distrib
■statコマンドを使用する。
# stat test1.txt
File: `test1.txt'
Size: 2 Blocks: 8 IO Block: 4096 通常ファイル
Device: fd00h/64768d Inode: 657228 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2016-12-25 20:08:33.690980986 +0900
Modify: 2016-12-25 20:24:08.847977143 +0900
Change: 2016-12-25 20:24:08.847977143 +0900
# df -hi
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/mapper/vg_labrp01-lv_root
891K 67K 825K 8% /
tmpfs 125K 1 125K 1% /dev/shm
/dev/sda1 126K 38 125K 1% /boot
/dev/sdb1 320K 11 320K 1% /mnt
echo "==== `pwd` ====" ; for i in `ls -1`;do echo -n "## $i ### " ; echo "(`find ./$i -type f |wc -l`)" ;done | sort -r
==== /var ====
## yp ### (0)
## www ### (305)
## tmp ### (0)
## spool ### (14)
## run ### (11)
## preserve ### (0)
## opt ### (0)
## nis ### (0)
## mail ### (0)
## log ### (56)
## lock ### (16)
## local ### (0)
## lib ### (2923)
## games ### (0)
## empty ### (0)
## db ### (0)
## cvs ### (0)
## cache ### (33)
Copyright © 2021 たぐたぐ.com. All rights reserved.