Copy, move or delete recently modified or downloaded files
To copy all the pdf files downloaded in the last day to a directory files
run:
$ find /home/user/Downloads/*pdf -maxdepth 1 -mtime -1 -print -exec cp -t /home/user/Desktop/files {} +
To move all files, replace cp
by mv
.
To delete all files modified in the last day in the directory named Downloads
:
$ find /home/user/Downloads/* -maxdepth 1 -mtime -1 -print -delete
Run $ man find<> to learn to adjust each of the options used above.
The programme find was published in 1971 and is copyleft-licensed.
✍✍✍✍✍✍✍✍✍✍✍✍✍✍
I do self-funded research and I'm writing a book.
> What's the book about?
About technologies and agency.
Meaning, technologies can foster agency. No doubt. But I am also asking:
Can usage of technologies give us a sense of empowerment while in fact undermining our abilities?
I posted a summary of the prologue on the homepage: https://yctct.com/
✍✍✍✍✍✍✍✍✍✍✍✍✍✍
personal computing command-line interface (cli) gnu linux trisquel office applications find wiki shell literacy