knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
library(locatefile)
wmic logicaldisk get name
fsutil fsinfo drives
DIR /?
Find all power point files in a drive letter
DIR "*.pptx" /S
Find all files that contain test*.txt and show Modification time (W) and order by size /O:D (old files first)
DIR "test*.txt" /S /T:W /O:D
Old files last
DIR "test*.txt" /S /T:W /O:-D
Creation time is C and access time A.
DIR /S /T:W /O:D | FINDSTR 10/2022
DIR /S /T:W /O:D | FINDSTR name
With no case-sensitivity
DIR /S /T:W /O:D | FINDSTR /I name
To change the format and report only the file path
DIR /S /T:W /O:-D /B | FINDSTR /I name
In WSL
ls -l /mnt
Find all power point files in a drive letter
cd /mnt/g; find . -name "*.pptx"
list long format
cd /mnt/g; find . -name "*.pptx" -ls
find all R files changes in the last 4 months
find . -name "*.R" ! -ctime +120
Find all R files accessed in the last 4 month but more than 3 months ago and list all files in the long format
find . -name "*.R" ! -atime +120 -atime +90 -exec ls -l {} +
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.