Write a command that will find all filenames that begin


1. Which log file do you check to look for issues that may be causing problems with the X Windows graphical desktop environment?

2. What command would you type if you wanted the ls command to be recalled?

$ history 4
15 cd ..
16 ls
17 cd test
18 history 4

3. Write a command that would display the contents of the file ICT2631 and then print the date.

4. Explain why you would not include the current directory in the PATH.

5. Write a command that will find all filenames that begin with file in the current user's home folder, and ask the user to display the contents to the screen.

6. How would you describe a process?

7. Write a shell script to do the following: display the following menu (Hint: use echo):

Menu

1. Say hello
2. Say goodbye

Then ask the user to make a choice. Using a case statement, print "Hello" if 1 is selected, print "Goodbye" if 2 is selected, and print "Bad choice" if any other character is selected.

8. Given the following line from a listing of files, what can you tell about the Music entry?

drwxr-xr-x 2 joe joe 4096 Jul31 13:06 Music

9. Starting with permissions ---------, write two different commands (one based on numbers, and one based on letters) to give the permissions rw-r--r-x.

10. Write two commands to find files in any user's home directory that includes the word "scrap" (even as part of another word, for example "scraps", or with uppercase characters, for example "Scrap") in the filename.

11. What permissions would be granted to file after running the following?

chmod 631 file

12. What is the difference between kill 1010 and kill -15 1010?

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: Write a command that will find all filenames that begin
Reference No:- TGS01129994

Now Priced at $12 (50% Discount)

Recommended (92%)

Rated (4.4/5)