Choose a topic to test your knowledge and improve your Unix/Lunux skills
Which of the following identifiers associated with a process decide its privilege level
The /etc/passwd file doesn’t contain
User id 0 is
The login shell is
Which of the following command can be used to change the user password?
What does the following command do ? who | wc –l
By default, a Linux user falls under which group?
Which of the following files need to be referred for users secondary group?
How do you print the lines between 5 and 10, both inclusive
Create a new file new.txt that is a concatenation of file1.txt and file2.txt
which of these is NOT a valid variable in bash
The expression expr -9 % 2 evaluates to:
The statement z = expr 5 / 2 would store which of the following values in z?
To feed standard output of one command to standard input of another in a single shell session
Which of the following commands allows definition and assignment of environment variables under bash
While executing a command, the shell
Which variable contains current shell process id
Which command is used to debug a shell script program
For every successful login, which script will be executed?
Hidden files are
Shell is ?
If a file with execute permissions set, but with unknown file format is executed
Which of the following is true?
Which is true with regards to the shell prompt
What is a shell in UNIX?
Which of the following represents an absolute path?
BASH shell stands for?
Which of the following files will not be displayed by the command cat re* ?
The redirection 2> abc implies
cmd 2>&1 > abc will
Which of these is the correct method for appending “foo” in /tmp/bar file?
Syntax to suppress the display of command error to monitor?
cat < file1 >> file2 | file3
Executing cat /etc/password > /dev/sda as superuser will
The $ variables in a shell script context designates
Which variable is used to display number of arguments specified in command line
Which variable contains last background job process id
Which command can be used to test various file attributes
* Specifies
? Specifies
Which of the following file set in the current directory are identified by the regular expression a?b*
What command would send the output of cmd1 to the input of cmd2?
What is the output of the following command for bash shell: echo linux $0
Which variable will display the list of the positional parameters?
Which option of grep displays the line number as well?
How can you search for blank line in a file?
Assuming the files fileA, fileB, fileAB, fileBC and fileABC, exist in a directory, which files match with the pattern file[ABC]?
What will be printed for the command below? $ grep –c “^echo” abc
Which one is used to select only one copy of the repeated lines?
Indicate the right option to search for BOB, Bob, BOb or BoB?