1.
What switch is used with the useradd command to specify a user's initial group?
A. 
B. 
C. 
D. 
2.
What option is used with the useradd command to specify the user's user id?
A. 
B. 
C. 
D. 
3.
What option is used with the useradd command to specify the user's login shell?
A. 
B. 
C. 
D. 
4.
Which of the following can be used to change a user's home directory?
A. 
B. 
C. 
D. 
5.
You had a contractor come into your company. You originally set his account to expireafter thirty days. You now need to change this. How can you do this?
A. 
B. 
C. 
D. 
6.
You are logged in as user tux1, but now you want to switch users to tux2 with tux2'senvironment. How would you do this?
A. 
B. 
C. 
D. 
E. 
7.
You logged in as user linux1, but now you want to switch users to linux2 with linux'senvironment. How would you do this?
A. 
B. 
C. 
D. 
E. 
8.
Which of these commands would report how many total accounts (including specialaccounts) there are?
A. 
B. 
C. 
D. 
E. 
Expand --lines /etc/passwd
9.
What does the following command do? cat '$TEST'
A. 
Displays a bash syntax error message.
B. 
Displays the contents of the file named $TEST if it exists.
C. 
Waits for the user to enter text and then echos the text back.
D. 
Displays the contents of the file named inside the back quotes.
E. 
Displays the contents of the named by the environment variable TEST.
10.
file1 and file2 are text files in your local directory. file1 contains this: allan bart ceasar file2 contains this: alicia beatrice Cecilia What would the output of the following command be? tac file1 file2
A. 
Allan/ bart/ ceasar/ alicia/ beatrice/ cecilia
B. 
Alicia/ beatrice/ cecilia/ allan/ bart/ ceasar
C. 
Alicia/ beatrice/ cecilia/ ceasar/ bart/ allan
D. 
Cecilia/ beatrice/ alicia/ ceasar/ bart/ allan
E. 
Ceasar/ bart/ allan/ cecilia/ beatrice/ alicia
11.
Which of the following would copy the file file1.txt to file2.txt?
A. 
B. 
Cat file1.txt | file2.txt
C. 
Cat file1.txt > file2.txt
D. 
Copy file1.txt | file2.txt
E. 
Cat | file1.txt | file2.txt
12.
What command would help you identify the I/O address range being used by thenetwork card?
A. 
B. 
C. 
D. 
E. 
13.
Type the command will identify the io address range used by a NIC?
14.
What is the result of the following command?# cat 'echo "$ Certkiller
A. 
B. 
The value of $ Certkiller
C. 
Cat followed by the value of $ Certkiller
D. 
Echo followed by the value of $ Certkiller
E. 
Echo followed by $ Certkiller
15.
To convert all uppercase letters in stream to lowercase, pipe the stream into which
A. 
B. 
C. 
D. 
E. 
16.
Which of the following command would most likely be used to output a file inreverse? Choose TWO correct answers.
A. 
B. 
C. 
D. 
E. 
17.
You have a file with the following contents: A. allan B. bart C. ceasar D. alicia E. beatrice F. ceciliaWhat single command could you use to list the file contents in reverse order? (Includeonly the command without options or arguments)
18.
You have a file with the following contents: A. allan B. bart C. ceasar D. alicia E. beatrice F. CeciliaWhat single command could you use to list the file contents in reverse order? Pleaseinclude only the command without options or arguments.
19.
What command will easily convert tabs in files to spaces?
A. 
B. 
C. 
D. 
E. 
20.
Which of the following would do the same as the command cat < file1.txt > file2.txt?
A. 
Cat < file1.txt file2.txt
B. 
C. 
D. 
Cat file 1.txt | file2.txt
E. 
21.
Which of the commands will show you only the middle 10 lines of a 30 line text filenamed textfile?
A. 
B. 
Head -n 20 textfile | tail
C. 
D. 
Cat textfile | pr -n 11-20
E. 
22.
What command will show the first 10 lines of a file by default?
A. 
B. 
C. 
D. 
E. 
23.
What command will show the last 10 lines of a file by default?
A. 
B. 
C. 
D. 
E. 
24.
Your lead sysadmin has asked you to add a second NIC to a Linux machine.Which of the following commands would be best to determine which interrupts arecurrently in use on this machine?
A. 
B. 
C. 
D. 
E. 
25.
Which of the following will copy file1.txt to file2.txt? Choose Two.
A. 
Cat file1.txt > file2.txt
B. 
Cat file1.txt | file2.txt
C. 
D. 
E. 
Cpio < file1.txt > file2.txt