Linux and Shell Programming
Description: Test on Linux/Unix and shell programming | |
Number of Questions: 25 | |
Created by: Amish Majumdar | |
Tags: Linux Unix Shell Programming OS Profit & Loss Mixtures and Alligation Probability Arithematical Reasoning Odd One Out Blood Relations Coding Decoding Logical Games Logical Venn Diagram Logical Reasoning |
Which command is used to set permissions like read, write, etc. on a file?
The ___ command is used to display the path of the current directory.
Which of the following commands will print a sorted list of users on the screen?
Which key(s) is/are used to delete a single character in Vi editor?
Which directory contains all the executable files required during the booting process?
Each 'if' statement in Linux must be closed with a matching
The _____ command executes the given command and stores the standard output of that command in to one or more files.
Which of the following statements is the correct way of changing the user ID of a user named ABC to 555?
Which command is used to remove an existing environmental variable?
Which of the following statement is used to accept value from the user and store it in a variable?
Which of the following statements is false regarding user defined variables (UDV)?
Which of the following is not a valid shell script operator?
What will be the output of the above code?
i=5
while test $i != 0
do
echo "$i"
i=`expr $i - 1`
done
Which of the following is not a pre-defined AWK variable?
Which command is used to combine the contents of two files?
Which of the following statements is false regarding Shell?
Which of the following is not a part of the 'etc/passwd' file?
Which command is used to extract a column from a text file?
Which permission allows you to modify the contents of a file?
Which of the following is not a communication command?
The head command writes the first ____ lines of a file on the screen.
Which form of the 'ls' command is used to display the list of hidden files?
Which of the following is not a valid process signal with reference to the 'kill' command?
Which wild card character represents a range of characters during pattern search?
What will be the output of the above code?
if [( $x -eq 3 ) -a ( $y -eq 5 -o $z -eq 10 )]
then
echo $x
else
echo $y fi