010-160: LPI Linux Essentials Exam Study Guide with Complete Solutions
2 views 0 purchase
Course
LPI Linux Essentials
Institution
LPI Linux Essentials
010-160: LPI Linux Essentials Exam
Study Guide with Complete Solutions
whereis - Answer-used to search for programs in restricted locations, such as
binary file directories, libraries, and man directories.
locate - Answer-Searches the system managed database of filenames for files
containing t...
exist it will create a blank file with the specified name.
Will update the timestamp of the specified file if it exists. If it does not exist it will not
create a blank file. - Answer✔✔-touch -c file1.txt
Adds the content "Hey there!" to the specified file. - Answer✔✔-echo "Hey there!" >
sample.txt
cat filename.txt - Answer✔✔-Displays the contents of a file
Opens the vi editor for the file "sample". This will allow you to write text into a file. -
Answer✔✔-vi sample
Will display the "sample" file's byte count - Answer✔✔-wc -c sample
Displays the number of characters in the "sample" file - Answer✔✔-wc -m sample
Display the number of lines in the "sample" file - Answer✔✔-wc -l sample
Display the word count of the "sample" file - Answer✔✔-wc -w sample
Extracts the first field of the "/etc/passwd" file - Answer✔✔-cut -f 1 /etc/passwd
Extract the first three characters from the "/etc/passwd" file - Answer✔✔-cut -c 1, 2, 3
/etc/passwd
Extracts the third field from the "/etc/shadow" file and uses the : seperator. Since
"/etc/shadow" is a : (colon) seperated file, this command will display only the content of
the third field in the file. - Answer✔✔-cut -d ":" -f 3 /etc/shadow
Search for all the rows containing the string "/home" in the "/etc/passwd" file -
Answer✔✔-grep /home /etc/passwd
2/9
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller EmillyCharlotte. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $11.49. You're not tied to anything after your purchase.