Here is oDesk Unix Test with score 3.40 of 5 (Passing Score was 2.50).
August, 2012
Aattention: ose only educational purposes!
| Topic | Correct Answers(%) |
|---|---|
| Basic Concepts and Administration | 67% |
| Commands | 86% |
| File Commands | 75% |
| Filters | 50% |
| Filters and Shells | 75% |
If anyone knows which answer is incorrect please write as comment.
a. With highest priority
b. With highest speed
c. Only when no other process is running on the system
d. In the background
e. Is invalid
a. show route
b. route status
c. netstat -rn
d. None of the above
a. $cal april 2007
b. $cal april 07
c. $calendar 4 07
d. $cal 4 2007
a. timer
b. at
c. time
d. atq
e. dd
a. tput cup
b. tput smso
c. tput rmso
d. tput blink
e. tput reverse
a. -n
b. -c
c. -d
d. -l
e. -v
a. /
b. home
c. /home/username
d. usr/
e. usr>
f. usr/username
a. It has the provision of security through the login and passwd programs.
b. In it the file names are not case insensitive.
c. It has the provision of various commands and utilities for file and directory manipulation.
d. It does not allow relative path names.
e. It allows the use of wild-card characters forfile-name expansion.
a. Setting permissions for files and directories
b. Creation of users and group-ids
c. Providing security through the use of passwords
d. a and c
e. a,b and c
a. vs = ‘hello’
b. vs-hello?
c. vs=hello
d. a or b
e. b or c
a. Ctrl+a
b. Ctrl+b
c. Ctrl+c
d. Ctrl+d
e. Ctrl+e
a. mail raven>abc
b. mail raven<
c. mail raven«abc
d. mail raven abc
a. -r
b. -f
c. -n
d. -t
e. -o
a. pwd
b. cd
c. Is
d. mv
e. cp
a. -u
b. -d
c. -c
d. -l
e. -r
a. chmod
b. chgroup
c. chgrp
d. grpch
a. searches for specific patterns of characters in file.
b. is used for locating words in a file.
c. Is used to locate files in a directory and in all subdirectories of that directory.
d. can only be used by the administrator.
e. is used for locating users in a network.
a. the name of a command.
b. the name of the administrator.
c. the name of the UNIX server.
d. a program in a state of execution
e. another name for a file.
a. /var/adm/sw/install
b. /var/adm/sw/software
c. /var/adm/sw/recent
d. /var/adm/sw/products
a. $ msg
b. $ talk
c. $ send
d. $ call
a. /usr/init
b. /usr/profile
c. /usr/startup
d. /etc/startup
e. /etc/profile
a. cut
b. head
c. tail
d. b and c
e. a, b and c
a. File Not Found
b. Stale File Handle
c. Invalid Command
d. File Inaccessible
a. pwd
b. cd
c. ls
d. mv
e. rm
a. talk
b. write
c. chat
d. talkto
e. transmit
a. More than one process can be active even if there is only one processor.
b. A background process runs as a child process of the shell.
c. If the parent process is killed.then always, the child process is also terminated,
d. A process can be killed by pressing the ctrl+c keys.
e. A process can be killed by the kill command.
a. /
b. :
c. ,
d. ;
a. grep
b. cut
c. tr
d. wc
e. tee
a. []
b. ^
c. $
d. .
e. \
Alexandre Dumas
Alexandre Dumas
Alexandre Dumas
Gerald Durrell
Giovanni Guareschi
Giovanni Guareschi
James Herriot
Louisa May Alcott
Louisa May Alcott
Louisa May Alcott
Based on the above information, what will be the output of the command
uniq -u oldies-goldies ?
a. Gerald Durrell
b. James Herriot
c. Gerald Durrell
James Herriot
d. Alexandre Dumas
Gerald Durrell
Giovanni Guareschi
James Herriot
Louisa May Alcott
e. Louisa May Alcott
a. 3
b. 4
c. 5
d. 6
e. 7
a. Ctrl + q
b. Ctrl + d
c. Ctrl + s
d. Ctrl + r
e. Ctrl + z
a. filecmp
b. filecompare
c. filediff
d. diff
a. 0
b. 1
c. 2
d. 3
e. 4
a. cp
b. mv
c. concat
d. ls
e. cat
a. The terminal is the standard source for input and the standard output and standard error destination for most UNIX commands.
b. All data sources and destinations are treated as files in UNIX.
c. The three standard files have a file descriptor
0 – standard output file
1 – standard input file
2 – standard error file
d. The input. output and error output can be redirected to a file other than the standard file using file descriptors and the > or < symbol.
e. The output and error can be redirected in the append mode to add the redirected output or error to an existing file using the » symbol.
a. sort
b. grep
c. uniq
d. P9
e. echo
a. /etc/profile
b. /etc/home
c. /etc/passwd
d. /etc/conf
a. Ctrl+c
b. Ctrl+d
c. Ctrl+u
d. Ctrl+s
e. Ctrl+q
a. passwd
b. pass
c. chpass
d. password
e. setpass
I think correct answers are:
6. Which option of the grep filter prints out all those lines that do not match the pattern specified by the regular expression?
e. -v
10. You want to declare a variable vs with the value hello. Which of the following declarations is correct ?
c. vs=hello
15. Which option of the uniq command would you use to display only those lines which have a multiple occurrence ?
b. -d
18. With regard to UNIX, a process is:
d. a program in a state of execution
19. Which of the following locations store the information about the currently installed Software on a local system?
d. /var/adm/sw/products
23. Which error will you see when an NFS client can no longer access mounted file system?
b. Stale File Handle
30. The file oldies-goldies has the details of the sale of books. The records are sorted on the names of the authors and are as follows
Alexandre Dumas
Alexandre Dumas
Alexandre Dumas
Gerald Durrell
Giovanni Guareschi
Giovanni Guareschi
James Herriot
Louisa May Alcott
Louisa May Alcott
Louisa May Alcott
Based on the above information, what will be the output of the command
uniq -u oldies-goldies ?
c. Gerald Durrell
James Herriot
31. What is the number of fields in each line in /etc/passwd file?
e. 7
34. What is the file descriptor for the standard output file ?
b. 1
35. Which command enables you to concatenate files ?
e. cat
38. Which of the following files is configured for login name, login directory and login shell variables?
c. /etc/passwd