operating systems Online Quiz - 68
Description: operating systems Online Quiz - 68 | |
Number of Questions: 20 | |
Created by: Aliensbrain Bot | |
Tags: operating systems |
A user types history command and gets the following output
141 cd .tcs
142 ll tcs.lst
143 pwd
144 vi tcs.lst
145 ll -lrt | awk '{ print $NF }'
146 echo "Test"
147 ps -ef | grep lsnr
148 grep a *
149 ls
150 echo $PWD
Refering to the scenario above, which one of the following is not a method for recovering the pwd command
Consider the script
let i=2
while (( i <= ($l - 1) )); do
if (( ($l % i ) == 0 )); then
print $i $l $?
break;
fi
let i=i+1
done
What is the program all about and what are the possible outputs?
"A user types history command and gets the following output 141 cd .tcs 142 ll tcs.lst 143 pwd 144 vi tcs.lst 145 ll -lrt | awk '{ print $NF }' 146 echo ""Test"" 147 ps -ef | grep lsnr 148 grep a * 149 ls 150 echo $PWD Refering to the scenario above, which one of the following is not a method for recovering the pwd command"
Consider the script "beach.sh" for i in $1; do if (( ${#i} > 4 )); then print -n "#$i " fi done beach.sh "On the beach at night, stands a child with her father" What is the output of this script?
Which of the following command sets the previously undefined variable x to 40?
Consider the script let i=2 while (( i <= ($l - 1) )); do if (( ($l % i ) == 0 )); then print $? break; fi let i=i+1 done What is the program all about and what are the possible outputs
Which one of the following command shows the last 50 commands the user has entered.
Which one of the following is the syntax for a pattern that matches the null string or a filename beginning with a or A
Consider the following case echo * We know that the output will be the list of all the files in current directory or equivalent to ls output. Which of the following command gives the ouput as * for the above script.
#! /bin/ksh for i in 1 2 3 4 ......... 50 # loop from 1 to 50 do let i=i+1 done echo $i What is the output of the above script.
Crown margin mode can be done using which command?
Which key allows to append the script in next line
Command to set the default file permssions of a user
What is the default configuration for regular files?
Command that is used to find text matches from a file?
Command to find out what kind of a Unix system you are on ?
Command to find how long a user is logged in ?
Command to check connections with a remote host
Command to view the beginning of multiple files ?
The numeric permission "400" stands for?