The tag has no usage guidance.

learn more… | top users | synonyms

1
vote
2answers
78 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
1answer
69 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?
0
votes
0answers
8 views

track file copies using meta data [duplicate]

If I have many files in one directory and some are actually a copy of another, for example: $ ls file1 file2 file3 $ cp file1 file_now Is there a way, if I did not already know or do the cp myself,...
2
votes
1answer
674 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
0answers
230 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 ...
3
votes
1answer
13k views

How to get actual creation time of a file on Unix?

I'm inspecting some files in my dedicated web server via linux cli after a hack attack and found some files have been modified with the 'touch' command to change the dates. I'm willing to get the ...
5
votes
2answers
2k views

stat and ls show wrong file size (terabytes wrong)

Ok, I have a bunch of vCard files, all about 200 to 300 Bytes in size. While trying to get them archived, I wondered why that takes so long and discovered that there is one file with a wrong size. ...
1
vote
2answers
733 views

Can not stat over a file name having space in it

I m very new to shell scripting and writing a script for a project. I am having a problem while doing "stat" on a file name, to check size, which has spaces in it. The problem is that I can not write ...
2
votes
1answer
2k views

stat command in Mac OS X

I'm trying to get a formatted time output using a such command in Mac OS X 10.7.5 (in the Terminal app): stat -f "%m" -t "%Y" "myfilename.jpg" However, it still gives me a unixtime, not the ...
1
vote
1answer
798 views

Does stat/lstat on nonexistent file cause a disk seek?

When searching for a library file from a right folder, my application currently does couple of lstat's for the possible locationslocations. Now I'm wondering whether these lstat's (application is ...
13
votes
3answers
10k views

how to know if noatime or relatime is default mount option in kernel?

I was trying to know if relatime or noatime was set on a filesystem, but i didn't found the information, neither in /etc/fstab, neither in kernel boot options. First of all, it seems clear that i don'...
1
vote
2answers
870 views

what is faster, du or stat?

Which goes faster on Linux/Unix? du -b file.dat or: stat -c %s file.dat
4
votes
4answers
5k views

Mac OS X 10.6 /usr/bin/stat command, what is the default output showing me?

When I run the stat command, what is the output actually showing? I know you can specify format, but I'm troubleshooting rsync from OS X to NetApp SMB, and trying to work out what is and is not ...
0
votes
5answers
18k views

tar --files-from complains “Cannot stat: No such file or directory”

When I type: tar -cvf ~/changeset.tar --files-from ~/changeset.txt it responds with this output: tar: admin/memberinformation.php : Cannot stat: No such file or directory tar: ...
3
votes
3answers
2k views

What's up with stat on Mac OS X/Darwin? Or filesystems without names

In response to a question I asked on SO, Give the mount point of a path, one respondant suggested using stat to get the device name associated with the volume of a given path. This works nicely on ...