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 |
Can you explain a little bit about command substitution?
what is the significance of "su" command?
What does the command '$ls | wc –l > file1' do?
How to delete a directory containing files and folders?
What is command statement?
what are filters?
How do I run a whois command?
What is unix command?
Is command prompt unix?
What is ctrl d?
what are processor execution levels and priorities?
Explain command to display different lines that are found when compare two files?