lpic_practice Flashcards
DMA addresses are used as an alternative to communicating with I/O ports.
True
How would you extract information about the boot process?
Use the ‘dmesg’ command
The term ‘UID’ is short for ‘User Identification’.
True
Run level 6 can be used to:
Reboot the system
On a systemd-based system, you’ve just installed a MySQL server with no reported errors. However, after reboot, you notice the service is not running. What might be the issue?
The service has not been enabled at boot time to start in the default target the system boots into
You’re working on a Linux system with systemd as it’s primary init manager. To change into the graphical target, what would you do?
systemctl isolate graphical.target
What are the default permissions of the /etc/passwd file on a Linux distribution?
0644
You need to rerun the configuration of a deb package much like the configuration that was run during installation. How would you do this?
Use the dpkg-reconfigure command.
chmod 755 file.txt will
Set the file permissions on file.txt to read/write/execute for the owner and read/execute for the group and everyone else.
Which grep variant will interpret the pattern as plain text strings (interpret the pattern literally)?
fgrep or grep -F
telinit is used specifically for changing runlevels.
True
fsck is a process that checks and repairs the Linux file system and can only be performed on unmounted file systems.
True
Which of the following will verify the signature on a package to determine its integrity and origin?
rpm –checksig
Which command allows you to view the contents of kernel messages in the kernel ring buffer?
dmesg
What happens when you set the setuid on a directory?
It is ignored
uniq -d will
Print only duplicate lines in a file.
/etc/ld.so.conf is used to store shared library paths.
True
When creating file permissions, the permission designated by the number ‘4’ equates to what permission type?
read
While attempting to shut down the Apache service with “systemctl stop httpd” you notice that there are httpd processes that are refusing to shut down. How might you send a SIGTERM signal to try and gently stop the processes to all httpd processes?
pkill httpd
The command ‘wall “shutdown occurring in 5 minutes” ‘, when issued at the command line, will send all users on the system a global standard output message on their running terminal.
True
You’ve created a Linux swap partition on /dev/xvdf using the mkswap command. Which command do you need to issue next to turn on swap?
swapon /dev/xvdf
ln -s will:
Create a symbolic link.
Which command would you execute to cause the mysqld service to start anytime the system is booted into the multi-user.target, assuming the unit configuration file already specifies a WantedBy=multi-user.target option?
systemctl enable mysqld
You need to create a file full of zeros that is 1 GB in size. Which command will perform this action? Choose the “best” possible answer.
dd if=/dev/zero of=filename bs=1M count=1024
The -t flag when passed to mkfs requires you to:
Specify the file system type.