text stringlengths 0 4.23k |
|---|
type |
In the Windows Command shell, type is a built in command which displays the contents of a text file. Use the type command to view a text file without modifying it. |
In PowerShell, type is a built-in alias to the Get-Content cmdlet, which also displays the contents of a file, but using a different syntax. |
Syntax |
type [<drive>:][<path>]<filename> |
Parameters |
Parameter |
Description |
[<drive>:][<path>]<filename> |
Specifies the location and name of the file or files that you want to view. If your <filename> contains spaces, you must enclose it in quotation marks (for example, "Filename Containing Spaces.txt"). You can also add multiple filenames by adding spaces between them. |
/? |
Displays help at the command prompt. |
[<drive>:][<path>]<filename> |
<filename> |
Remarks |
Examples |
To display the contents of a file named holiday.mar, type: |
type holiday.mar |
To display the contents of a lengthy file named holiday.mar one screen at a time, type: |
type holiday.mar | more |
typeperf |
The typeperf command writes performance data to the command window or to a log file. To stop typeperf, press CTRL+C. |
Syntax |
typeperf <counter [counter ...]> [options] |
typeperf -cf <filename> [options] |
typeperf -q [object] [options] |
typeperf -qx [object] [options] |
Parameters |
Parameter |
Description |
<counter [counter [...]]> |
Specifies performance counters to monitor. The <counter> parameter is the full name of a performance counter in \Computer\Object(Instance)\Counter format, such as \\Server1\Processor(0)\% User Time. |
<counter [counter [...]]> |
<counter> |
\\Server1\Processor(0)\% User Time |
Options |
Option |
Description |
-f <CSV | TSV | BIN | SQL> |
Specifies the output file format. The default is CSV. |
-cf <filename> |
Specifies a file containing a list of performance counters to monitor, with one counter per line. |
-si <[[hh:]mm:]ss> |
Specifies the sample interval. The default is one second. |
-o <filename> |
Specifies the path for the output file, or the SQL database. The default is STDOUT (written to the command window). |
-q [object] |
Display a list of installed counters (no instances). To list counters for one object, include the object name. |
-qx [object] |
Display a list of installed counters with instances. To list counters for one object, include the object name. |
-sc <samples> |
Specifies the number of samples to collect. The default is to collect data until CTRL+C is pressed. |
-config <filename> |
Specifies a settings file containing command options. |
-s <computer_name> |
Specifies a remote computer to monitor if no computer is specified in the counter path. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.