User Tools

Site Tools


other:wincli

This is an old revision of the document!


Windows Command Line notes

This pages lists useful things that can be done by typing commands on a Windows computer!

Notes:

Windows equivalent of Linux commands

Sections below: Linux commandWindows command

find ⇔ forfiles

  • What: recursively find files (filenames) matching a given pattern
  • Linux example: find path -n '*somename*.nc' -ls
  • Windows example:
    •  PS C:\> forfiles /p C:\Utils\miniconda3_2024-03\pkgs /m *ffi*.dll /s /c "cmd /c echo @fdate @ftime @relpath"
      
      09/11/2021 22:16:18 ".\libffi-3.4.2-h8ffe710_5\Library\bin\ffi-8.dll"
      10/05/2023 13:03:16 ".\libffi-3.4.4-hd77b12b_0\Library\bin\ffi-7.dll"
      10/05/2023 13:03:16 ".\libffi-3.4.4-hd77b12b_0\Library\bin\ffi-8.dll"
      10/05/2023 13:03:16 ".\libffi-3.4.4-hd77b12b_0\Library\bin\ffi.dll"
      11/02/2025 09:56:52 ".\libffi-3.4.6-h537db12_0\Library\bin\ffi-8.dll"
      31/03/2025 17:25:29 ".\libffi-3.4.6-h537db12_1\Library\bin\ffi-8.dll"

grep ⇔ find, findstr

  • What: search for a string of text in a file or files
    • To search for a string with wild cards and regex patterns, you can use the FINDSTR command
    • findstr can also search subdirectories
  • Documentation:
  • Linux example:
  • Windows example:





[ PMIP3 Wiki Home ] - [ Help! ] - [ Wiki syntax ]

other/wincli.1757947699.txt.gz · Last modified: by jypeter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki