file information

what is the command to find the information about a file in linux

like last executed all info
thomaslijuAsked:
Who is Participating?
 
slightwv (䄆 Netminder) Commented:
>>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
 
MazdajaiCommented:
You can use 'file' to determine file type or architecture. (32bit or x86_64).
0
 
ozoCommented:
ls -ld file
stat file

on some systems
lsattr file
or
mdls file
0
 
SandyCommented:
Use below command

#file <file>

#ls -laiZ<file>

TY/SA
0
 
thomaslijuAuthor Commented:
ls -al /path/file_name


helped.

Thank you.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.