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 |
How do you copy a directory with many files and folders into another directory?
How can you change the owner or group of a file?
How to delete a directory containing files and folders?
29. How to display top 10 users Who | head -10 | wc –w
What does the command ' $who | sort –logfile > newfile' do?
which command is used to change group?
what is the difference between Touch & cat command
What does the md command do?
Write a command that will output the sorted contents of a file named in.txt and place the output in another file named out.txt, while at the same time excluding duplicate entries.
What are the dos commands?
How to setup sudo, only can use for particular date & time only ( for solaris10 )
What is the use of touch command in there?