How does the user view the contents of a text file in UNIX?

Answers were Sorted based on User's Feedback



How does the user view the contents of a text file in UNIX?..

Answer / ziauddin

cat filename

Is This Answer Correct ?    17 Yes 1 No

How does the user view the contents of a text file in UNIX?..

Answer / tamojit

more filename

Is This Answer Correct ?    7 Yes 0 No

How does the user view the contents of a text file in UNIX?..

Answer / abhishek dilliwal

one more..

$less FileName

Is This Answer Correct ?    4 Yes 1 No

How does the user view the contents of a text file in UNIX?..

Answer / shaishaw

cat filename
less filename
more filename
view filename
vi filename
fold filename

Is This Answer Correct ?    3 Yes 0 No

How does the user view the contents of a text file in UNIX?..

Answer / kamal

cat file, less file, more file, tail -n file, head file

Is This Answer Correct ?    2 Yes 1 No

How does the user view the contents of a text file in UNIX?..

Answer / brijmohan

we can user cat filename or more file or less file. But
basically cat is used to content of file.

Is This Answer Correct ?    0 Yes 0 No

How does the user view the contents of a text file in UNIX?..

Answer / yuvaevergreen

many options - cat,more,less,tail,pg

Is This Answer Correct ?    0 Yes 0 No

How does the user view the contents of a text file in UNIX?..

Answer / pitambar mishra

awk '{print}' filename

sed -n 'p' filename
p : print
n : restrict printing duplicate row

Is This Answer Correct ?    0 Yes 0 No

How does the user view the contents of a text file in UNIX?..

Answer / sk abdul sahid

gedit <filename>

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Unix Commands Interview Questions

How to check whether some services are running in another server or not? Suppose i am currently in a server named A.I want to check whether some services are running in server B without logging into the server B.

3 Answers   Amazon, MBA, Syntel, TCS, Unisys,


How do I clear my terminal history?

0 Answers  


What are awk commands?

0 Answers  


What is the comma to display different lines that are found when compare two files?

0 Answers  


What is the syntax of grep command and what is its use?

6 Answers  


distinguish between multi-tasking,multi-user,multi- processing and time sharing?

4 Answers   Infosys, Nikhil Construction,


What is a shell in Unix? Name some common Unix shells.

2 Answers  


What is the difference between pipe (|) and tee command in unix

14 Answers   Cap Gemini, TCS,


1-how will you display a file whose name is starting with '- '? 2-how will you add a patten at end of every line in vi editor?

7 Answers  


Does cp command overwrite files?

0 Answers  


How to replace the exact word in vi editor?? suppose a file contains words like amaze,amazed,amazement in some of the line.But i want to replace only 'amaze' with delight but don't wanna replace amazed or amazement. thanks

6 Answers   Polaris, Tech Mahindra,


How to rename files and folders?

7 Answers   IBM, Oracle,


Categories