03-23-2007
file statistics??
Is there any command in Unix (HP-UX) which will give me the file statistics ..
e.g
I have a file called r001
if I created that file on 2nd of aug 2005 and till now I changed that file contents 10 times. So how will I get the history statistic(time & date) of file modification.
8 More Discussions You Might Find Interesting
1. Programming
i am currently using c functions such as getprocs and statsfs to obtain process information and filesystem information on machines running aix 4.3.3.0. (soon to be running aix5.1) is there a function available to access information similar to the information provided by a vmstat command? i also... (1 Reply)
Discussion started by: briansmith40
1 Replies
2. UNIX for Advanced & Expert Users
Is there any way to get the file descriptor statistics of a socket file descriptor? I know that the fstat, stat system calls are for this purpose, but I want to know it there any way to get socket connection statistics for a file descriptor(like socket flags, connection type etc).
Does /proc... (3 Replies)
Discussion started by: comp_wizard07
3 Replies
3. Shell Programming and Scripting
Hi ,
I have the following file which is basically a grid (has more than 100000 rows)
LLL1 PPP1
LLL1 PPP2
LLL1 PPP3
...............
LLL1 5500
.....
LLL2 PPP1
LLL2 PPP2
LLL2 PPP3
...............
LLL1 5500
.....
L100 PPP1
L100 PPP2
L100 PPP3
...............
2100 5500... (6 Replies)
Discussion started by: alex2005
6 Replies
4. Programming
Input_file:
>header_1
ASDFFDASADASF
>header_2
ASDSAFASDAAFFFAFA
Desired output file:
30
Source Code try:
// reading a text file
#include <iostream>
#include <fstream>
#include <string>
using namespace std;
int main () {
string line;
ifstream myfile ("Input_file"); (3 Replies)
Discussion started by: perl_beginner
3 Replies
5. Shell Programming and Scripting
I'm running long integrations on a remote server, and I'm working in terminal in a tcsh shell.
I'm looking to write ONLY the timing statistics to a file.
For example:
$time ls >timer.out
writes both the files in my current directory & the timer statistics to the file timer.out.
I only... (2 Replies)
Discussion started by: elemonier
2 Replies
6. Shell Programming and Scripting
Hi All,
Thanks all for the continued support so far.
Today, I need to find the most occurring string/number(also called mode in statistics terminology) for each column in a data file (.csv type).
For one column of data(1.txt) like below
Sample
1
2
2
3
4
1
1
1
2
I can find the mode... (6 Replies)
Discussion started by: ks_reddy
6 Replies
7. Red Hat
I am facing issue related to performance of one customized application running on RHEL 5.9. The application stalls for some unknown reason that I need to track. For that I require some tool or shell scripts that can monitor the CPU usage statistics (what we get in TOP or in more detail by other... (6 Replies)
Discussion started by: Anjan Ganguly
6 Replies
8. UNIX for Advanced & Expert Users
I have a file size is around 24 G with 14 columns, delimiter with "|"
My requirement- can anyone provide me the fastest and best to get the below results
Number of records of the file
First column and second Column- Unique counts
Thanks for your time
Karti
------ Post updated at... (3 Replies)
Discussion started by: kartikirans
3 Replies
LEARN ABOUT FREEBSD
nfsstat
NFSSTAT(1) BSD General Commands Manual NFSSTAT(1)
NAME
nfsstat -- display NFS statistics
SYNOPSIS
nfsstat [-cemoszW] [-M core] [-N system] [-w wait]
DESCRIPTION
The nfsstat command displays statistics kept about NFS client and server activity. For the NFSv4 server, the statistics are for operations
within the Compound RPCs and not the count of RPCs. If you wish to compare RPC counts between NFSv3 and NFSv4, you must use statistics in
the client(s).
The options are as follows:
-c Only display client side statistics.
-e Report the extra statistics collected by the new NFS client and server for NFSv4. This option is incompatible with -o.
-M Extract values associated with the name list from the specified core instead of the default /dev/kmem.
-m Report the mount options for all new NFS client mounts. This option overrides all others and nfsstat will exit after completing the
report. This option is only supported by the new NFS client.
-N Extract the name list from the specified system instead of the default /boot/kernel/kernel.
-o Report statistics for the old NFS client and/or server. Without this option statistics for the new NFS client and/or server will be
reported.
-s Only display server side statistics.
-W Use wide format with interval short summary. This option is especially useful when combined with -c or -s and a time delay.
-w Display a shorter summary of NFS activity for both the client and server at wait second intervals.
-z Reset statistics after displaying them.
FILES
/boot/kernel/kernel default kernel namelist
/dev/kmem default memory file
SEE ALSO
fstat(1), netstat(1), ps(1), systat(1), sysctl(3), iostat(8), nfsdumpstate(8), pstat(8), vmstat(8)
HISTORY
The nfsstat command appeared in 4.4BSD.
BSD
May 1, 2013 BSD