Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Part 2 Short answers. (24 points in total) 1) (3 points) Write a single line UNIX command to list all C files matching the multiple

image text in transcribed
Part 2 Short answers. (24 points in total) 1) (3 points) Write a single line UNIX command to list all C files matching the multiple conditions below: . at directory "/home/exam2" . filename starting with T or 't The length of filename (excluding .e) is at least 3 2) (2 points) Write a single line UNIX command to add the directory "/home/exam2" into the PATH variable. 3) (2 points) In order to let a shell script run using Bourne shell, what command we should write in that shell script. 4) (2 points) Write a single line UNIX command to store the names of all the C files located at parent directory into a text file Clist.txt.. 5) (2 points) Write a single line UNIX command to run an executable C program testC at background and mail the output to email address test@ssu.edu. 6) (2 points) Write a single line UNIX command to output the returned value of last command. 7) (2 points) In the format string % 6.21f, explain the meaning of 6, 2 and 1f respectively. And what will be printed for expression 123.345 with this format string? 8) (3 points) Rewrite the following loop so that its body is empty: for (i 0;i

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions