Find all users on your system whose user IDs are greater than 99, and the number of users on your system whose user IDs are greater than 99.

What will be an ideal response?


First you can use:
grep -E '\*:[0-9]{3,}:' /etc/passwd | cut -d: -f1
to generate a list of the users whose ID are greater than 99, then you can pipe it to wc -l instead of cut to calculate the total number of users that match the criteria.

Computer Science & Information Technology

You might also like to view...

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

1. When you write ifstream inStream; inStream.open(”infile.dat”); the file, infile.dat must be located in the directory where the program is being run. 2. When you use the open member function to tie a file name to a file stream, the file name is called the external file name, and the program refers to the file by the stream name.

Computer Science & Information Technology

A risk with _________ is the possibility of starvation for longer processes, as long as there is a steady supply of shorter processes.

A) ?SRT ? B) ?SPN ? C) ?FIFO ? D) ?FCFS

Computer Science & Information Technology

A(n) ____________________ is a system of computers, print devices, network devices, and computer software linked by communications cable or radio waves.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

You may choose Access over Excel in all of the following situations EXCEPT when you:

A) have a large amount of data. B) need to create complex charts. C) need to group data based on various parameters. D) require multiple related tables to store your data.

Computer Science & Information Technology