Monday, August 19, 2013

Find files and list their details

One of the things I find myself doing often is find files in *nix systems and looking at their last modified.

Finding the files is easy

$ find / -name somefile.txt

Now if you want to get details for the files such as last modified, etc.

$ find / -name somefile.txt | xargs ls -la
-rw-r--r-- 1 user group 1129 Nov  3  2011 /etc/files/somefile.txt

No comments:

Post a Comment