Questions tagged [stat]
15 questions
14
votes
1 answer
Whats "Birth" field in stat command output
I'm using Fedora-16 with ext4.Suddenly with stat command I can see something called "Birth".
# stat history_file1.txt
File: `history_file1.txt'
Size: 8944 Blocks: 24 IO Block: 4096 regular file
Device: 802h/2050d …
webminal.org
- 273
- 5
- 19
5
votes
2 answers
Ansible local_action: stat doesnt find my file
I want to copy a file to remote nodes, but only if the file exists.
I copied it into /tmp/webapps/partner.war
My Task is:
- local_action: stat path="/tmp/webapps/{{ application }}.war"
register: war
- name: Copy warfile
copy:…
Alexander Huck
- 61
- 1
- 1
- 4
4
votes
1 answer
Dereference symbolic link in OS X?
In OS X, how can I dereference a symbolic link to a canonical file name? (i.e. one starting with /.)
That is, I'm after the equivalent of GNU readlink's -f option:
kapow:~$ greadlink -f .bash_profile
/Users/mjs/.config/home/.bash_profile
OS X's…
ithinkihaveacat
- 1,604
- 3
- 14
- 18
2
votes
2 answers
Centos 6 vs Centos 7 file access performance
I'd like some assistance in trying to figure out what could explain Centos 7 being slower in accessing a file then Centos 6. It's about a 17% difference.
Here's a simple test:
[root@test-centos6 shm]# time for i in $(seq 0 50000); do stat file >…
Bob
- 41
- 1
- 5
2
votes
0 answers
stat() mtime is in the past, despite fsync
This might be a bit esoteric, but I've got an odd sort of a problem with stat().
Specifically - on a Linux system, with Isilon storage NFS mounted. I have a process that is getting time differences when running fstat on the same file.
I can…
Sobrique
- 3,697
- 2
- 14
- 34
1
vote
1 answer
Is there a better way to analyze Varnish hit rate
I currently analyze varnish hit rate like this
While this is good, a major part of the request the server services is non-cacheable. This brings down the hit rate drastically.
How can I modify this such that I count only requests that are…
Quintin Par
- 4,293
- 10
- 46
- 72
1
vote
2 answers
php-fastcgi status: "No input file specified"
# grep pm.status_path /etc/php5/fpm/pool.d/www.conf
pm.status_path = /fcgi-status
nginx config:
location ~ ^/(fcgi-status|ping)$ {
access_log off;
allow 127.0.0.1;
deny all;
fastcgi_param SCRIPT_FILENAME…
Putnik
- 2,095
- 3
- 23
- 40
1
vote
0 answers
Windows equivalent of Linux vmstat pswpin and pgfault?
Is there a way to query Windows for the total number of pages swaped in / out and total amount of page faults? (values found in /proc/vmstat on Linux)
I could only find Win32_PerfFormattedData_PerfOS_Memory, but the values are instantaneous.
Thanks
elmarco
- 111
- 5
1
vote
1 answer
linux: question marks in file status; cannot stat file
Linux 2.6.18-164.11.1.el5.centos.plus
filesystem in question: reiserfs
Hi,
I'm having trouble deleting a file:
[root@flat: all_subjs_wcbf]# ls -lah
total 0
drwxrwxrwx 2 szhu cfn 88 Sep 1 2011 ./
drwxrwxrwx 3 szhu cfn 80 Jun 8 2011 ../
?---------…
Michael S
- 305
- 2
- 12
1
vote
2 answers
Directory in Linux(ext3) with only 2 files occupies 32000 blocks(16Mbytes)
IIRC my Operating Systems classes, the size of a directory in Linux is given by the number of files it contains([wikipedia link])1
So, why a directory with only 2 files occupies 32000 blocks?
# stat .
File: «.»
Size: 16855040 Blocks:…
Samuel
- 125
- 1
- 7
0
votes
1 answer
What is the meaning of Haproxy's sessions info page?
I'm using haproxy 1.6.8.
The following information is output on
echo "show sess" | nc -U /var/lib/haproxy/stats
0x1696d40: proto=tcpv4 src=67.55.94.187:51183 fe=adf be=adfback srv=capped ts=08 age=0s calls=4…
rlib
- 195
- 1
- 1
- 7
0
votes
2 answers
Compare the time stamp of Suse linux
I am try to compare the two time file based on their modify/lastchange time stamp & then copy the file to some folder code below
#!/bin/sh
cd /sapmnt/audit/
echo $PWD
t1= stat -c %z audit.log20151019115132
cd /var/log/audit/
echo $PWD
t2= stat -c…
Abhinav
- 1
0
votes
2 answers
View File chown changes
Is there a way to view all of the times a files ownership changed? I have a feeling there is a security issue on my server, however I am also very paranoid and may have changed it myself.
Richard Christensen
- 111
- 2
0
votes
1 answer
Xen dom0 and domu ifconfig returns different stats
I expected that when I use ifconfig command to display network traffic RX and TX values both for dom0 and domu machine,
there are differences.
I run once ping inside the domu.
domu ifconfig command show
[root@localhost /]# ifconfig eth0 | grep…
Julio Fong
- 201
- 1
- 2
- 7
0
votes
3 answers
May the file size returned by stat be compromised?
I want to make sure that nobody changed a file. In order to accomplish that, I want not only to check MD5 sum of the file, but also check its size, since as far as I understand this additional simple check can sophisticate falsification by several…
codeholic
- 134
- 5