51. The channel between the processor and devices is called?
52. The directory file contains:
53. Which command is used to replace word 'cat' (already present in the file) with 'mouse' at all places in a file 'old.txt' and save the result in a new file 'new.txt'?
54. Which command can be executed by a user who is already logged into the system, in order to change to the root user? (type the command without any parameters)
55. After running this program, if you enter 1000, then what will be the output of the program?
#!/bin/bash
echo "Please enter a number"
read a
if [ $a -lt 100 ]; then
echo "It is less than 100";
elif [ $a -lt 1000 ]; then
echo "It is less than 1000"
else
echo "It is greater than 1000"
fi
exit 0
#!/bin/bash
echo "Please enter a number"
read a
if [ $a -lt 100 ]; then
echo "It is less than 100";
elif [ $a -lt 1000 ]; then
echo "It is less than 1000"
else
echo "It is greater than 1000"
fi
exit 0
56. A user can change the default log-in shell using
57. What is /proc/self ?
58. Which one of the following statement is not true?
59. In awk program, the statement "print" with no items
60. The option -fsyntax-only of gcc
Read More Section(Linux)
Each Section contains maximum 100 MCQs question on Linux. To get more questions visit other sections.