Show the contents of a single environment variable

Assignment Help Operating System
Reference no: EM131072208

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

Reference no: EM131072208

Questions Cloud

Implement a battleship game in python : Assignment Summary: Battleship is a children's game where players guess (x,y) coordinate positions of the opposing player's ship pieces in a 10x10 grid. For the official Hasbro rules and additional game context, read http://www.hasbro.com/common/i..
The marvelous gadget company llc : A strong business plan for the start-up of a new business is essential in bringing in investment and demonstrating a viable idea in an attractive way. The assignment is to present a business plan for setting up a manufacturing plant for small kitc..
Determine the optimal number of workers to be employed : Determine the optimal number of workers to be employed
Calculate the equilibrium wage and employment level : Compute the transfer earnings and rent components of the total wage bill.
Show the contents of a single environment variable : CIS 240 - What command would you use to remove job number 5 from your default print queue and what is the absolute pathname of the file which defines aliases available to ALL users?
What factors might pose a risk to the strategic hr plan : Why is it important to monitor and review the implementation of the strategic HR plan? What steps can you take to monitor and review the plan?
Draw a diagram illustrating the supply : If the plumbers now form a union, and supply their labour at a wage of $30 per hour, illustrate the new equilibrium on your diagram and calculate the new level of employment.
Draw a map of the supply chain for leapfrog : Draw a map of the supply chain for LeapFrog, including the retailers, Capable Toys, and suppliers of key materials (such as Tyvek). Which supply chain partners are "upstream" of LeapFrog? Which are "downstream"? Which partners ..
Calculate the present value of the stream of services : calculate the present value of the stream of services.

Reviews

Write a Review

 

Operating System Questions & Answers

  Risk management analysis on business

Approximately 3-5 page report, 1.5 spaced describing an analytics, management science or model challenge in the real world and the methods and/or technologies used to solve it. Five (5) references are required which can be a combination of articl..

  Six of the best practices should be general practices

The management team for MWS has asked for a simple but thorough checklist describing best practices for securing the operating systems used in the company. Six of the best practices should be general practices

  Defining and describing the gnu public license and its role

Option 1- GNU: Write a 2-page paper defining and describing the GNU public license and its role. Option 2- Open/Closed Source: Write a 2-page paper defining and comparing open source and closed source operating systems. Provide examples of each

  Controlling the formatting and layout of pages

Cascading Style Sheets (CSS), a multi featured specification for HTML, provide designers an expedient, powerful technique to control the formatting and layout of pages.

  How would you address accessibility issues in a multimedia

How would you structure a questionnaire to discover how usable a web-site is? What would your criteria be and why?

  One page document describing security

Analyze the Internet and construct a one page document describing how security is maintained while transacting business over the Internet.

  Design a memory management scheme

Design a memory management scheme for a 64 bit architecture, using various types of paging and/or segmentation available. Then highlight its advantages and disadvantages. Your scheme must be different from your colleagues' schemes.

  Categorize the programs as system software

Categorize the programs as system software or application software, and explain your categorization: ? Java Virtual Machine ? Excel

  Ethical, legal and security responsibilities

Determine some of the ethical, legal and security responsibilities health care organizations must address when they implement health care database?

  What type of information is kept in a rom

What type of information is kept in a ROM, and how does that information originally get into the memory?

  Implementations of routing protocols

implementations of routing protocols

  Describe the ongoing maintenance that will be required

Describe all the necessary equipment and explain the costs involved in the creation of the system and describe the ongoing maintenance that will be required

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd