CompTIA Linux+ v1.0

Page:    1 / 10   
Exam contains 141 questions

Which of the following best describes a use case for playbooks in a Linux system?

  • A. To provide a set of tasks and configurations to deploy an application
  • B. To provide the instructions for implementing version control on a repository
  • C. To provide the security information required for a container
  • D. To provide the storage volume information required for a pod


Answer : A

An administrator must secure an account for a user who is going on extended leave. Which of the following steps should the administrator take? (Choose two).

  • A. Set the user’s files to immutable.
  • B. Instruct the user to log in once per week.
  • C. Delete the user’s /home folder.
  • D. Run the command passwd -l user.
  • E. Change the date on the /home folder to that of the expected return date.
  • F. Change the user’s shell to /sbin/nologin.


Answer : DF

A systems administrator is preparing a Linux system for application setup. The administrator needs to create an environment variable with a persistent value in one of the user accounts. Which of the following commands should the administrator use for this task?

  • A. export "VAR=$VAR:value" >> ~/.ssh/profile
  • B. export VAR=value
  • C. VAR=value
  • D. echo "export VAR=value" >> ~/.bashrc


Answer : D

Which of the following is a reason multiple password changes on the same day are not allowed?

  • A. To avoid brute-forced password attacks by making them too long to perform
  • B. To increase password complexity and the system’s security
  • C. To stop users from circulating through the password history to return to the originally used password
  • D. To enforce using multifactor authentication with stronger encryption algorithms instead of passwords


Answer : C

Which of the following commands should an administrator use to convert a KVM disk file to a different format?

  • A. qemu-kvm
  • B. qemu-ng
  • C. qemu-io
  • D. qemu-img


Answer : D

A Linux software developer wants to use AI to optimize source code used in a commercial product. Which of the following steps should the developer take first?

  • A. Research which of the available AI chatbots are best at optimizing source code.
  • B. Verify that the company has a policy governing the use of AI in software development.
  • C. Install a private LLM to use on the internal network for source code optimization.
  • D. Use open-source LLMs that undergo regular security reviews by the community.


Answer : B

A DevOps engineer made some changes to files on a local repository. The engineer realizes that the changes broke the application and the changes need to be reverted back. Which of the following commands is the best way to accomplish this task?

  • A. git pull
  • B. git reset
  • C. git rebase
  • D. git stash


Answer : B

An administrator needs to remove the directory /home/user1/data and all of its contents. Which of the following commands should the administrator use?

  • A. rmdir -p /home/user1/data
  • B. ln -d /home/user1/data
  • C. rm -r /home/user1/data
  • D. cut -d /home/user1/data


Answer : C

Users cannot access an application that is running inside containers. The administrator wants to validate whether the containers are running. Which of the following commands should the administrator use?

  • A. docker start
  • B. docker ps
  • C. docker run
  • D. docker images


Answer : B

Which of the following commands should a Linux administrator use to determine the version of a kernel module?

  • A. modprobe bluetooth
  • B. lsmod bluetooth
  • C. depmod bluetooth
  • D. modinfo bluetooth


Answer : D

A Linux administrator is making changes to local files that are part of a Git repository. The administrator needs to retrieve changes from the remote Git repository. Which of the following commands should the administrator use to save the local modifications for later review?

  • A. git stash
  • B. git pull
  • C. git merge
  • D. git fetch


Answer : A

A systems administrator is creating a backup copy of the /home/ directory. Which of the following commands allows the administrator to archive and compress the directory at the same time?

  • A. cpio -o /backups/home.tar.xz /home/
  • B. rsync -z /backups/home.tar.xz /home/
  • C. tar -cJf /backups/home.tar.xz /home/
  • D. dd of=/backups/home.tar.xz if=/home/


Answer : C

A Linux user runs the following command:
nohup ping comptia.com &
Which of the following commands should the user execute to attach the process to the current terminal?

  • A. renice
  • B. jobs
  • C. exec
  • D. fg


Answer : D

A systems administrator wants to review the amount of time the NetworkManager service took to start. Which of the following commands accomplishes this goal?

  • A. resolvectl
  • B. journalctl
  • C. systemctl daemon-reload
  • D. systemd-analyze blame


Answer : D

A systems administrator needs to open the DNS TCP port on a Linux system from network 10.0.0.0/24. Which of the following commands should the administrator use for this task?

  • A. ufw allow dns/tcp to 10.0.0.0/24
  • B. ufw enable 53/tcp from 10.0.0.0/24
  • C. ufw allow 53/tcp from 10.0.0.0/24
  • D. ufw disable from 10.0.0.0/24


Answer : C

Page:    1 / 10   
Exam contains 141 questions

Talk to us!


Have any questions or issues ? Please dont hesitate to contact us

Certlibrary.com is owned by MBS Tech Limited: Room 1905 Nam Wo Hong Building, 148 Wing Lok Street, Sheung Wan, Hong Kong. Company registration number: 2310926
Certlibrary doesn't offer Real Microsoft Exam Questions. Certlibrary Materials do not contain actual questions and answers from Cisco's Certification Exams.
CFA Institute does not endorse, promote or warrant the accuracy or quality of Certlibrary. CFA® and Chartered Financial Analyst® are registered trademarks owned by CFA Institute.
Terms & Conditions | Privacy Policy