Note this command.
find . -not -path '*/\.*' -iname '*' -maxdepth 1 -mtime -1
Let's cut it open and see what's happening.
find .
: This says find in the current directory (.
is cwd).-not -path '*/\.*'
: This says not to match dot (hidden) files.-iname '*'
: This says match*
(any name). Thei
ininame
is for case-insensitive.-mtime -1
: This says only match files which are modified less than 1 day(s) ago. If-
is turned to+
, it will say only match files which are not modified after one day which is same as matching every file which are modified after one day.-maxdepth 1
: This says only go 1 level deep in the tree.