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 can we "forked" process in UNIX? How then recognize in any of the branches we?

2 Answers   NIIT,


What is rmdir command?

0 Answers  


Explain iostat, vmstat and netstat.

3 Answers   CTS, Wipro,


Give Command that will move a single file called "unix.txt"

7 Answers   IBM,


what are processor execution levels and priorities?

2 Answers   Infosys,






How do you copy a directory with many files and folders into another directory?

2 Answers  


Describe the zip/unzip command using gzip.

0 Answers  


How to get the operating system's information in unix?

6 Answers   IBM, TCS,


What is command substitution?

0 Answers  


What does #!/ Bin sh do?

0 Answers  


How do I run a bash script?

0 Answers  


what is the default permission for /etc/shadow file in UNIX

2 Answers   Wipro,


Categories