LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-29-2005, 10:09 AM   #1
allelopath
Member
 
Registered: Jan 2003
Location: New Mexico
Distribution: Ubuntu 18.04.3 LTS
Posts: 539

Rep: Reputation: 30
get creation time of hidden directory


I want to see the creation time of an hidden directory, or any file for that matter.

Right clicking on the file in Konqueror gives a last modified time and a last accessed time, but no creation time. Can I change Konqueror so that it will show a creation time?

The 'stat' command shows the info below.
I don't see a creation time.

#stat .mydir
File: `.mydir'
Size: 152 Blocks: 0 IO Block: 4096 directory
Device: 302h/770d Inode: 521205 Links: 2
Access: (0755/drwxr-xr-x) Uid: ( 1000/allelopath) Gid: ( 100/ users)
Access: 2005-12-29 09:10:48.000000000 -0700
Modify: 2005-12-28 14:19:38.000000000 -0700
Change: 2005-12-28 14:19:38.000000000 -0700

Last edited by allelopath; 12-29-2005 at 02:28 PM.
 
Old 12-30-2005, 04:21 AM   #2
jimvin
Member
 
Registered: May 2004
Posts: 71

Rep: Reputation: 15
Hi,
You can't show the creation time for a file, this data is not stored in most unix filesystems. Check out the man page for the syscall syscall stat (man 2 stat). There are three time values available for a file on a *nix filesystem.

Code:
time_t        st_atime;    /* time of last access */
time_t        st_mtime;    /* time of last modification */
time_t        st_ctime;    /* time of last status change *
Regards,
Jimvin
 
Old 12-30-2005, 11:56 AM   #3
allelopath
Member
 
Registered: Jan 2003
Location: New Mexico
Distribution: Ubuntu 18.04.3 LTS
Posts: 539

Original Poster
Rep: Reputation: 30
thanks...kinda surprised that creation time is not stored.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do you copy hidden files from one directory to another? Akhran Linux - Newbie 22 12-13-2019 05:20 PM
Konqueror: Show hidden directories in directory tree Birdy Linux - Software 5 03-06-2005 10:58 PM
Hundreds of hidden files in home directory doobers Linux - Newbie 3 02-14-2005 02:57 PM
Creation of file and directory with same name chack Linux - Newbie 6 01-24-2005 10:41 PM
Azureus directory creation cleff Linux - Software 4 08-21-2004 10:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration