Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

#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

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors