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 copy multiple files and directories into some other directory?

4 Answers  


How to setup sudo, only can use for particular date & time only ( for solaris10 )

1 Answers   ups,


boot process?

2 Answers   Atos Origin, Wipro,


what is the use of the hidden files?

3 Answers  


What is {} in find command?

0 Answers  






Write a command that will output the sorted contents of a file named in.txt and place the output in another file named out.txt, while at the same time excluding duplicate entries.

1 Answers  


How do you grep recursively?

0 Answers  


What is the different between UNIX command and UNIX shell script?

2 Answers  


What is rmdir command?

0 Answers  


What is grep command in unix with examples?

0 Answers  


distinguish between physical addresses and logical address?

3 Answers   Infosys,


How to get a particular string as your prompt ? Give syntax of that command?

3 Answers  


Categories