Cis 240 - what command would you use to remove job number 5


I. Multiple Choice

1. By convention, how are configuration files separated from regular files? (NOTE: A practical effect of the separation is that they are not displayed by the default version of the ls command)
a. the prefix "rc" (rc.filename) c. the extension .cfig
b. a dot (.) at the beginning d. by having the SUID bit set

2. The IP address which is reserved for local loopback (equivalent to "localhost") is:
a. 255.255.255.0 c. 192.168.70.1
b. 127.0.0.1 d. 1.0.0.0

3. Which of these commands is used as a basic test of the network connection to another machine?
a. testroute c. ethereal
b. findhost d. ping

4. Which of these terms refers to those processes which run in the background waiting for work? (NOTE: They frequently are used to respond to network requests.)
a. daemons c. waiters
b. imps d. scripts

5. Which of these commands provides basic information about a machines network interface(s)?
a. netconfig c. catnet
b. setconfig d. ifconfig

6. What is the common name of the protocol which identifies computers using 128-bit addresses, and which soon may replace the existing Internet Protocol?
a. IP-128 c. IPv6
b. DHCP d. XMLIP

7. Which command allows you to cancel a job which has been scheduled for a future time?
a. cancel c. kill
b. unset d. atrm

8. If you were logged in as a user named flashgordon, which of these commands would return you to your home directory? (NOTE: You may assume that the user's home directory resides within the/home system directory for this question.)
a. cd c. cd ~
b. cd /home/flashgordon d. all of the above

9. When a device is formatted to use the extended-x (2 or 3 or 4) filesystem, a directory is created at the top of that filesystem. What is the name of that directory?
a. lost+found c. A:
b. C: d. floppy

10. Which of these commands will display information about currently-mounted filesystems?
a. mke2fs c. df
b. umount d. all of the above

11. Which of these options to the tar command allows the user to specify the name of the output file?
a. --name c. -f
b. -n d. --output

12. Which of these commands will display the contents of a compressed file without forcing the user to first save an uncompressed copy to disk?
a. zcat c. gzip --display
b. catzip d. less -z

13. Which of these algorithms is an example of "lossy" compression?
a. zip c. JPEG
b. gzip d. tar

14. What information is displayed by the command man 5 fstab?
a. the first five lines of the man page on the fstab command
b. information about both the 5 command and the fstab command
c. information about the file named fstab
d. information about version 5 of the fstab command

15. Which of these commands will create an archive of the home directory of a user named dalearden?
a. tar -xvf darden.tar /home/dalearden
b. tar -xvf /darden.tar
c. tar -cvf darden.tar /home/dalearden
d. tar -uvf /home/dalearden darden.tar

16. Which of these options to the ls command will give the inode number assigned to a file?
a. --physical c. --grid
b. -g d. -i

17. Which directory contains default configuration files to be copied into the home directory of a new user?
a. /etc/defaultuser c. /etc/skel
b. /home/default d. /usr/def.conf

18. Which of these commands allows you to schedule a job for a specific time in the future?
a. at c. schedule
b. batch d. onetime

19. Which of these Open/LibreOffice applications is used to format the display of mathematical equations (as opposed to calculating the results)?
a. Impress c. Calc
b. Math d. Equate

20. Which of these commands is commonly used to show the contents of a single environment variable?
a.showvar c. display
b. echo d. environ

II. Short Answer

DIRECTIONS: Type the answer to each question in the blue box associated with it.

21. Write a command which will unmount a CD located in the device /dev/cdrom, formatted with the ISO-9660 filesystem, located at the mount point /media/cdrom.

22. Write a UNIX command which will re-direct a long listing of the /etc directory into a file named directory.txt (located in your current working directory).

23. Write a command which will back up the contents of /home/princessaura into a file named paura.tar.

24. Write a command which will compress the archive created in the previous question.

25. Write a piped command sequence which will display a long directory listing of the /etc directory on your screen one page at a time.

26. Describe the permissions assigned by the command chmod 600 file.txt.

27. What combination of Layer 3 and Layer 4 protocols is used to facilitate communication over the Internet.

28. What command would you use to remove job number 5 from your default print queue?

29. What is the absolute pathname of the file which defines aliases available to ALL users?

30. View the environment variables on your system. Name the one which identifies the version of BASH you are using.

Practicum

NOTE: These instructions were written with reference to version 12.04LTS of Ubuntu.

1. Boot your Ubuntu system, log in, and open a command shell. Change your identity to root.

2. Configure a new network printer for your computer using the IP address 192.168.1.101. Specify the connection as AppSocket/HP JetDirect, and choose a Brother DCP-8085DN printer. Use the "foomatic" driver for this printing device. Do not try to print a test page (it won't work).

3. Create a new user with the name princethun and a password of ardentia.

4. Open the package manager. Look at the System section, find tcsh (TENEX C-shell; you might want to use the search box); download and install that package.

5. Reboot your system; this time log in as princethun, and open a command shell.

6. Create two directories within that user's home directory: programs and records.

7. Edit the configuration file which is supposed to be used for login shells opened by princethun and add a line which will cause the programs directory to be included in his/her search path.

8. Edit the configuration file which is used at the opening of every BASH shell and create an alias named gorecs which will change the user's location to the records directory within the user's home directory.

9. At your command prompt, type the command which will start a new login shell. You will keep a couple of shells open during the exam, so refer to this one as the login window.

10. Open a web browser and navigate to our class web site. Save the emperorming.sh script in the programs directory.

11. Set the permissions on that file to read and execute for the owner, write and execute for the group owner, and all permissions for everyone else.

12. Open a new command shell - call this one the edit window - and in that shell change to the records directory. Once you are there, edit a file named planetX.txt. Type your full name at the top of the file, then on the next line enter the name of the course you are taking.

13. Skip a line, then type the command you will use to start the emperorming.sh script in the login shell. The command must include two extra elements: one to place the script in the background, and one to re-direct the script's output to a file in the records directory named merciless.txt.

14. On the lines below that command, answer these questions: Will you be forced to enter the absolute pathname of the script in order to make it run? Why or why not?

15. In the login window, run the command you described in planetX.txt.

16. Open a new command shell - call this one the top window. Use that shell to execute the top command and look for the emperorming.sh process. You may see a couple of them, but only one will have a persistent process ID; the other processes will step and restart, getting a new PID every time. In the planetX.txt file, record the persistent process ID and a rough estimate of the percentage of processor time it is occupying. Also record the amount of memory it is using.

17. In the planetX.txt file, describe how you will go about terminating the emperorming.sh process.

18. In the login shell use that command to terminate the process.

19. In your login window, change your identity to the root identity.

20. Change to the root user's home directory. In your edit window, skip a couple of lines then type the word ROOT and skip to the next line. Type the full pathname of the home directory of the root user, then move to the next line and type the command you used to change directories to that location. Save and close the planetX.txt file.

21. Use your login window (where you are known as root) to copy the file containing your printer-configuration information to the records directory. Note that you should probably modify the permissions on your copy in order to simplify the archiving process later.

22. Exit the root identity, so that you are once again princethun in your login window.

23. Copy the files which you modified in instructions 7 and 8 into the records directory.

24. Run a command which will display the configuration of your network-interface card. Run that command again, this time re-directing the output to a file named radio.txt located within the records directory.

25. Exit your login window and your top window. You should have one window left open at this point, your edit window (though you should no longer be in the editor). Your identity in that window should be princethun. If this is not true, make the necessary changes. Also make sure your working directory is princethun's home directory.

26. Create an archive containing the programs and records directories. Name the archive submission.tar.

27. Compress the archive using the gzip command.

28. Attach the submission.tar.gz file to the Practicum assignment item within Blackboard.

Attachment:- emperorming.rar

Solution Preview :

Prepared by a verified Expert
Operating System: Cis 240 - what command would you use to remove job number 5
Reference No:- TGS01418007

Now Priced at $65 (50% Discount)

Recommended (95%)

Rated (4.7/5)