To list file permission/access right in octal format, linux has a command 'stat'. For example, we can use the followin -
Is there any equivalent command in AIX and HP-UX to give the same result as linux 'stat' command?
Please advice.
Last edited by Franklin52; 10-13-2011 at 06:32 AM..
Reason: Please use code tags for data en code samples, thank you
iostat -e gives the soft, hard and transport error information in Solaris.
What is the equivalent command in the other flavors of Unix AIX HP Linux.
Thanks
Prasi (1 Reply)
Can anyone tell me which is the equivalent command to
'stats' in ksh shell which discribes the file system?
Thanks in advance
Regards,
Im_new (6 Replies)
i would like to know the equivalent of stat -c %Y <file> command in AIX.
i tried "istat" but its not giving the epoch time and also tried with perl
perl -le'printf "%o", 07777 & (stat) for @ARGV' <file>
it not also provding the timing .
... (3 Replies)
Hi guys can i get banner equivalent command in linux.
I am using
Linux xcclx0619.target.com 2.6.18-308.11.1.el5xen #1 SMP Fri Jun 15 16:19:17 EDT 2012 x86_64 x86_64 x86_64 GNU/Linux (1 Reply)
Hi Experts,
I am here with very simple request:
#!bin/bash
a=`stat -c %y log1.csv`
echo $a
and this stat command returning value as
2013-08-11 05:42:10.000000000 -0400:
But I want to see in mm/dd/yyyy format?
any help is highly appreciated thank you
---------- Post... (9 Replies)
Discussion started by: parpaa
9 Replies
LEARN ABOUT DEBIAN
explain_stat_or_die
explain_stat_or_die(3) Library Functions Manual explain_stat_or_die(3)NAME
explain_stat_or_die - get file status and report errors
SYNOPSIS
#include <libexplain/stat.h>
void explain_stat_or_die(const char *pathname, struct stat *buf);
DESCRIPTION
The explain_stat_or_die function is used to call the stat(2) system call. On failure an explanation will be printed to stderr, obtained
from explain_stat(3), and then the process terminates by calling exit(EXIT_FAILURE).
This function is intended to be used in a fashion similar to the following example:
explain_stat_or_die(pathname, buf);
pathname
The pathname, exactly as to be passed to the stat(2) system call.
buf The buf, exactly as to be passed to the stat(2) system call.
Returns:
This function only returns on success. On failure, prints an explanation and exits.
SEE ALSO stat(2) get file status
explain_stat(3)
explain stat(2) errors
exit(2) terminate the calling process
COPYRIGHT
libexplain version 0.52
Copyright (C) 2008 Peter Miller
explain_stat_or_die(3)