1 You are the systems administrator for a scientific researc
1. You are the systems administrator for a scientific research company that employs over
100 scientists who write and run Linux programs to analyze their work. All of these
programs are stored in each scientist’ s home directory on the Linux system. One
scientist has left the company, and you are instructed to retrieve any work from that
scientist’ s home directory. When you enter the home directory for that user, you notice
that there are very few files and only two directories (one named Projects and one
named Lab). List the commands that you would use to navigate through this user’ s
home directory and view filenames and file types. If there are any text files, what
commands could you use to view their contents?
Solution
Navigate to the home directory
cd ~
List all files in the directory with complete information
ls -la
Navigate to the projects directory
cd Projects
Find all text files in the Projects directory
find *.txt
Open a text file in nano editor (Ctrl+X to save)
sudo nano myfile.txt
Come back one directory
cd ..
Navigate to Lab directory
cd Lab
Repeat the above steps for the lab directory as well.

