One best tool exists in linux is the find command. I will try to add the different ways to use the find command.
1) To find files of a particular owner/group:
# find /tmp -user <username>
eg.
# find /tmp -user foo
[shall search files owned by user foo in the /tmp folder]
# find /tmp -group <groupname>
eg.
# find /tmp -group foo
[shall search files belonged to group foo in the /tmp folder]
2) To find files that were accessed last 33 days ago:
# find . -type f -atime +33 -exec ls -l '{}' \;
1) To find files of a particular owner/group:
# find /tmp -user <username>
eg.
# find /tmp -user foo
[shall search files owned by user foo in the /tmp folder]
# find /tmp -group <groupname>
eg.
# find /tmp -group foo
[shall search files belonged to group foo in the /tmp folder]
2) To find files that were accessed last 33 days ago:
# find . -type f -atime +33 -exec ls -l '{}' \;
No comments:
Post a Comment