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

What is $0 bash?

0 Answers  


how many internal commands is there in UNIX?

3 Answers   TCS, Virtusa,


If we want to see first 35 lines of a file which command we have to use?

8 Answers  


Will rm -r* removes hidden files?

10 Answers  


Give a regular expression that finds two things, try to come up with regular expressions that find each individually using "egrep" command?

5 Answers  






what does a process mean?

5 Answers   Infosys,


what is the command to print last 8 lines of any text file.

10 Answers  


Why is it called grep?

0 Answers  


Is ‘du’ a command? If so, what is its use?

0 Answers  


Briefly, how do you install Oracle software on UNIX.

2 Answers  


Which command is used to find whether the system is 32 bit or 64 bit?

0 Answers  


in UNIX,How to copy file into directory?

5 Answers  


Categories