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 awk command used for?
Describe the usage and functionality of the command rm –r * in unix?
Write a command to find all of the files which have been accessed within the last 30 days.
5 Answers Google, IBM, Satyam,
What is difference between grep and find command in unix?
How do you move or rename a file or directory?
How to remove a crontab file?
What is ‘ps’ command for?
If JFS file system is 100% full how we can increase the file system ?
What is the comma to show the space allocation of files?
What is the difference between grep and grep?
How many bits use for MAC address?
What is the use of cut command in unix?