Windows Command Prompt TutorialIntroduction Internal and External commands Basic Commands Basic file commands Sorting the data Searching patterns in file Comparing files Variables in Windows command prompt Piping Input and Output Redirection View all processes and tasks killing tasks scheduling tasks Network commands System hardware commands
Basic commands in windows command promptNow let us take a look at some basic commands in windows command prompt. To show all commands
To get help on specific command
To exit command prompt
> help commandName > commandname /?
To clear the output screen of command prompt
To echo the message on output screen
To display contents of a file, You can use below commands. more command will display the contents of a file one page at a time. This is just like more command in Linux. type command will display contents of entire file in one go.
To print the file, you can execute below command.
> more <file-name> > type <file-name>
cmd command starts child command prompt. We can set the color of the window using below command.
> print <file-name>
Here are some of the color values.
COLOR [background][foreground] COLOR 08
08 = Black/Gray 19 = Blue/Light Blue 2A = Green/Light Green
Web development and Automation testing