21-30 Flashcards
An administrator needs to make some changes in the IaC declaration templates. Which of the following commands would maintain version control?
A. git clone https://github.com/comptia/linux+-.git
git push origin
B. git clone https://qithub.com/comptia/linux+-.git
git fetch New-Branch
C. git clone https://github.com/comptia/linux+-.git
git status
D. git clone https://github.com/comptia/linuxt+-.git
git checkout -b <new-branch></new-branch>
D. git clone https://github.com/comptia/linuxt+-.git
git checkout -b <new-branch></new-branch>
An administrator attempts to rename a file on a server but receives the following error.
mv: cannot move ‘files/readme.txt’ to ‘files/readme.txt.orig’: Operation not permitted.
The administrator then runs a few commands and obtains the following output:
$ ls -ld files/
drwxrwxrwt.1 users users 20 Sep 10 15:15 files/
$ ls -a files/
drwxrwxrwt.1 users users 20 Sep 10 15:15 -
drwxr-xr-x.1 users users 32 Sep 10 15:15 ..
-rw-rw-r–.1 users users 4 Sep 12 10:34 readme.txt
Which of the following commands should the administrator run NEXT to allow the file to be renamed by any user?
A. chgrp reet files
B. chacl -R 644 files
C. chown users files
D. chmod -t files
D. chmod -t files
Which of the following commands will display the operating system?
A. uname -n
B. uname -s
C. uname -o
D. uname -m
C. uname -o
A systems engineer is adding a new 1GB XFS filesystem that should be temporarily mounted under /ops/app. Which of the following is the correct list of commands to achieve this goal?
A.
pvcreate -L1G /dev/app
mkfs.xfs /dev/app
mount /dev/app /opt/app
B.
parted /dev/sdb –script mkpart primary xfs 1GB
mkfs.xfs /dev/sdb
mount /dev/sdb /opt/app
C.
1vs –create 1G –name app
mkfs.xfs /dev/app
mount /dev/app /opt/app
D.
1vcreate -L 1G -n app app_vq
mkfs.xfs /dev/app_vq/app
mount /dev/app_vq/app /opt/app
D.
1vcreate -L 1G -n app app_vq
mkfs.xfs /dev/app_vq/app
mount /dev/app_vq/app /opt/app
A Linux administrator recently downloaded a software package that is currently in a compressed file. Which of the following commands will extract the files?
A. unzip -v
B. bzip2 -z
C. gzip
D. funzip
C. gzip
A Linux administrator is troubleshooting SSH connection issues from one of the workstations.
When users attempt to log in from the workstation to a server with the IP address 104.21.75.76, they receive the following message:
ssh: connect to host 104.21.75.76 port 22: Connection refused
The administrator reviews the information below:
Workstation output 1:
eth0: <BROADCAST, MULTICAST, UP, LOWER_UP> ……….
Workstation output 2:
default via 5.189.153.1 dev eth0
5.189.153.0/24 dev eth0 proto kertnel scope link src 5.189.153.89
Server output 1:
REJECT
REJECT
REJECT
“ “
Server output 2:
sshd. service - OpenSSH server daemon
Loaded: loaded …..
Active: active ……
Server output 3:
eth0: <BROADCAST, MULTICAST, UP, LOWER_UP>
Server output 4:
default via 104.21.75.254 dev eth0
104.21.75.0/24 dev eth0 proto kertnel scope link src 104.21.75.76
Which of the following is causing the connectivity issue?
A. The workstation has the wrong IP settings.
B. The sshd service is disabled.
C. The server’s firewall is preventing connections from being made.
D. The server has an incorrect default gateway configuration.
B. The sshd service is disabled.
Which of the following files holds the system configuration for journal when running systemd?
A. /etc/systemd/journald.conf
B. /etc/systemd/systemd-journalctl.conf
C. /usr/lib/systemd/journalctl.conf
D. /etc/systemd/systemd-journald.conf
A. /etc/systemd/journald.conf
A Linux administrator is tasked with creating resources using containerization. When deciding how to create this type of deployment, the administrator identifies some key features, including portability, high availability, and scalability in production. Which of the following should the Linux administrator choose for the new design?
A. Docker
B. On-premises systems
C. Cloud-based systems
D. Kubernetes
D. Kubernetes
Which of the following tools is commonly used for creating CI/CD pipelines?
A. Chef
B. Puppet
C. Jenkins
D. Ansible
C. Jenkins
A systems administrator requires that all files that are created by the user named web have read-only permissions by the owner. Which of the following commands will satisfy this requirement?
A. chown web:web /home/web
B. chmod -R 400 /home/web
C. echo “umask 377”»_space; /home/web/.bashrc
D. setfacl read /home/web
B. chmod -R 400 /home/web