mercredi 23 septembre 2015

How to get latest files based on lastmodified using unix

currently I'm using below command to get latest 4 files. But this command also fetches directories...but i want to exclude directory. How to do?

ls -tr /home/user | tail -4

Aucun commentaire:

Enregistrer un commentaire