#command to How do you find and list the log files older than 7 days in the /var/log folder? sudo find . -type f -name ".log" -mtime +30
sudo find . -type f -name ".log" -mtime +30
#How do you find and count log files older than 30 days using -exec in a folder?
sudo find . -type f -name "*.log" -mtime +30 -exec wc -l {} ;} ;
#How do you find files larger than 1MB from a given directory and list them? sudo find . -type f -name "*.log" -size +1M -exec ls -l {} ;
#How do you get the list of users who logged into the system today?
last | grep "$(date '+%a %b %e')" | awk '{print $1}' | sort | uniq