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 |
Write a command that will find all text files in a directory such that it does not contain the word "amazing" in any form (that is, it must include the words amazing, amazing, or amazing)?
What UNIX command will control the default file permissions when files are created?
What is the behavioural difference between cmp and diff commands?
What is {} in find command?
What does 'mkdir' command do in UNIX?
How do you find out all processes that are currently running in UNIX OS?
What is the protocol for PING command?
how to unzip the contents of the gzip file
How do I use grep to search for a file?
What does the command '$ls | wc –l > file1' do?
Suppose 1000 processes are running on the system out of those if you have to show only certain process ids which command will you use?
What is used to type command?