"리눅스 inode 번호 확인"의 두 판 사이의 차이

잔글 (로봇: 자동으로 텍스트 교체 (-<source lang='dos'> +<source lang='cli'>))
2번째 줄: 2번째 줄:


==방법 1: stat==
==방법 1: stat==
<source lang='dos'>
<source lang='cli'>
[root@jmnote ~]# stat /etc/fstab | grep Inode
[root@jmnote ~]# stat /etc/fstab | grep Inode
Device: fc00h/64512d Inode: 6115656    Links: 1
Device: fc00h/64512d Inode: 6115656    Links: 1
</source>
</source>
<source lang='dos'>
<source lang='cli'>
[root@jmnote ~]# stat -c %i /etc/fstab
[root@jmnote ~]# stat -c %i /etc/fstab
6115656
6115656
12번째 줄: 12번째 줄:


==방법 2: ls==
==방법 2: ls==
<source lang='dos'>
<source lang='cli'>
[root@jmnote ~]# ls -i /etc/fstab
[root@jmnote ~]# ls -i /etc/fstab
6115656 /etc/fstab
6115656 /etc/fstab
</source>
</source>
<source lang='dos'>
<source lang='cli'>
[root@jmnote ~]# ls -i /etc/fstab | awk '{print $1}'
[root@jmnote ~]# ls -i /etc/fstab | awk '{print $1}'
6115656
6115656

2015년 2월 6일 (금) 03:40 판

리눅스 inode 번호 확인

1 방법 1: stat

[root@jmnote ~]# stat /etc/fstab | grep Inode
Device: fc00h/64512d	Inode: 6115656     Links: 1
[root@jmnote ~]# stat -c %i /etc/fstab
6115656

2 방법 2: ls

[root@jmnote ~]# ls -i /etc/fstab
6115656 /etc/fstab
[root@jmnote ~]# ls -i /etc/fstab | awk '{print $1}'
6115656

3 같이 보기