CmdID

CmdID / Commands

type

In the Windows Command shell, type is a built in command which displays the contents of a text file. Windows commands reference

On Windows, DOS

Opens CmdID with your command. It is read in your browser and sent nowhere.

Windows

from the Windows commands reference, CC BY 4.0

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.

type [<drive>:][<path>]<filename>

To display the contents of a file named holiday.mar, type

type holiday.marIdentify

To display the contents of a lengthy file named holiday.mar one screen at a time, type

type holiday.mar | moreIdentify
[<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.

Several platforms

from tldr-pages, CC BY 4.0

Display the type of command the shell will execute. Note: All examples are not POSIX compliant.

Display the type of a command

type commandIdentify

Display all locations containing the specified executable (works only in Bash/fish/Zsh shells)

type -a commandIdentify

Display the name of the disk file that would be executed (works only in Bash/fish/Zsh shells)

type -p commandIdentify

Display the type of a specific command, alias/keyword/function/builtin/file (works only in Bash/fish shells)

type -t commandIdentify

Windows

from tldr-pages, CC BY 4.0

Display the contents of a file. In PowerShell, this command is an alias of Get-Content. This documentation is based on the Command Prompt (cmd) version of type.

Display the contents of a specific file

type path\to\fileIdentify

Display the contents of a text file.

Show a file

TYPE path/to/file.txtIdentify