Give a command line for displaying the number of users currently logged onto your system

What will be an ideal response?


Any one of the following commands can be used to perform the task.
a) who | wc -l
b) who -q | tail -1
c) who -q | grep “^total users”
d) set `who | wc`
echo “$1”
e) echo “There are `who | wc -l` users currently logged on the system.”

Computer Science & Information Technology

You might also like to view...

All browsers recognize and understand CDATA sections.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

Records in a sequential file are not usually updated in place. Instead ________.

a. the updated data is placed in a “surrogate” file b. the entire file is usually rewritten c. the file is truncated d. The above statement is false—records in sequential files are usually updated in place.

Computer Science & Information Technology

Mark as Final is considered a security feature by Microsoft

Indicate whether the statement is true or false

Computer Science & Information Technology

When an Activity moves to the top of the Activity stack, the current Activity is informed that it is being pushed down the Activity stack by what method?

a. onPause() b. onStop() c. onResume() d. onReload()

Computer Science & Information Technology