Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 06-26-2012
Registered User
 
Join Date: Jun 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Who created a file?

Hi!Can somebody tell me what command can I use to find who created a file,please?
Sponsored Links
    #2  
Old 06-26-2012
Mead Rotor
 
Join Date: Aug 2005
Location: Saskatchewan
Posts: 16,371
Thanks: 490
Thanked 2,534 Times in 2,417 Posts
ls -l ?

Its owner is probably who created it.

If it's not, you're out of luck.
The Following User Says Thank You to Corona688 For This Useful Post:
jacobs.smith (06-26-2012)
Sponsored Links
    #3  
Old 06-26-2012
methyl methyl is offline Forum Staff  
Moderator
 
Join Date: Mar 2008
Posts: 6,388
Thanks: 286
Thanked 668 Times in 640 Posts
The command for a specific named file is:

Code:
ls -lad filename

Then look at the Owner field.
    #4  
Old 06-28-2012
Registered User
 
Join Date: Jun 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Ok.Thanks.I know.But ls -l returns a loong list and it's difficult to search my file there and see how created it.I was hoping there was an easiest way to find the owner.Somebody?
Sponsored Links
    #5  
Old 06-28-2012
Mead Rotor
 
Join Date: Aug 2005
Location: Saskatchewan
Posts: 16,371
Thanks: 490
Thanked 2,534 Times in 2,417 Posts
Read the post in the thread below mine.
Sponsored Links
    #6  
Old 06-28-2012
...@...
 
Join Date: Feb 2004
Location: NM
Posts: 9,645
Thanks: 164
Thanked 639 Times in 616 Posts

Code:
ls -l your_file_name_here

Sponsored Links
    #7  
Old 06-28-2012
fpmurphy's Avatar
who?
 
Join Date: Dec 2003
Location: /dev/ph
Posts: 4,426
Thanks: 47
Thanked 356 Times in 330 Posts
On Unix/Linux, in general, you cannot determine who created a file. All you can find out is who is the present owner of the file.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
how to delete core file (file created due to apps crashed) s3270226 Homework & Coursework Questions 6 04-07-2011 12:13 PM
File created year KiranKumarKarre Shell Programming and Scripting 3 05-29-2009 08:49 AM
How to know when a new file is created? aixjadoo UNIX for Dummies Questions & Answers 1 07-02-2008 12:11 PM
File created time yakyaj UNIX for Advanced & Expert Users 6 03-23-2007 09:20 AM
File Created On attribute dpalmer UNIX for Dummies Questions & Answers 1 09-16-2001 10:44 AM



All times are GMT -4. The time now is 07:05 PM.