We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
stat : 지정된 파일에 대한 정보를 알려준다.
lstat : stat와 비슷하나 symbolic link에 대한 정보를 돌려준다. symbolic link가 가리키는 파일이 아니라, symbolic link 자체에 대한 정보이다.
example 4.3을 실행 하면 다음과 같다.
$ :~/apue.3e$ ./4.3.out /etc/passwd /etc/ /dev/cdrom /etc/passwd: [stat]regular [lstat]regular /etc/: [stat]directory [lstat]directory /dev/cdrom: [stat]block special [lstat]symbolic link
/dev/cdrom 같은 경우 stat 결과는 block special로 표시 하며, lstat를 이용해야 symbolic link를 확인 가능하다.
There was an error while loading. Please reload this page.