201-400 無料問題集「Lpi LPIC-2 Exam 201, Part 1 of 2, version 4.0」
On an ext2 filesystem, a running daemon has created a large logfile that is beginning to fill the disk. After deleting the file with an "rm-f" command as root, "df" shows that the space is still in use even though the file is not shown using "ls". To reclaim this space you must:
正解:C
解答を投票する
解説: (JPNTest メンバーにのみ表示されます)
CORRECT TEXT
What can you type at a command line to determine which shell you are using?
What can you type at a command line to determine which shell you are using?
正解:
echo $SHELL
Explanation: The 'echo' command is used to echo a string to standard output. $shell is an environment variable that reflects the current shell in use. Therefore, the 'echo $shell' command will display the name and path of the shell you are using.
Explanation: The 'echo' command is used to echo a string to standard output. $shell is an environment variable that reflects the current shell in use. Therefore, the 'echo $shell' command will display the name and path of the shell you are using.
CORRECT TEXT
Which file contains configuration data for automount? Please enter the complete path.
Which file contains configuration data for automount? Please enter the complete path.
正解:
/etc/auto.master
CORRECT TEXT
In order to create a file called DirContents containing the contents of the /etc directory you would type _______.
In order to create a file called DirContents containing the contents of the /etc directory you would type _______.
正解:
ls /etc > DirContents
Explanation: Mostly all commands send their output to the screen or take input from the keyboard, but in Linux it is possible to send output to a file or to read input from a file. For example, the ls command sends it's output to screen; to send the output to a file, you can use the command ls > filename. This will send the output of the ls command to filename.
In this question, the ls command lists the contents of the /etc directory and sends the list to a file named DirContents.
Explanation: Mostly all commands send their output to the screen or take input from the keyboard, but in Linux it is possible to send output to a file or to read input from a file. For example, the ls command sends it's output to screen; to send the output to a file, you can use the command ls > filename. This will send the output of the ls command to filename.
In this question, the ls command lists the contents of the /etc directory and sends the list to a file named DirContents.
In the following output, what percentage of time was the CPU waiting for pending I/O?
# vmstat 1 100
procs -----------memory---------- ---swap-- -----io---- --system-- ----cpu---- r b swpd free buff cache si so bi bo in cs us sy id wa
0 0 0 282120 134108 5797012 0 0 0 2 0 0 0 0 100 0
0 0 0 282120 134108 5797012 0 0 0 0 1007 359 0 0 100 0
0 0 0 282120 134108 5797012 0 0 0 0 1117 577 0 0 100 0
0 0 0 282120 134108 5797012 0 0 0 0 1007 366 0 0 100 0
# vmstat 1 100
procs -----------memory---------- ---swap-- -----io---- --system-- ----cpu---- r b swpd free buff cache si so bi bo in cs us sy id wa
0 0 0 282120 134108 5797012 0 0 0 2 0 0 0 0 100 0
0 0 0 282120 134108 5797012 0 0 0 0 1007 359 0 0 100 0
0 0 0 282120 134108 5797012 0 0 0 0 1117 577 0 0 100 0
0 0 0 282120 134108 5797012 0 0 0 0 1007 366 0 0 100 0
正解:D
解答を投票する