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
Windows
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.marIdentifyTo 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
Display the type of command the shell will execute. Note: All examples are not POSIX compliant.
Display the type of a command
type commandIdentifyDisplay all locations containing the specified executable (works only in Bash/fish/Zsh shells)
type -a commandIdentifyDisplay the name of the disk file that would be executed (works only in Bash/fish/Zsh shells)
type -p commandIdentifyDisplay the type of a specific command, alias/keyword/function/builtin/file (works only in Bash/fish shells)
type -t commandIdentifyWindows
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\fileIdentifyDOS
Display the contents of a text file.
Show a file
TYPE path/to/file.txtIdentify