Answered step by step
Verified Expert Solution
Question
1 Approved Answer
PART 4 : Learn about commands used to view the contents of files. Use the cat command to review the contents of the ~ /
PART : Learn about commands used to view the contents of files.
Use the cat command to review the contents of the ~testpasswdbak
Take a screenshot filename: screenshot of the above activity.
Clear the shell with the clear command.
Resize your terminal window to make it half of the height that it was before by dragging the bottom of the window up
Now try step again, but use the less command instead of cat. Use the up and down arrow keys to scroll through the file, type in q to exit less.
Return your terminal window to its previous height by dragging the bottom of the window down.
Now try step again, but use the head command instead of cat.
Now try step again, but use the tail command instead of cat.
Try steps and again, but add the n optionflag to the head and tail commands and see what happens.
Type cat file and enter a single sentence about how you feel about Linux. Hit Enter and then type CTRL d to exit.
Type cat file to view its contents.
Create another file with this command ls la ~ file
Append to the end of file the contents of ~testpasswdbak using this command cat ~testpasswdbak file
Review the final contents of file your work using the less command. You should remember how to exit less.
Search file for any lines with the word root by using this command: grep root file
Take a screenshot filename: screenshot of the above activities.
Clear the shell with the clear command.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started