Questions tagged [stat]
The stat tag has no usage guidance.
25
questions
-2
votes
1
answer
54
views
Atime don't change on mounted drive
i have CentOS Stream 9.
when i mount a usb drive and create a file using touch command the Access time in stat command don't change and stays:
"Access: 2023-06-20 03:00:00.000000000 +0300"
...
0
votes
2
answers
69
views
Ricoh SP 400DN printer stats: is there a way to get the printer stats (number of pages printed)?
Having a Ricoh SP 400DN monochrome LED printer, I need to know how many pages were printed.
I browsed the printer menu, as well as the documentation but cannot find any way to print, nor display, the ...
0
votes
2
answers
707
views
How to delete any files that have not been used (access, change or modify) in X years
i run this command
find BAR -type f -mtime +1095 # older than 3 years
and find this file:
BAR/foo.pdf
So i run this:
stat BAR/foo.pdf
Access: 2020-01-03 01:32:05.584393000 -0500
Modification: 2017-...
0
votes
1
answer
3k
views
Error: ENOENT: no such file or directory, stat "timezone file"
I was developing a react app and suddenly it stopped, it's never have happened before so i am curious what made it happened?
I don't know if there was a file named "/Kolkata" before but it ...
2
votes
0
answers
399
views
accesstime on macOS Catalina 10.15
Suppose you own a file system on a unix machine, and
you would like to know which of the regular files on this system
you have accessed within some interval.
("Regular file" means it is not ...
2
votes
1
answer
237
views
Why is the modification date of my swapfile not changing?
If I check with stat the modification date is not up to date
File: /home/shares/swap.file
Size: 1962934272 Blocks: 3833864 IO Block: 4096 regular file
Device: 801h/2049d Inode: 15 ...
0
votes
1
answer
262
views
permission script with stat command trouble awk special character
I want to number of permission directory and write a script for equalizing two different server directory. I have use stat command.
command: stat /var/ | grep -i 'Access: ('
output: Access: (0755/...
1
vote
2
answers
1k
views
How can I move or delete files created in certain time range?
I'm making time lapse movies spanning several weeks and want to get rid of the pictures taken during the night (i.e. between 22:45 and 5:00 in this case), how can I do this easily?
I've found the ...
12
votes
4
answers
21k
views
Windows equivalent to the unix "stat" command?
So, I'm looking for a command-line approach to get a short(ish) textual dump of relatively low-level metadata for a file, approximately the same way that stat does on *nix systems.
In other words, ...
0
votes
1
answer
611
views
Meaning of time output from stat
I stat a file on ext4 filesystem, and get the following output:
2016-09-09 14:36:21.269384800
What is the meaning of 269384800? Is it nanoseconds, or something else?
0
votes
1
answer
893
views
Why mongostat is not defined?
On our Windows 7 x64 machine, we've got mongod up and running:
But when we try to use mongostat, it says it's not defined. Why is it so?
Btw, rest all the other queries are working fine.
Are ...
2
votes
2
answers
2k
views
how to modify the "time offset from UTC" of files
I use stat to get information of files, I notice
Access: 2013-12-28 13:12:11.244573123 +0100
Modify: 2013-11-12 22:54:42.274460079 +0200
Change: 2013-12-13 12:45:08.164394887 +0100
the +0100 +0200 ...
1
vote
1
answer
766
views
what do +0100 +0200 mean in linux command `stat` results
I use stat to get information of files, I notice
Modify: 2011-03-02 14:23:33.489430232 +0100
Modify: 2012-11-15 10:13:26.534178635 +0200
what do +0100 +0200 mean?
5
votes
1
answer
8k
views
Faster du/stat alternative for directories
I have several very big directories and i want to know their estimated size. I use for this purpose mostly du, but it takes for each folder about 3 minutes, so i'm asking if there is an alternative to ...
1
vote
0
answers
789
views
cp: cannot stat error - when filename has Asian characters
I am simply trying to copy files using cp -r /home/user/source/ /home/user/destination/ but it throws me the cp: cannot stat /source/filename.xxx error for some of the files. When I searched for this ...