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

2번째 줄: 2번째 줄:


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



2014년 8월 10일 (일) 22:06 판

리눅스 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 같이 보기

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}