使用するls -l
出力例:
-rwxr-xr-x 1 foo staff 642 Nov 22 2010 getCactiImages.sh
lrwxr-xr-x 1 foo staff 36 Aug 29 15:29 imgopt -> ../Projects/imgopt/imgopt
imgopt
はシンボリックリンクでgetCactiImages.sh
あり、通常のファイルです
使用することもできますstat filename
例:
File: ‘imgopt’ -> ‘../Projects/imgopt/imgopt’
Size: 36 Blocks: 8 IO Block: 4096 symbolic link
Device: 1000005h/16777221d Inode: 7743835 Links: 1
Access: (0755/lrwxr-xr-x) Uid: ( 501/ foo) Gid: ( 20/ staff)
Access: 2012-08-29 15:29:19.000000000 -0700
Modify: 2012-08-29 15:29:19.000000000 -0700
Change: 2012-08-29 15:29:19.000000000 -0700
Birth: 2012-08-29 15:29:19.000000000 -0700