Skip to content

Command

Nelson edited this page Jun 20, 2024 · 5 revisions

Command

Get a list of commands:

omn

Output examples:

command lists
omn v   Query the version
omn i [name]    Installation [name]
omn l [lang/shell/os] <key>     To print the [lang/shell/os] command prompt list, you can use the <key> specified command keyword
omn s <dir>     Statistical language file(-l) or all file(-a), using <dir> the specified directory

version

Query the current version of omnTools.

omn v

Output examples:

omnTools [Version 1.0.5.0]
Copyright by AGSN

Installation

Use the script on the server for quick and easy installation.

omn i [name]

Currently supported [name]:

  • mkdocs (model)
  • mingw
  • cmake (model)

Command List

Prints a list of peek commands, and you can specify keywords to narrow it down.

omn l [lang/shell/os] <key>

Example:

omn l cmd file
del [file]             # Delete the file
type [file]            # Displays the contents of the file
more [file]            # Paginates the contents of the file
attrib [file]          # Displays or changes file properties
attrib +r [file]       # to set the file to read-only
attrib -r [file]       # cancels the read-only attribute of the file
fc [file1] [file2]     # Compare the two files and show the differences
find "string" [file]   # to find the specified string in the file

Currently supported [lang/shell/os]:

  • cmd
  • git
  • ps
  • reg
  • pip
  • npm
  • centos
  • ubuntu

Statistics directory

You can count the distribution of programming language statistics for the current directory or a specified directory.

omn s -l/-a <dir>

Example:

omn s -l
       Language     File Count    Total CharactersPercentage
              C              1               28524     5.52%
          CMake              1                 580     0.11%
            C++              5               37274     7.22%
 WindowsCommand              3              450078    87.15%
omn s -a
      File Type          Count  Total Size (bytes)     Percentage
           .txt              4               15106          0.11%
        .recipe              6                2215          0.02%
           .exe              5             1631176         11.72%
          .list              1                  58          0.00%
       .vcxproj              6              137101          0.99%
           .sln              1                3116          0.02%
       .filters              3                2423          0.02%
         .cmake              5               11842          0.09%
           .bin              2              105472          0.76%
           .cpp              5               38909          0.28%
           .obj              6             3619020         26.01%
             .c              1               28524          0.20%
            .rc              1                  65          0.00%
           .ico              2               17173          0.12%
Clone this wiki locally