Give a command line for displaying the files lab1, lab2, lab3, and lab4. Can you give two more command lines that do the same thing? What is the command line for displaying the files lab1.c, lab2.c, lab3.c, and lab4.c? (Hint: Use shell metacharacters.)

What will be an ideal response?


You can use the
cat lab1 lab2 lab3 lab4
command for displaying the four files lab1, lab2, lab3, and lab4. You can use the more command for a page-by-page display of the files. The following commands can be used to perform the same task.
cat lab[1-4]
or
cat lab[1,2,3,4]
You can use the following command to display the lab1.c, lab2.c, lab3.c, and lab4.c files.
cat lab[1-4].c

Computer Science & Information Technology

You might also like to view...

The ________ allows you to move to the top and bottom of a table or scroll to a specific record

A) Arrows bar B) Navigation Pane C) Navigation bar D) Forward and Backward arrows

Computer Science & Information Technology

What feature in Windows Server 2012 gives you fine-tuned control over shared resources by using data classification?

A. Storage Spaces B. Resilient File System C. BranchCache D. Dynamic Access Control

Computer Science & Information Technology

You can display the Background Styles gallery by clicking the Background Styles button on the _____.

A. (Insert tab | Background Styles group) B. (Design tab | Styles group) C. (Design tab | Background group) D. (Format tab | Background group)

Computer Science & Information Technology

Adobe Premiere Pro is a highly rated application for movie editing that can be used on the _____.?

A. ?Windows operating system B. ?Linux operating system C. ?Mac operating system D. ?Solaris operating system

Computer Science & Information Technology