Question: Write down the commands that can do the following tasks: a) Find out how many lines are there in the output of 'man -k

Write down the commands that can do the following tasks: a) Find out how many lines are there in the output of 'man -k read' Hint: 'we' and pipeline b) Find out how many words are there in the file 'dirent.h' Hint 1: The file is located at /usr/include/dirent.h Hint 2: Use 'cat' (or 'more', 'less') and pipeline to 'wc' c) Change the mode (the permission of a file) Hint: Search the manual for "change mode" www
Step by Step Solution
There are 3 Steps involved in it
Heres a concise introduction for each task a Task Counting the lines in the output of the man k read command b Task Counting the words in the file direnth c Task Changing the mode permissions of a fil... View full answer
Get step-by-step solutions from verified subject matter experts
