LFCS Exam Questions And Answers
(Guaranteed A+)
Cat - Answer✔cat - concatenate files and print on the standard output
sed - Answer✔sed - stream editor for filtering and transforming text
The name sed is short for stream editor. For those unfamiliar with the term, a stream editor is
used to perform basic text transformations on an input stream (a file or input from a pipeline).
The most basic (and popular) usage of sed is the substitution of characters.
uniq - Answer✔uniq - report or omit repeated lines
The uniq command allows us to report or remove duplicate lines in a file, writing to stdout by
default.
uniq is commonly used along with a preceding sort (which is used to sort lines of text files).
top - Answer✔display Linux processes
pgrep - Answer✔pgrep, pkill - look up or signal processes based on name and other attributes
ps - Answer✔ps - report a snapshot of the current processes.
ps displays information about a selection of the active processes. If you want a repetitive update
of the selection and the displayed information, use 'top' instead.
nice - Answer✔nice - run a program with modified scheduling priority
renice - Answer✔renice - alter priority of running processes
renice alters the scheduling priority of one or more running processes. The first argument is the
priority value to be used.
1|Page
, ©EVERLY 2024/2025 ALL RIGHTS RESERVED.
Example: renice 10 1292
kill - Answer✔kill - terminate a process
dpkg - Answer✔dpkg - package manager for Debian
aptitude - Answer✔
apt-cache - Answer✔apt-cache - query the APT cache
apt-cache performs a variety of operations on APT's package cache. apt-cache does not
manipulate the state of the system but does provide operations to search and generate interesting
output from the package metadata.
apt-get - Answer✔
rpm - Answer✔
yumdownloader - Answer✔
useradd <username> -m -s /bin/bash - Answer✔
cp -rT /etc/skel/ - Answer✔-r = recursive
-T = treat dest as normal file
usermod -aG <group> <username> - Answer✔
ps axjf - Answer✔
apt-get autoclean - Answer✔
yum list - Answer✔
yum search - Answer✔
yum info - Answer✔
yum list installed | more - Answer✔
yum check-update - Answer✔
yum grouplist | more - Answer✔
yum groupinstall - Answer✔
Yum --enablerepo= * - Answer✔
yum repolist - Answer✔
2|Page