Linux1 Flashcards
(89 cards)
You execute the following command:
wc -l plab1.txt|tee -a plab2.txt
The contents of the plab1.txt are:
1
2
3
With the given command, what would be the contents of the plab2.txt file?
The contents of the plab2.txt file will be
1
2
3 plab1.txt
Identify the correct statement(s) for a repository. [Choose all that apply]
The repository configuration files are stored in the /etc/yum.repos.d/ directory
The configuration file for a repository has the extension .repo
When you run the following command: cat /proc/mounts, where does it retrieve the information from?
kernel
You need to configure link bonding to support fault tolerance. Which of the following will meet your requirement? [Choose all that apply]
3 (broadcast) Broadcast policy
1 (active-backup) Active-backup policy
0 (balance-rr) Round-robin policy
You enable your Linux Web server with the PKI-based login. When you connect to this Web server, you are not prompted for the password. With this configuration, which of the security risks are you avoiding?
Brute-force attack
You want to list out all the storage devices that are connected to a Linux system. You want to ensure that both mounted and unmounted devices are listed. What should you do? [Choose all that apply]
Use the hwinfo command
View the /proc/partitions file
Use the fdisk -l command
Use the lsblk command
When you use the dd command with the obs parameter, what is the default number of bytes written at a time?
512
You need to display information about the currently loaded modules in your Linux system. Which of the following command should you use?
lsmod
Which of the following type of program is dependent on the external shared libraries?
Dynamically linked
Which type of Access Control Entry (ACE) should you use to log access attempts?
System-audit
Which of the following can be used to log events generated by ACLs?
SELinux
Which of the following does PKI offer through digital signature?
Non-repudiation
You need to configure the nameservers for a static IP address on your system. Which of the following would be the correct file to edit?
/etc/network/interfaces
You have one QLogic HBA card in a system that runs Red Hat Enterprise Linux 5.3. When you boot the system, the HBA is not detected. You run the following command:
ll -d qla2xxx
However, the command does not display any output. How should you possibly resolve this issue?
Update the device drivers
You are attempting to copy the contents of one directory, PLAB, to another directory, PIL. You execute the following command:
cp PLAB PIL
You are prompted with an error that this is a directory.
You need to copy all files from the PLAB directory to the PIL directory without any error. What should you do?
Use the -r parameter
Which of the following directory contains the GPT specified UUIDs and labels?
by-partlabel
Which of the following file controls the start of a service?
/etc/inittab
You are using Ubuntu on your system. You run the aa-status command and find out that processes are running in the unconfined state. You verify and conclude that these processes have a profile defined. What should you do to resolve this issue? [Choose all that apply]
Restart the processes
Restart the system
You need to find out the currently logged in users and their processes. Which command should you use?
w
You need to create a shell script. Which of the following is the directive that must be added in the first line of the shell script?
!
Which of the following command is used to create the SSH key?
ssh-keygen
When you connect to your network, either through a physical wire or remotely, the network access control application validates the state of your system. Your system has a small application installed that communicates with the network access control application. Which of the following solution has the security administrator implemented?
Agent-based, out-of-band
You have a plab.txt file that contains the following content:
Hello
PLAB
Users
You want to generate another file plab1.txt and add the same content using a single command. Which of the following command will help you achieve this?
cat > plab1.txt «_space;EOF Hello PLAB Users EOF
Which of the files should you use to view the hard drive details?
/proc/partitions