Comments on: How to Find Recent or Today’s Modified Files in Linux https://www.tecmint.com/find-recent-modified-files-in-linux/ Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks. Thu, 06 Jun 2024 04:15:44 +0000 hourly 1 By: Ravi Saive https://www.tecmint.com/find-recent-modified-files-in-linux/comment-page-1/#comment-2177823 Thu, 06 Jun 2024 04:15:44 +0000 http://www.tecmint.com/?p=23727#comment-2177823 In reply to Sebastian Llaurador.

@Sebastian,

If you want to list all files modified in the last 24 hours without using the find command, you can use a combination of ls, stat, and awk.

ls -lR --time-style=+%Y-%m-%dT%H:%M:%S | awk -v now="$(date +%s)" '{if ($6 ~ /^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}$/) {cmd="date -d "$6" +%s"; cmd | getline filetime; if ((now - filetime) <= 86400) print $NF}}'

]]>
By: Sebastian Llaurador https://www.tecmint.com/find-recent-modified-files-in-linux/comment-page-1/#comment-2177757 Wed, 05 Jun 2024 23:15:26 +0000 http://www.tecmint.com/?p=23727#comment-2177757 I would like to know a command that lists all files modified in the last 24 hours without using the find command.

]]>
By: Alex https://www.tecmint.com/find-recent-modified-files-in-linux/comment-page-1/#comment-1880117 Sat, 17 Sep 2022 07:05:35 +0000 http://www.tecmint.com/?p=23727#comment-1880117 Does the check /etc directory have any new files created (compared to the last run)? If yes, display the file information and if it is a text file, display the first 10 lines of the file

]]>
By: Shane Wiley https://www.tecmint.com/find-recent-modified-files-in-linux/comment-page-1/#comment-1769036 Mon, 18 Apr 2022 01:44:20 +0000 http://www.tecmint.com/?p=23727#comment-1769036 I just need a GUI click that shows me download files starting most recently. Only need to do it once in a while. Thanks for all those that have given me complex command line info but I only need to do it once in a while and a click should do it.

]]>
By: Shozib Javed https://www.tecmint.com/find-recent-modified-files-in-linux/comment-page-1/#comment-1399755 Thu, 10 Dec 2020 10:34:23 +0000 http://www.tecmint.com/?p=23727#comment-1399755 Hi,

Could anyone please help me?

I want to track editing made in the last some days into my systems’ network interface file (ens192).

Thanks and Regards,
Shozib Javed

]]>