How to know the list of files in linux under directory with date created ?


Hello team,

How to know the list of files in linux directory . is there any single command  which displays  the file permissions, created date and time

jessicalola Supporter Asked on March 4, 2017 in Technology.
Add Comment
1 Answer(s)

Yes we can list all the files

1)log into the  server
2)  Generally we use this command for listing the files

[root@localhost]# ls

list of files will be displayed.

3) A command  which is used  to display all the things .

[root@localhost]#  ls -l

For example :

login into your server

[root@localhost]# pwd

it will result
/root

[root@localhost] ls -l
-rw——-. 1 root root 1366 Mar 14 2016 anaconda-ks.cfg
-rw-r–r– 1 root root 14540 Nov 5 2012 epel-release-latest-6.noarch.rpm
-rw-r–r– 1 root root 14540 Nov 5 2012 epel-release-latest-6.noarch.rpm

This will be the output.


Addisonjack Supporter Answered on March 4, 2017.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.