Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 2 out of 7 pages
Exam (elaborations)

LFCS Exam Questions And Answers (Guaranteed A+)

Document preview thumbnail
Preview 2 out of 7 pages

LFCS Exam Questions And Answers (Guaranteed A+) Cat - Answercat - concatenate files and print on the standard output sed - Answersed - 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 - Answeruniq - 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 - Answerdisplay Linux processes pgrep - Answerpgrep, pkill - look up or signal processes based on name and other attributes ps - Answerps - 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 - Answernice - run a program with modified scheduling priority renice - Answerrenice - 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. ©EVERLY 2024/2025 ALL RIGHTS RESERVED. 2 | P a g e Example: renice 10 1292 kill - Answerkill - terminate a process dpkg - Answerdpkg - package manager for Debian aptitude - Answer apt-cache - Answerapt-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

Content preview

©EVERLY 2024/2025 ALL RIGHTS RESERVED.




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

Document information

Uploaded on
January 13, 2025
Number of pages
7
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$8.49

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Everly
4.3
(4)
Sold
32
Followers
1
Items
2777
Last sold
1 week ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions