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 is the command to list files in a directory in UNIX?
What is the use of egrep command in unix?
What is merge command in unix?
Which unix command to make a new directory?
How do you change your account's password?
what are the different operating systems available?
Which unix command lists files/folders in alphabetical order?
what will be the output of ls ~/..
What does the command '$ls | wc –l > file1' do?
Explain ‘library functions’ with respect to unix commands?
how to find largest file?
14 Answers HCL, Microsoft, Thomson Reuters,
How do I search a whole word in vim?