TLDR
Enter a command. For example: finger, rpcinfo, reg export, fondue.

forfiles

 
Select one or more files to execute a specified command on. More information: https://docs.microsoft.com/windows-server/administration/windows-commands/forfiles.
 
  • Search for files in the current directory:
     
    forfiles
     
  • Search for files in a specific directory:
     
    forfiles /p {{path/to/directory}}
     
  • Run the specified command for each file:
     
    forfiles /c "{{command}}"
     
  • Search for files using a specific glob mask:
     
    forfiles /m {{glob_pattern}}
     
  • Search for files recursively:
     
    forfiles /s
     
  • Search for files older than 5 days:
     
    forfiles /d {{+5}}

This is a tldr pages (source, CC BY 4.0) web wrapper for cheat-sheets.org. All commands, popular commands, most used linux commands. Referrals. Progressive Web Application (PWA) version to install on your device.