Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Operating Systems Lab CE3570 7. Find the line that contains the word root in the file /etc/passwd. Use pipes and grep command. 8. Search for

Operating Systems Lab CE3570 7. Find the line that contains the word "root" in the file /etc/passwd. Use pipes and grep command. 8. Search for the files that names contain the word "boot" in your system from your normal user not as root user, discard error messages. Save the positive results in the file /tmp/boot-search. 9. Use vim editor to edit the file (passwd_f), delete the 1st word in the last line and insert the word "OS" instead. 10. Print out the value of the variable ~. 11. print out the value of the variable $HISTFILE. 12. Preview the file $HISTFILE using less. What's $HISTFILE content? 13. Use vim to edit the ~/.bashrc configuration file. Change the value of PS1 variable to be "PS1="bash\\$ ". Return back to the default PS1 using exactly "[\\u@h \\W\\$ " as the value of PS1. 14. Create a variable called tmp_path with the path of tmp directory then use it to change to that directory

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

What Is A Database And How Do I Use It

Authors: Matt Anniss

1st Edition

1622750799, 978-1622750795

More Books

Students also viewed these Databases questions

Question

Perception: Making Sense of Your World

Answered: 1 week ago

Question

3. What may be the goal of the team?

Answered: 1 week ago

Question

2. What type of team would you recommend?

Answered: 1 week ago