Real Exam Questions 102-500 Dumps Exam Questions in here [Sep-2021]
Get Latest Sep-2021 Conduct effective penetration tests using 102-500
NEW QUESTION 113
Which command is used to set the hostname of the local system? (Specify ONLY the command without any path or parameters.)
Answer:
Explanation:
hostname
NEW QUESTION 114
Which of the following are syslog facilities? (Choose two.)
- A. local5
- B. mail
- C. remote
- D. accounting
- E. postmaster
Answer: A,B
NEW QUESTION 115
Which of the following configuration files should be modified to globally set shell variables for all users?
- A. /etc/profile
- B. /etc/bashrc
- C. ~/.bash_profile
- D. /etc/shellenv
- E. /etc/.bashrc
Answer: A
NEW QUESTION 116
After adding a new email alias to the configuration, which command must be run in order to ensure the MTA knows about it? (Specify the command without any path but including all required parameters.)
Answer:
Explanation:
newaliases, sendmail -bi
NEW QUESTION 117
What is true about the file /etc/localtime?
- A. It is either a symlink to or a copy of a timezone information file such as /usr/share/zoneinfo/ Europe/Berlin.
- B. It is created and maintained by the NTP service based on the location of the system's IP address.
- C. It is a plain text file containing a string such as Europe/Berlin
- D. It is a symlink to /sys/device/clock/ltime and always contains the current local time.
- E. After changing this file, newtzconfig has to be run to make the changes effective.
Answer: A
NEW QUESTION 118
Which of the following commands can be used to limit the amount of memory a user may use?
- A. umask
- B. usermod
- C. ulimit
- D. passwd
- E. chage
Answer: C
NEW QUESTION 119
Which command allows you to make a shell variable visible to subshells?
- A. set VARIABLE
- B. set $VARIABLE
- C. export VARIABLE
- D. env VARIABLE
- E. export $VARIABLE
Answer: C
NEW QUESTION 120
Given the following routing table:
How would an outgoing packet to the destination 192.168.2.150 be handled?
- A. It would be directly transmitted on the device eth0.
- B. It would be passed to the default router 192.168.178.1 on wlan0.
- C. It would be passed to the router 192.168.1.1 on eth0.
- D. It would be directly transmitted on the device wlan0.
- E. It would be passed to the default router 255.255.255.0 on eth0.
Answer: C
NEW QUESTION 121
Which of the following find commands will print out a list of files owned by root and with the SUID bit set in
/usr?
- A. find /usr -uid 0 -perm +4000
- B. find -user root +mode +s /usr
- C. find /usr -ls \*s\* -u root
- D. find -type suid -username root -d /usr
- E. find /usr -suid -perm +4000
Answer: A
NEW QUESTION 122
You need to pause the CUPS printer HPLaserjet4, and you want to cancel all print jobs with a message,
"hello". Which command will do this?
- A. cupsreject -c -r hello HPLaserjet4
- B. cupsdisable -p -m hello HPLaserjet4
- C. cupsreject -p -m hello HPLaserjet4
- D. cupsdisable -c -r hello HPLaserjet4
Answer: D
NEW QUESTION 123
What keyword is missing from this code sample of a shell script?
____ i in *.txt; do
echo $i
done
- A. loop
- B. until
- C. for
- D. while
Answer: C
NEW QUESTION 124
Which of the following programs uses the hosts.allow file to perform its main task of checking for access control restrictions to system services?
- A. mountd
- B. fingerd
- C. inetd
- D. tcpd
- E. xinetd
Answer: D
NEW QUESTION 125
What is the difference between the commands test -e path and test -f path?
- A. The -f option tests for a regular file. The -e option tests for an empty file.
- B. They are equivalent options with the same behaviour.
- C. The -f option tests for a regular file. The -e option tests for an executable file.
- D. Both options check the existence of the path. The -f option also confirms that it is a regular file.
Answer: D
NEW QUESTION 126
Which of the following commands preloads and manages existing SSH keys that are used for automatic authentication while logging in to order machines using SSH?
- A. ssh-agent
- B. ssh-keygen
- C. ssh-pki
- D. ssh-keyring
- E. sshd
Answer: B
NEW QUESTION 127
Which crontab entry could be used to set the system time at regular intervals?
- A. 1 0 * * * ntpdate ntp1.digex.net
- B. 1 0 * * * settime $d $t $24
- C. 1 0 * * * date $d $t $24
- D. 1 0 * * * runcron date ntp1.digex.net
- E. 1 0 * * * date ntp1.digex.net
Answer: A
NEW QUESTION 128
Which of the following features are provided by SPICE? (Choose two.)
- A. Connecting local USB devices to remote applications.
- B. Downloading and locally installing applications from a remote machine.
- C. Accessing graphical applications on a remote host.
- D. Uploading and running a binary program on a remote machine.
- E. Replacing Xorg as local X11 server.
Answer: A,B
NEW QUESTION 129
FILL BLANK
When using X11 forwarding in SSH, what environment variable is automatically set in the remote shell in order to help applications to connect to the correct X11 server? (Specify only the environment variable without any additional commands or values.)
Answer:
Explanation:
DISPLAY
NEW QUESTION 130
What the echo $$ command?
- A. The process ID of the current shell.
- B. The process ID of the last command executed.
- C. The process ID of the echo command.
- D. The process ID of the last command which has been placed in the background.
- E. The process ID for the following command.
Answer: A
NEW QUESTION 131
How is the file format of /etc/crontab different from a normal crontab file? (Select TWO correct answers)
- A. A normal crontab file allows for environment variable substitution.
- B. The /etc/crontab file has a user field for commands.
- C. A normal crontab file must be installed with the crontab command.
- D. The /etc/crontab file can specify a year field.
Answer: B,C
NEW QUESTION 132
Which of the following comparison operators for test work on elements in the file system? (Choose two.)
- A. -eq
- B. -z
- C. -f
- D. -d
- E. -lt
Answer: C,D
NEW QUESTION 133
What is true about the file /etc/localtime?
- A. It is created and maintained by the NTP service based on the location of the system's IP address.
- B. It is a plain text file containing a string such as Europe/Berlin
- C. It is either a symlink to or a copy of a timezone information file such as
/usr/share/zoneinfo/Europe/Berlin. - D. It is a symlink to /sys/device/clock/ltime and always contains the current local time.
- E. After changing this file, newtzconfig has to be run to make the changes effective.
Answer: C
NEW QUESTION 134
Which of the following configuration files should be modified to set default shell variables for all users?
- A. /etc/profile
- B. /etc/bashrc
- C. ~/.bash_profile
- D. /etc/.bashrc
Answer: A
NEW QUESTION 135
Which of the following files assigns a user to its primary group?
- A. /etc/shadow
- B. /etc/gshadow
- C. /etc/passwd
- D. /etc/group
- E. /etc/pgroup
Answer: C
NEW QUESTION 136
Which of the following can the chage command NOT change?
- A. The number of days since January 1, 1970 after which the user's account will no longer be accessible.
- B. The number of days since January 1, 1970 since the password was last changed.
- C. The maximum number of days during which a password is valid.
- D. The number of days of inactivity after a password has expired before the account is locked.
- E. The number of days since January 1, 1970 after which the password can change.
Answer: E
NEW QUESTION 137
What information related to a user account is modified using the chage command?
- A. Default ownership for new files
- B. Set of commands available to the user
- C. Group membership
- D. Default permissions for new files
- E. Password expiry information
Answer: E
NEW QUESTION 138
......
Authentic Best resources for 102-500 Online Practice Exam: https://www.dumpstests.com/102-500-latest-test-dumps.html
Get the superior quality 102-500 Dumps with explanations waiting just for you, get it now: https://drive.google.com/open?id=1h8hrZJRmVtuACocvILdRVM97vPliVKSy