answersLogoWhite

0


Best Answer

DOS (Windows):

TYPE

Displays the contents of a file on the screen. If you use this command on a file which is not a text file, the display will be unintelligible. Use with "|MORE" to display the text on a page by page basis, and prevent it scrolling off the screen. "|" is a pipe character.

LINUX:

cat

less

this are commands (programs) that let you view text files, less is like cat, but if the files are so long that they don't fit on your screen,less automatically paginates the file. You use less by giving the file name as an argument to it:

less filename.txt

You use cat in the same way by giving the file name as an argument to it:

cat filename.txt

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you display the contents of a text file in command prompt?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

When using a real-mode command prompt how will DOS display the file name MyDocument.doc?

Mydocum~.doc


What does the command prompt DEL do?

the DEL command deletes a specified file when typed in the form below: del file for more information about the command, type : del /? in command prompt


How do you check the integrity of an ISO file?

To check the integrity of the an ISO file you will need to open command prompt. Once in command prompt type in: c:\> fciv , and the iso file name.


What commands can use at the command prompt to encrypt a file?

cipher


What if you copy paste a file from Google is that downloading?

It is considered downloading if the pgn file is corrupted or if the nano-script isn't hacked. To determine whether or not it is hacked, you must go into the command prompt. to get to the command prompt type in the search programs and files "Command" hit the thing that pops up. type " Shutdown /s " in the command prompt and it will determine whether or not the file is bad.


How do you put a file on a remote computer through command prompt?

ftp (file transfer protocol)


What option would allow the head command to display the last 5 lines in a file in Linux?

The 'head' command can only deal with the start of the file, not the end. If you want X number of lines at the end of the file then use the 'tail' command. tail -5 filename will list the last 5 lines of the contents of filename.


What is the command used to display the content of file in Linux?

There are several ways to read a text file. You can use one of several text editors, including vi, vim, emacs, joe, and nano. You can also parse it through the cat command like this: cat nameoffile.txt | less


Windows 2000XP volume folder and file compression can be done using what command at the command prompt?

compact


Which command is used to display the top of the file?

head


What windows 9xMe program file provides a Command Prompt windows?

Command.com


What windows 9xMe program file provides a command prompt window?

command.com