That command will find things within the Downloads folder that end in “*.pdf” (`-name "*pdf"`) and whose relative time (`-mtime`) with respect to right now is in the last 4 weeks (`-4w`).

Then, it will pass it (`|`) to the `xargs` command, which will use the null separated input (`-0`) from the first command (`-print0`) to execute the `qlmanage` command to preview `-p`.

Hope that's useful!

#macOS #UNIX #FindFiles #cli

Do you have a file in your Downloads folder that you know is a PDF that arrived in the last 4 weeks? You could do a Search in Finder, and specify Kind as PDF, and Date added to within last 4 weeks. You could select all those files and press the Space bar to get them to previsualize them and find visually the one you want.

But you could also use the `find` command in this way:

`find ~/Downloads/ -name "*.pdf" -mtime -4w -print0 | xargs -0 qlmanage -p`

#macOS #UNIX #FindFiles #cli

Excerpt of a conversation between myself, and my girlfriend. She fights the good fight with the #technology . Meh. Something like that?

"Seems like that's the direction (web, phone apps, etc.) #software is going now.
#uiux #ui #ux
Essentially one familiar interface. Kind of the same with [the] #windows #Win11 [Desktop O/S].

A lot of it is familiar regardless of the app you're using. That's probably why you find yourself getting #confused about where and how to find #files on your #pc (e.g. where are my #photos ? where's my #resume ?) because it all looks so similar, if you don't know you specifically need to open a "file folder view", you might be lost because #Microsoft #edge is #maximized

The trade-off is the #convenience of that #systemwide #GlobalSearch that you access when you type the "Windows" key (that special key by the #spacebar)"

#favoriteapps #Findfiles #desktop #Desktop_Linux #WindowsKey #start #startmenu

How To Find Files Based On their Permissions In Linux - OSTechNix

Finding files from command line in Linux is easy! This guide describes how to find files based on their permissions in Linux.

OSTechNix
Find And Delete Oldest File If There Are More Than X Files In A Directory In Linux #Linuxcommands #Linuxtips #Linuxbasics #Linux #Findfiles #Deletefiles
https://ostechnix.com/find-delete-oldest-file-x-files-directory/
How To Find And Delete Oldest File In A Directory In Linux - OSTechNix

This tutorial describes how to find and delete oldest file if there are more than X files in a directory in Linux and Unix operating systems.