Comptia (XK0-004) Exam Questions And Answers page 49
A junior systems administrator is configuring localization option environment variables. The administrator is given a checklist of tasks with the following requirements:
• View current settings of the LC_ALL environment variable only.
• Modify the LANG environment variable to US English Unicode.
Given this scenario, which of the following should be performed to meet these requirements? (Choose two.)
• View current settings of the LC_ALL environment variable only.
• Modify the LANG environment variable to US English Unicode.
Given this scenario, which of the following should be performed to meet these requirements? (Choose two.)
locale
cat $LC_ALL
export LANG = en_US.UTF-8
export $LANG = en_US.UTF
stty
Command Line Interface
Shells, Scripting, and Data Management
A user tries to log in to the Linux console and receives the following message:
Your account has expired; Please contact your system administrator.
Which of the following commands was MOST likely run to create this behavior?
Your account has expired; Please contact your system administrator.
Which of the following commands was MOST likely run to create this behavior?
passwd
usermod
userdel
chage
Command Line Interface
Administrative Tasks
A Linux administrator tried to copy files to a remote server but received an error message indicating a lack of free space on the disk. The administrator issued a df command and verified adequate free space and inodes on the filesystem.
Which of the following commands is the BEST way to diagnose the issue?
Which of the following commands is the BEST way to diagnose the issue?
cat /proc/meminfo
lsof -nP | grep deleted
find / -type f -size +50M
du -a / | sort -n -r | head -n 30
Command Line Interface
Devices, Linux Filesystems, and Filesystem Hierarchy Standard
A Linux administrator needs to add some files in a directory to the Git repository but must exclude some local .tmp files that are occasionally created by the scripts.
Which of the following is the BEST way to accomplish this task?
Which of the following is the BEST way to accomplish this task?
git rm .tmp
git add -x .tmp *
echo .tmp >> .gitignore
rm -rf .tmp
Scripting and Automation
Shells, Scripting, and Data Management
Which one of the following best describes an Architecture Compliance Review?
A review of an architecture project against established criteria and business objectives
A review of the plans for enterprise transformation
A review of an organization s ability to share information and services
A review of the readiness of an organization to accept change
A review of the baseline and target architectures to identity gaps
Essential System Services
TOGAF provides guidelines on how to use the ADM to establish an architecture capability.Which one of the following is NOT a correct guideline?
Use the same approach as with any other capability
Regard the establishment as an ongoing practice
Apply the ADM with the specific vision to establish the practice
Treat the establishment as a one-off project
Administrative Tasks
Essential System Services
What is the purpose of the Architecture Vision document?
Single Choice
Which of the following describes the Architecture Vision document?
A description of individual change increments showing progression from the baseline to target architecture
A detailed schedule for implementation of the target architecture
A high level description of the baseline and target architectures
A joint agreement between the development team and sponsor on the deliverables and quality of an architecture
A set of rules and guidelines to support fulfilling the mission of the organization
Networking Fundamentals
A Linux team is using Git to version a set of custom scripts. A team member has made an update to a script and published the changes to the repository.
Which of the following is the BEST way to retrieve the latest changes to the administrator's local working copy?
Which of the following is the BEST way to retrieve the latest changes to the administrator's local working copy?
git fetch
git merge
git commit
git pull
Shells, Scripting, and Data Management
Administrative Tasks
A systems administrator needs to append output of ls lha /opt command to the contents of a test.txt file. Which of the following commands will accomplish this?
ls lha /opt > test.txt
ls lha /opt <>
ls lha /opt >> test.txt
ls lha /opt <>
Shells, Scripting, and Data Management
Which one of the following provides a foundation for making architecture and planning decisions, framing policies, procedures, and standards, and supporting resolution of contradictory situations?
Architecture principles
Buy lists
Procurement policies
Requirements
Stakeholder concerns
System Configuration and Management
Command Line Interface
Comments