235k views
4 votes
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?

1 Answer

5 votes

Answer:

ls, cd, cat, nano, gedit

Step-by-step explanation:

There are several commands that will help the sys admin navigate through files but the most common ones are ls and cd. The cd command is quite helpful especially if the sys admin wants to change the current working directory. The ls, however, is the go-to command when we want to navigate and list computer files and folders. Typing ls without invoking any arguments will list all the files in the current working directory. He can invoke extra arguments if he wants to like adding an -a and will list entries starting with . To open text files, the sys admin can use cat, nano, or gedit followed by the text file name to view contents in that file.

User Flson
by
5.0k points