Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

/////////////////////////////////////////////////////////// chose from the box 1

ID: 3577516 • Letter: #

Question


///////////////////////////////////////////////////////////
chose from the box


1) Currrent Working
2) execute
3) grep
4) group
5) Home
6) ls
7) piped into
8) read
9) Redirected
10) Root
11) search path
12) shell
13) source
14) Standard input
15) Standard Output
16) users
17) write
//////////////////////////////////////////////////////////////////
What is a process ? ___________________________________


FILL IN NUMBERS FOR THE CORRECT CHOICES FROM THE LIST IN BOX


When you first log in your ______ directory is your

______ . The command %cd / will change your


______ directory to the ______ directory.


When the Unix command line below is processed by the


command line interpreter or _________


% ls –l | grep FilterString > FILE


the _____ for the ­process named ______ becomes the


_______ for the process named, ______ and the _______


for the grep process is ______ into FILE.


The programs ls and grep are available because they are


in the directory /bin which is on the _____ for bash.


The command %chmod 764 FILE will allow other ­­­_____


in your ______ to ______ and _______ FILE.


(10 points)

a) The output from printf(“ %x “,((0xFACE ) >> 4) & 15); is


_________________


b) The output from printf(“ %u “, ( 146 << 3 )); is


_________________

Explanation / Answer

Solution:

1) What is a process ?

Series of tasks / procedures are performed in order to achieve successful execution of program.


When you first log in your "ROOT(10)"  directory is your "HOME (5)" . The command %cd / will change your "CURRENT WORKING(1)" directory to the " ROOT(10)" directory.

When the Unix command line below is processed by the command line interpreter or " SHELL (12) " % ls –l | grep FilterString > FILE the "STANDARD OUTPUT (15)" for the ­process named " ls (6) " becomes the " STANDARD INPUT (14)" for the process named, "GREP (3)" and the "SOURCE (13)" for the grep process is " REDIRECTED (9)" into FILE.

The programs ls and grep are available because they arein the directory /bin which is on the "SEARCH PATH (11)" for bash.

The command %chmod 764 FILE will allow other "USERS (16)" in your "GROUP (4)" to "READ (8)" and " WRITE (17)" FILE.


(10 points)

a) The output from printf(“ %x “,((0xFACE ) >> 4) & 15); is

soln:   C


b) The output from printf(“ %u “, ( 146 << 3 )); is

soln:   1168