How does the user view the contents of a text file in UNIX?
Answers were Sorted based on User's Feedback
Answer / shaishaw
cat filename
less filename
more filename
view filename
vi filename
fold filename
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / kamal
cat file, less file, more file, tail -n file, head file
| Is This Answer Correct ? | 2 Yes | 1 No |
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 |
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 |
What does the md command do?
What is Unix, and how does it differ from other operating systems?
What difference between cmp and diff commands?
what is virtual machine?
Write a grep (or grep) command that selects the lines from a file that have exactly three characters.
how to unzip the contents of the gzip file
how unix kernel distinguishes between a normal file and device file ?
7 Answers Google, IBM, McAfee, Vodafone,
fork in unix ?
How do I run a bash script?
Does cp command overwrite files?
what is the command to print last 8 lines of any text file.
Can you explain a little bit about command substitution?