[cs631apue] ls -s

曹勇 ycao18 at stevens.edu
Mon Oct 19 00:25:49 EDT 2015


When I execute ls -s on LINUX-Lab, the blocks value seems incorrect. 
stat command shows blocks should be 37, but ls -s print 19.
What is wrong?


@smurf:~/631/midterm$ stat ls.c
  File: `ls.c'
  Size: 18218     	Blocks: 37         IO Block: 32768  regular file
Device: 1ch/28d	Inode: 12443       Links: 1
Access: (0644/-rw-r--r--)  Uid: (12462/  ycao18)   Gid: (30000/ student)
Access: 2015-10-19 00:16:19.210720356 -0400
Modify: 2015-10-19 00:16:12.217196323 -0400
Change: 2015-10-19 00:16:12.217204089 -0400
 Birth: -
@smurf:~/631/midterm$ ls -s ls.c
19 ls.c
@smurf:~/631/midterm$


More information about the cs631apue mailing list