Lpi LPIC-1 Exam 101, Part 1 of 2, version 5.0 - 101-500무료 덤프문제 풀어보기
Which of the following is correct when talking about mount points?
정답: A
설명: (Fast2test 회원만 볼 수 있음)
Which of the following files is not read directly by a Bash login shell?
정답: D
What information related to a user account is modified using the chage command?
정답: C
Which Bash environment variable defines in which file the user history is stored when exiting a Bash process? (Specify ONLY the variable name.)
정답:
HISTFILE
The HISTFILE environment variable defines in which file the user history is stored when exiting a Bash process. The user history is a list of commands that the user has entered in the Bash shell. By default, the HISTFILE variable is set to ~/.bash_history, which means that the history is stored in a hidden file called .
bash_history in the user's home directory. The user can change the value of the HISTFILE variable to store the history in a different file or location. For example, the following command will set the HISTFILE variable to ~/my_history:
export HISTFILE=~/my_history
This will cause the history to be stored in a file called my_history in the user's home directory. The user can also unset the HISTFILE variable to disable the history saving feature. For example, the following command will unset the HISTFILE variable:
unset HISTFILE
This will prevent the history from being written to any file when the Bash process exits. The user can view the value of the HISTFILE variable by using the echo command. For example, the following command will display the value of the HISTFILE variable:
echo $HISTFILE
The output will be something like:
/home/user/.bash_history
References:
[LPI Exam 101 Detailed Objectives], Topic 103: GNU and Unix Commands, Objective 103.1: Work on the command line, Weight: 4, Key Knowledge Areas: Use of history and HISTFILE.
How To Read and Set Environmental and Shell Variables on Linux, Topic: How the Environment and Environmental Variables Work.
The HISTFILE environment variable defines in which file the user history is stored when exiting a Bash process. The user history is a list of commands that the user has entered in the Bash shell. By default, the HISTFILE variable is set to ~/.bash_history, which means that the history is stored in a hidden file called .
bash_history in the user's home directory. The user can change the value of the HISTFILE variable to store the history in a different file or location. For example, the following command will set the HISTFILE variable to ~/my_history:
export HISTFILE=~/my_history
This will cause the history to be stored in a file called my_history in the user's home directory. The user can also unset the HISTFILE variable to disable the history saving feature. For example, the following command will unset the HISTFILE variable:
unset HISTFILE
This will prevent the history from being written to any file when the Bash process exits. The user can view the value of the HISTFILE variable by using the echo command. For example, the following command will display the value of the HISTFILE variable:
echo $HISTFILE
The output will be something like:
/home/user/.bash_history
References:
[LPI Exam 101 Detailed Objectives], Topic 103: GNU and Unix Commands, Objective 103.1: Work on the command line, Weight: 4, Key Knowledge Areas: Use of history and HISTFILE.
How To Read and Set Environmental and Shell Variables on Linux, Topic: How the Environment and Environmental Variables Work.
Which of the following commands will write a message to the terminals of all logged in users?
정답: A
설명: (Fast2test 회원만 볼 수 있음)
Which of the following file permissions belong to a symbolic link?
정답: A
설명: (Fast2test 회원만 볼 수 있음)
Which of the following commands changes all CR-LF line breaks in the text file userlist.txt to Linux standard LF line breaks and stores the result in newlist.txt?
정답: A
설명: (Fast2test 회원만 볼 수 있음)
Which of the following statements is correct regarding the command foo 1> bar?
정답: B
설명: (Fast2test 회원만 볼 수 있음)
Which of the following commands can be used to display the inode number of a given file?
정답: B
설명: (Fast2test 회원만 볼 수 있음)
You are having some trouble with a disk partition and you need to do maintenance on this partition but your users home directories are on it and several are logged in. Which command would disconnect the users and allow you to safely execute maintenance tasks?
정답: B
설명: (Fast2test 회원만 볼 수 있음)
What is true regarding the configuration of yum? (Choose two.)
정답: A,C
설명: (Fast2test 회원만 볼 수 있음)