CMD challenge

  • How to print a text on cmd?

There are many ways to print text on cmd. One of those ways is using “echo” command. Echo is used to print the required text.

Example : echo hello world

Ouput : hello world

  • How to print the current working directory on cmd?

“Pwd” command is used to print the name of the current directory.

  • How to print the list of files from the current working directory on cmd?

The command that is used to print the list of files from the current working directory is “dir”.

  • How to store the list of files of the current working directory in a particular file?

The syntax for storing the list of files of the current working directory in a particular file is as follows.

dir > filename.txt

  • How to store output of a command in a file?

Syntax : command > filename.txt

  • How to open a notepad file using cmd?

notepad filename.txt

the above syntax is used to open a notepad file from the current working directory using cmd.

Like what you read? Give Sai Vishwanath a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.