Solved

file information

Posted on 2014-02-26
7
141 Views
Last Modified: 2014-10-15
what is the command to find the information about a file in linux

like last executed all info
0
Comment
Question by:thomasliju
7 Comments
 
LVL 76

Accepted Solution

by:
slightwv (䄆 Netminder) earned 500 total points
ID: 39889681
>>find the information about a file

Other than when it was last executed, what are you looking for?

ls -al /path/file_name
will tell you permissions, owner, group, size, mod date.

>>like last executed all info

I don't believe there is anything out of the box that tells you that.

You would likely have to turn on auditing.

How you do that likely depends on what flavor of Linux you are using.
0
 
LVL 21

Expert Comment

by:Mazdajai
ID: 39890036
You can use 'file' to determine file type or architecture. (32bit or x86_64).
0
 
LVL 84

Expert Comment

by:ozo
ID: 39890517
ls -ld file
stat file

on some systems
lsattr file
or
mdls file
0
 
LVL 13

Expert Comment

by:Sandy
ID: 39892147
Use below command

#file <file>

#ls -laiZ<file>

TY/SA
0
 

Author Closing Comment

by:thomasliju
ID: 40383651
ls -al /path/file_name


helped.

Thank you.
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now