adplus-dvertising
frame-decoration

Question

Which or the following commands would return process_id of sleep command?

a.

Sleep 1 and echo $?

b.

Sleep 1 and echo #

c.

Sleep 1 and echo $*

d.

Sleep 1 and echo $!

Answer: (b).Sleep 1 and echo #

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which or the following commands would return process_id of sleep command?

Similar Questions

Discover Related MCQs

Q. What does the following command do ?
grep − vn  "abc" x

Q. The Unix Kernel maintains two key data structures related to processes, the progress table and the user structure. Which of following information is not the part of user

Q. A Unix file may be of the type :

Q. Match the following for Unix system calls:

List – I List – II

(a) exec (i) Creates a new process

(b) brk (ii) Invokes another program overlaying memory space with a copy of an executable file

(c) wait (iii) To increase or decrease the size of data region

(d) fork (iv) A process synchronizes with termination of child process

code:
a b c d

Q. WOW32 is a :

Q. The Unix command :

$ vi file1 file2

Q.  _______ maintains the list of free disk blocks in the Unix file system.

Q. A part of Windows 2000 operating system that is not portable is

Q. Match the following with reference to Unix shell scripts : 

List-I                                                     List-II

a. $?                                 i.  File name of the current script

b. $#                                ii.  List of arguments

c. $0                                 iii. The number of arguments

d. $*                                  iv. Exit status of last command

Codes:
a       b       c       d

Q. The output generated by the LINUX command :
                     $ seq 1 2 10 
will be

Q. In UNIX, ______________ creates three subdirectories: 'PIS' and two subdirectories 'progs' and data from just created subdirectory 'PIS'.

Q. Which statement is not correct about “init” process in Unix?

Q. Unix command to change the case of first three lines of file “shortlist” from lower to upper

Q. Match the following vi commands in Unix:
List-I                   List-II
a.   :w        i. saves the file and quits
editing mode
b.   :x         ii. escapes unix shell
c.   :q         iii. saves file and remains
in editing mode
d. :sh       iv. quits editing mode and
no changes are saved to
the file

Codes:
     a   b  c  d

Q. The Unix Operating System Kernel maintains two key data structures related to processes, the process table and the user structure. Now, consider the following two statements:

I. The process table is resident all the time and contain information needed for all processes, even those that are not currently in memory.
II. The user structure is swapped or paged out when its associated process is not in memory, in order not to waste memory on information that is not needed.

Which of the following options is correct with reference to above statements ?

Q. Consider the following operations to be performed in Unix:

“The pipe sorts all files in the current directory modified in the month of “June” by order of size and prints them to the terminal screen. The sort option skips ten fields then sorts the lines in numeric order.”

Which of the following Unix command will perform above set of operations?

Q. Which of the following statement(s) is/are True regarding ‘nice’ command of UNIX?

I. It is used to set or change the priority of a process.
II. A process’s nice value can be set at the time of creation.
III. ‘nice’ takes a command line as an argument.

Q. In UNIX, processes that have finished execution but have not yet had their status collected are known as ................

Q. In UNIX operating system, when a process creates a new process using the fork() system call, which of the following state is shared between the parent process and child process?

Q. Which of the following information about the UNIX file system is not correct?