Finding Files
Find the hosts files
- find all files containing the word
hostsin the/etcdirectory- hint: you may need to elevate permissions
- hint: you may need to use wildcards (
*) - bonus: only return files: checkout the man pages and look for the -type option
- printout the terminal the contents of the
/etc/hosts, which should be one of the files/directories you found in the last step- what do you think this file means?
- hint: what is the relationship between
127.0.0.1and the domain namelocalhost?
Find the passwd file
- find the
passwdfile in the/etc/directory- find your username in this file
- what does it say the home directory for that user is?
- find your username in this file