FUNDAMENTALS OF COMPUTER

OPERATING SYSTEMS FOR COMPUTERS

COMMAND LINE INTERFACE

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
What command should you type to output the results of a dir command to a file?
A
dir | filename.txt
B
dir & filename.txt
C
dir > filename.txt
D
dir < filename.txt
Explanation: 

Detailed explanation-1: -Open a command prompt (Start-> Run-> cmd Enter ) Navigate ( cd ) to the directory whose files you want to list. Enter dir > output file name (e.g., dir > C:. txt ) and press Enter .

Detailed explanation-2: -dir *. txt lists all files in the current directory with extensions that begin with .

Detailed explanation-3: -The dir command displays information about files and directories, and how much disk space is available. By default, it displays the name, size, and last modification time of every file in the current directory.

Detailed explanation-4: -Command DOS Use the cd command to navigate to the directory you want to print. For example, to navigate to your Documents folder, you would input cd C:, switching out yourusename for your own. Type dir > print. txt, then press Enter and exit the Command Prompt.

There is 1 question to complete.