Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

For each of the following problems, use your unix system to answer each of these

ID: 3563975 • Letter: F

Question

For each of the following problems, use your unix system to answer each of these questions. If it asks for output, then copy the output into the answer space. Be sure to answer ALL questions given.

1. What is the basic command for getting help? Give the command to get help for the help command.

2. From you Linux desktop, what is the name of the terminal application? How do you find the default shell for this terminal? What is your default shell?

3. Give two ways to show the contents of a text file.

4. For your default shell, where is the configuration file located? What is the name of this file? What is one thing you can change in the configuration file that might be useful?

5. There are two ways to change the access to a file using chmod. Give the command for chmod using both ways to give read/write access to the owner and group but to turn off all access to the "world".

6. What is the version of the kernel in your Linux installation? What is the command you use on the commandline to find this?

7. How do you determine how much diskspace is used on the your harddisk? How do you determine how much your home directory is using on the harddisk?

8. How do remove an empty directory? What if the directory contains files, how do you remove it then?

9. Suppose you need to find a file in your home directory by the name of "myfile.txt". Give the command to find this file only searching in your home directory. How would you find all files with the ".txt" extension in your home directory?

10. How do you rename a file? Can you rename a file to a different directory? Give a command for moving a file "myfile.txt" out of the "temp" subdirectory in your home directory into your home directory.

Explanation / Answer

1. What is the basic command for getting help? Give the command to get help for the help command.

You can use the help command followed by nothing (lists all the commands you can get help for) or by a command name:

help commandName

so to get help for the help command:

help help

*************************************************************************************

2. From you Linux desktop, what is the name of the terminal application? How do you find the default shell for this terminal? What is your default shell?

Just echo the $SHELL variable

echo $SHELL

*************************************************************************************

3. Give two ways to show the contents of a text file.

cat filename

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote