• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 161
  • Last Modified:

file information

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

like last executed all info
0
thomasliju
Asked:
thomasliju
1 Solution
 
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

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now