Docsity

LFCS Practice Questions - Linux Foundation, Study notes of Linux skills

Toggle sidebar
bg1
LFCS Practice Questions
This document is designed to help Candidates prepare for the Linux Foundation Certified
System Administrator (LFCS) exam. The document does not include answers.
The document is not meant to be inclusive of all exam topics, but rather to encourage further
study and practice. The sample tasks provided will not appear on the LFCS exam.
To familiarize yourself with the format and types of tasks candidates are requested to perform,
we recommend you attempt these sample tasks on a Linux CLI system, using a distribution
supported by the exam. Please check the๎˜ ๎พFAQ๎พ or ๎พCandidate Handbook๎พ for distributions currently
supported by the exam .
Domain
Sample Task
Essential Commands
Open the file under
/home/student/textreferences/editme.txt๎˜ and
complete the following tasks:
1. Move line ๎˜7777๎˜ to line ๎˜1๎˜.
2. Remove line ๎˜7000๎˜.
3. Replace every occurrence of the word ๎˜Earth๎˜ shown with
an uppercase E, with the word ๎˜Globe๎˜.
4. Add a new line at the very end of the document that
contains ๎˜Auctores Varii๎˜.
Operation of Running System
Create a bash shell script named ๎˜certscript.sh๎˜ under
/home/student/apps/๎˜.
โ— Make sure the script can be invoked as
./certscript.sh๎˜.
โ— The first line of output from the script should consist of the
name of the user who invoked it.
โ— The second line of output should contain the IP address
of the default gateway.
Operation of Running System
Install the ๎˜tmux๎˜ package on your system.
Operation of Running System
Alter the init boot sequence so that the ๎˜rc.local๎˜ or
boot.local๎˜ script (depending on the distribution that you have
selected) is executed at boot time.
LFCS Practice Questions v1.0
pf3
pf4

Partial preview of the text

Download LFCS Practice Questions - Linux Foundation and more Study notes Linux skills in PDF only on Docsity!

LFCS Practice Questions

This document is designed to help Candidates prepare for the Linux Foundation Certified System Administrator (LFCS) exam. The document does not include answers. The document is not meant to be inclusive of all exam topics, but rather to encourage further study and practice. The sample tasks provided will not appear on the LFCS exam. To familiarize yourself with the format and types of tasks candidates are requested to perform, we recommend you attempt these sample tasks on a Linux CLI system, using a distribution supported by the exam. Please check the FAQ or Candidate Handbook for distributions currently supported by the exam. Domain Sample Task Essential Commands Open the file under /home/student/textreferences/editme.txt and complete the following tasks:

  1. Move line 7777 to line 1.
  2. Remove line 7000.
  3. Replace every occurrence of the word Earth shown with an uppercase E, with the word Globe.
  4. Add a new line at the very end of the document that contains Auctores Varii. Operation of Running System Create a bash shell script named certscript.sh under /home/student/apps/. โ— Make sure the script can be invoked as ./certscript.sh. โ— The first line of output from the script should consist of the name of the user who invoked it. โ— The second line of output should contain the IP address of the default gateway. Operation of Running System Install the tmux package on your system. Operation of Running System Alter the init boot sequence so that the rc.local or boot.local script (depending on the distribution that you have selected) is executed at boot time.

Operation of Running System Create a cron job that kills all processes named scan_filesystem which is owned by root, every minute. User & Group Management Linux administrators are responsible for the creation, deletion, and the modification of groups, as well as the group membership. Complete the following tasks to demonstrate your ability to create and manage groups and group membership:

  1. Create the computestream group.
  2. Create a computestream folder in /exam/.
  3. Make the computestream group the owner of the /exam/computestream folder. User & Group Management Create a candidate user account with the password cert456. Modify the sudo configuration to let the candidate account access root privileges with no password prompt. User & Group Management Configure the system so that an empty NEWS file is automatically created in the home directory of any new user. User & Group Management Create a group called students. User & Group Management Create a new user account with the following attributes: โ— Username is harry. โ— Password is magic. โ— This userโ€™s home directory is defined as /home/school/harry/. โ— This new user is a member of the existing students group. โ— The /home/school/harry/binaries/ directory is part of the PATH variable. User & Group Management Create a user account with username sysadmin with the following attributes: โ— Use a password of science. โ— This userโ€™s home directory is defined as /sysadmin/. โ— sysadmin has sudo privileges and will not be prompted for a password when using the sudo command. โ— The default shell for this user is zsh. User & Group Management Ensure that all users can invoke the last command and access a list of users who previously logged in. User & Group Management Correct the projectadmin user account so that logins are possible using the password onetime43. Set the home

Essential Commands A data directory is not used anymore and is about to be archived. You have been asked to identify and remove some files,before archiving takes place. Perform the following tasks to demonstrate your ability to search for files given various criteria:

  1. Find all executable files in the directory /srv/SAMPLE002 and remove them
  2. Find all files in the directory /srv/SAMPLE002, which have not been accessed during the last month and remove them
  3. Find all empty directories in the directory /srv/SAMPLE002 and remove them
  4. Find all files in the directory /srv/SAMPLE002 with a file extension of .tar. Write a list of matching filenames, one per line, to the file /opt/SAMPLE002/toBeCompressed.txt, which has already been created. Ensure that you specify a relative path to each file, using /srv/SAMPLE001 as the base directory for the relative path