$od -cbd file_name command to display a file’s contents in various formats
c - character, b - binary (octal), d-decimal, od=Octal Dump.
$ echo *
It is similar to 'ls' command and displays all the files in the current directory.
Which symbol will be used with grep command to match the pattern pat at the beginning of a line?
A.^pat
B.$pat
C.pat$
D.pat^
Ans:A
Which command is used to sort the lines of data in a file in reverse order
A.sort
B.sh
C.st
D.sort –r
Ans:D
Which command is used to display the top of the file?
A.cat
B.Head
C.more
D.grep
Ans:B
Which command is used to change protection mode of files starting with the string emp and ending with 1,2, or 3?
A.chmod u+x emp[l-3]
B.chmod 777 emp*
C.chmod u+r ??? emp
D.chmod 222 emp?
Ans:A
Which command is used to extract specific columns from the file?
A.cat
B.Cut
C.grep
D.paste
Ans:B
Which command sends the word count of the file infile to the newfile.
A.wc infile >newfile
B.wc <infile >newfile
C.wc infile - newfile
D.wc infile | newfile
Ans:A
Which of the following commands is used to display the directory attributes rather than its contents?
A.ls -1 –d
B.ls -1
C.ls -x
D.ls -F
Ans:A
“tee” command:
It reads the standard input and sends it to the standard output while redirecting a copy of what it has read to the file specified by the user.
Whenever an update operation occurs on a page, the operation stores the LSN of its log record in the _______ field of the page.
a) LSN
b) ReadLSN
c) PageLSN
d) RedoLSN
Answer: c
Explanation: Each page maintains an identifier called the PageLSN.
c - character, b - binary (octal), d-decimal, od=Octal Dump.
$ echo *
It is similar to 'ls' command and displays all the files in the current directory.
Which symbol will be used with grep command to match the pattern pat at the beginning of a line?
A.^pat
B.$pat
C.pat$
D.pat^
Ans:A
Which command is used to sort the lines of data in a file in reverse order
A.sort
B.sh
C.st
D.sort –r
Ans:D
Which command is used to display the top of the file?
A.cat
B.Head
C.more
D.grep
Ans:B
Which command is used to change protection mode of files starting with the string emp and ending with 1,2, or 3?
A.chmod u+x emp[l-3]
B.chmod 777 emp*
C.chmod u+r ??? emp
D.chmod 222 emp?
Ans:A
Which command is used to extract specific columns from the file?
A.cat
B.Cut
C.grep
D.paste
Ans:B
Which command sends the word count of the file infile to the newfile.
A.wc infile >newfile
B.wc <infile >newfile
C.wc infile - newfile
D.wc infile | newfile
Ans:A
Which of the following commands is used to display the directory attributes rather than its contents?
A.ls -1 –d
B.ls -1
C.ls -x
D.ls -F
Ans:A
“tee” command:
It reads the standard input and sends it to the standard output while redirecting a copy of what it has read to the file specified by the user.
Whenever an update operation occurs on a page, the operation stores the LSN of its log record in the _______ field of the page.
a) LSN
b) ReadLSN
c) PageLSN
d) RedoLSN
Answer: c
Explanation: Each page maintains an identifier called the PageLSN.
0 comments:
Post a Comment