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

Explain command to show the space allocation of files?

0 Answers  


What is the output of : $ ps-e $ ps-a commands

5 Answers   IBM,


Explain the terms ‘system calls’ and ‘library functions’ with respect to unix commands?

0 Answers  


What is the difference between cat and more command?

0 Answers  


what is mount ,tell me about mount ,how can u use in real time project??

12 Answers   Symphony,






Explain command to view process running?

0 Answers  


What Is the command to change a file's creation time. means one file is created at the time 15:19 then time should br changed to 14:14

8 Answers   3i Infotech, IBM,


How do you grep recursively?

0 Answers  


How to rename files and folders?

7 Answers   IBM, Oracle,


What do chgrp command do?

0 Answers  


What command a user use to view a long text file one page at a time in UNIX?

8 Answers   IBM,


Write a command to kill the last background job?

0 Answers  


Categories