- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: mtime ctime atime .... etc output.
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2003 05:18 AM
11-04-2003 05:18 AM
display the hidden infomation of a file?
Namely: atime, mtime, ctime ... etc
I have done it before but can't remember
how I did it.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2003 05:22 AM
11-04-2003 05:22 AM
Re: mtime ctime atime .... etc output.
ls -lc displays last ctime
ls -lu displays last atime
HTH
-- Rod Hills
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2003 11:32 PM
11-04-2003 11:32 PM
Re: mtime ctime atime .... etc output.
-a List all entries, including those that begin with a period (.),
which are normally not listed.
-A Like -a except it does not list the . and .. directories.
-L When listing status, if an argument is a symbolic link, list the
status of the file or directory referenced by the link rather than
that of the link itself. This option will have no effect if the
argument is a dangling link.
-l List in long format, giving mode, number of links, owner, group,
size in bytes, and time of last modification for each file (see
below). If the file has an Access Control List (ACL) the mode
specification will be followed by a ``+''. If the file is
a special file, the size field contains the major and minor device
numbers rather than a size. If the file is a symbolic link, the
filename is printed followed by ``->'' and the pathname of the
referenced file.
-t Sort by time stamp (latest first) instead of by name. The default
is the last modification time. (See -u and -c.)
-u Use time of last access instead of last modification for sorting
(with the -t option) or printing (with the -l option).
-c Use time of last modification of the i-node (file created, mode
changed, and so on) for sorting (-t) or printing (-l).
-F Put a slash (/) after each filename if the file is a directory, an
asterisk (*) if the file is executable, an equal sign (=) if the
file is an AF_UNIX address family socket, and an ampersand (@) if
the file is a symbolic link. Unless the -H option is also used,
symbolic links are followed to see if they might be a directory; see
above.
-s Give size in blocks, including indirect blocks, for each entry.
Holes in files are not included in the size. A ``block'' is 512
bytes.
HTH
Bruno
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2003 11:39 PM
11-04-2003 11:39 PM
Re: mtime ctime atime .... etc output.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2003 01:27 AM
11-05-2003 01:27 AM
Re: mtime ctime atime .... etc output.
This answer to question is not correct ?
Cutting and pasting the "options specific" is more easy of write for me (my language isn't american).
You are not agree ???
Bruno
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2003 03:09 AM
11-05-2003 03:09 AM
Re: mtime ctime atime .... etc output.
could run against a file that would output
all the hidden header info about a file.
I may be confusing this ability with something that exists on Solaris and may
not exist on HP. I'll keep looking but
thanks for all your inputs. If I find it
I will post it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2003 03:14 AM
11-05-2003 03:14 AM
Re: mtime ctime atime .... etc output.
By hidden header information I presume you mean all the stuff that's kept in the inode.
If you want to access this info, you need to write a small "C" program and use the "fstat()" system call.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2003 05:07 AM
11-05-2003 05:07 AM
Re: mtime ctime atime .... etc output.
at this point. I must have at one time downloaded a pre-compiled bin that does
what I am looking for.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2003 05:14 AM
11-05-2003 05:14 AM
Solutiongoto
http://hpux.cs.utah.edu/hppd/hpux/Shells/fstat-1.0/
This allows dumping of the "fstat" info.
HTH
-- Rod Hills
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2003 05:15 AM
11-05-2003 05:15 AM
Re: mtime ctime atime .... etc output.
The fstat depot for hp-ux is available here -
http://hpux.cs.utah.edu/hppd/hpux/Shells/fstat-1.0/
fstat command is available by default on linux, but not on hpux.
- ramd.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2003 07:05 AM
11-05-2003 07:05 AM
Re: mtime ctime atime .... etc output.
# demo2.sh
file name? core
-----------------------------------------
links (dev/ino): 1 (1073741829/25600)
perms: rw------- (oct=0600)
size (magic #): 222700 (0x0000)
owner: root (UID=0)
group: sys (GID=3)
Assertion failed: rb[sizeof rb - 1] == '\0', file fstat.c, line 373
last accessed: demo2.sh[31]: 14661 Abort(coredump)
file name?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2003 07:30 AM
11-05-2003 07:30 AM
Re: mtime ctime atime .... etc output.
commenting out the code on line 373 of fstat.c.
assert(rb[sizeof rb - 1] == '\0');
I don't know what it does but now fstat
seems to run okay.