What is true regarding the command
ls > files
if files do not exist?
A. Any output of ls is discarded
B. The command files is executed and receives the output of ls
C. The output of ls is printed to the terminal
D. files is created and contains the output of ls
E. An error message is shown and ls is not executed
正解:D
解説: (Pass4Test メンバーにのみ表示されます)
質問 2:
Which of the following commands print the current working directory when using a Bash shell? (Choose two.)
A. echo "${PWD}"
B. pwd
C. echo "${WD}"
D. echo "${pwd}"
E. printwd
正解:A,B
解説: (Pass4Test メンバーにのみ表示されます)
質問 3:
Which of the following commands reboots the system when using SysV init? (Choose TWO correct answers.)
A. shutdown -r now
B. shutdown -r "rebooting"
C. telinit 0
D. telinit 6
E. shutdown -k now "rebooting"
正解:A,D
解説: (Pass4Test メンバーにのみ表示されます)
質問 4:
Which of the following file permissions belong to a symbolic link?
A. srwxrwxrwx
B. lrwxrwxrwx
C. -rwxrwxrwx
D. +rwxrwxrwx
正解:B
解説: (Pass4Test メンバーにのみ表示されます)
質問 5:
What is the difference between the i and a command of the vi editor?
A. i (interactive) requires the user to explicitly switch between vi modes whereas a (automatic) switches modes automatically.
B. i (insert) inserts text before the current cursor position whereas a (append) inserts text after the cursor.
C. i (independent rows) starts every new line at the first character whereas a (aligned rows) keeps the indentation of the previous line.
D. i (interrupt) temporarily suspends editing of a file to the background whereas a (abort) terminates editing.
正解:B
解説: (Pass4Test メンバーにのみ表示されます)
質問 6:
When running the command
sed -e "s/a/b/" /tmp/file >/tmp/file
While /tmp/file contains data, why is /tmp/file empty afterwards?
A. Redirection for shell commands do not work using the > character. It only works using the | character instead.
B. When the shell establishes the redirection it overwrites the target file before the redirected command starts and opens it for reading.
C. The file order is incorrect. The destination file must be mentioned before the command to ensure redirection.
D. The command sed did not match anything in that file therefore the output is empty.
正解:B
解説: (Pass4Test メンバーにのみ表示されます)
質問 7:
What output will be displayed when the user fred executes the following command?
echo 'fred $USER'
A. 'fred $USER'
B. fred fred
C. fred $USER
D. fred /home/fred/
E. 'fred fred'
正解:C
解説: (Pass4Test メンバーにのみ表示されます)
質問 8:
When in Normal mode invi, which character can be used to begin a reverse search of the text?
A. r
B. ?
C. /
D. F
正解:B
解説: (Pass4Test メンバーにのみ表示されます)
绀野** -
問題集101-500を使って試験に合格しました。これで受かる気がしたっと思って受験して本当に受かりました。安心感もありますし、知識もしっかりと身につくと思います。