Questions tagged [stat]

188 questions
6
votes
1 answer

What does 'stat' mean in this sentence?

This sentence is from a Linux command's return,I can only thought it as 'statistics' but it is the noun form rather than the verb form. unable to stat ./config-2.6.32-431.el6.i686: No such file or directory Some files were modified!
1
vote
1 answer

Why ls and stat shows different modified dates?

When I ls a file the last modified date shows as Nov 29 11:13, am but stat shows the file changed at Dec 3rd, why is the date different on ls and stat output. -rw-rr 1 iadm sys 266240 Nov 29 11:13…
Jonu
  • 11
  • 1
  • 2
0
votes
0 answers

Inconsistent st_blocks and st_size values for inaccessible file

I have a small text file (some metadata redacted) -rw-r--r-- 1 **** **** 17198 Sep 29 2019 230999.txt But it can't be viewed % cat 230999.txt cat: 230999.txt: Attribute not found I'm not sure what attribute is missing. It's a simple text file.…
John D.
  • 101
  • 2
0
votes
1 answer

What can f_bsize be used for? (Is it similar to st_blksize?)

stat() on a file, returns several fields including st_blksize. This is documented as "the 'preferred' block size for efficient filesystem I/O". The value is not used as a unit for other stat() fields, or referred to anywhere else in the POSIX…
sourcejedi
  • 50,249
-3
votes
1 answer

List files that are larger than 100 kB

I would like to list all the files in ~ whose size is greater than 100 kB but without using the find command. I need to do it with stat.