Write LINUX/UNIX shell commands to carry out the following tasks.
a. Count the number of characters, words, and lines in the a file called ‘data1’ and display the output on the display screen.
b. Count the number of characters, words, and lines in the output of the ls -l command and display the output on the display screen.
c. Same as in part (b), but redirect the output to a file called ‘data1.stats’.
a. wc data1
b. ls -l | wc
c. ls -l | wc > data1.stats
You might also like to view...
Inheritance is represented by a(n) ________ relationship.
a) "uses" b) "is-a" c) "has-a" d) None of the above.
When should you apply patches to the operating system?
A) Only when recommended by the software vendor B) Any time a critical patch is released C) On a yearly basis D) Every day
The active window displays a darker title bar than other windows on the screen
Indicate whether the statement is true or false
This version of Mac OS X included new advanced utilities, improved integration with iOS devices, and better integration with cloud computing.
A. Mavericks B. Sierra C. Yosemite D. High Sierra