Sunday, August 28, 2016

Exercise 4-1: Using Linux Search Tools

Complete the following: 
1. Verify that you are logged in to your Linux system as student with a password of student.
2. If necessary, open a terminal session.
3. Change to your root user account by entering su – at the shell prompt and entering a password of student.
4. Search for a file named resolv.conf  by entering find / –name “resolv.conf ” at the shell prompt. Where is this file located?
5. Perform the same search using locate by entering locate resolve.conf at the shell prompt.
6. Find the location of the init executable by entering which init at the shell prompt. Where is it located?
7. Enter whereis init at the shell prompt. Where is the file that contains the manual sections for the init command located?
8. At the shell prompt, display the last few lines of your messages log file by entering tail /var/log/messages.

9. At the shell prompt, see if the tail command is now hashed by the shell session by entering type tail. Is it? What does this mean?

No comments:

Post a Comment