answersLogoWhite

0


Best Answer

You can get a list of all the files in the current directory with the "ls -a" command.

User Avatar

Wiki User

15y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

13y ago

Cat command is used to view the contents of a file..

Syntax:

cat <filename>

This answer is:
User Avatar

User Avatar

Wiki User

11y ago

ls /path/to/directory/dir

will show you content of directory dir

This answer is:
User Avatar

User Avatar

Wiki User

12y ago

There are many commands that can do this. Two of the most common are 'more' and 'cat'.

This answer is:
User Avatar

User Avatar

Wiki User

13y ago

cat filename

This answer is:
User Avatar

User Avatar

Wiki User

13y ago

tail

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Which command is used to see the content of file?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What command can be used to monitor the file var log messages to see newly incoming messages?

tail -f /var/log/messages


What is the difference between cat and merge command?

The 'merge' command is not standard in Unix, so not every system has it. The 'cat' command is standard in every Unix system. The 'cat' command merely echoes the contents of a file. It can be used to put together several files (concatenate). The 'merge' command (at least on Linux) merges changes from an original file to a modified (patched) file. It is considered a 3-way merge utility. Check the 'man' command for both and you will see the differences in the two commands.


What command is used to see who is on the system?

Ironically, the command to see who is logged into the system is who. You can also see who is logged on using the wcommand.


How can you open dwh file when using GstarCAD?

Use hopen command or use GstarCAD backup file manager to open, the dwh file will be saved as dwg file after you open it. See related link.


How can you view files on a disc that was created from a command prompt?

You can easily see it as it looks like the normal file.


What are the file commands of DOS?

Use the "dir" command (without the quotes) to see all files in the current directory. Use the "type" command (Just like before, no quotation marks.) followed by a file you want to look at to see the file's contents. Use the "echo" command (Okay, I think you get the point about the quotation marks now.) to print something to the screen. Not very useful. Is it? You can use the "echo" command to overwrite files too! For example, "echo Hello &gt;&gt; a.txt" will overwrite a.txt with the text "Hello." If a.txt does not exist, the echo command will create one.


What file contains the kernel initialization messages?

/var/log/dmesg is the file which contains kernel initializaion messages. By typing dmesg command in the shell prompt we can see


Khan wants to check the contents of the queues.c file without opening the file. what command should he use to see the contents Select one?

Vhb


What is the command to fetch first 10 records in a file in unix?

At the prompt, type:head filenameFor example, if you have a file named file.txt, type:head file.txtTo fetch a specific number of records from a file, e.g. 15, type:head -15 file.txtTo see more options of 'head' command run 'man head'.


What command can be used to see the uptime for a router?

Show uptime


What is used to see the contents of a directory in Unix?

The ls command.


Why do you use wall command in unix?

The 'wall' command is used to send a message to all users on the system. You can put the text of what you want each user to see in a file, or you can type the message in line by line and then send it. To send the contents of a file to each user, use the command: wall filename to send a message and type the contents at the same time, type: wall first line of text second line of text ... ^D to send it.