This website uses cookies to ensure you have the best experience. Learn more

Assignment 3

940 words - 4 pages

1. What does the shell ordinarily do while a command is executing? What should you do if you do not want to wait for a command to finish before running another command?

The shell works very fast. You might think you're waiting on it but it's finished... You can give it multiple commands, and they will execute in the order you type in. While it is working it will spit out some results and when done it will return you to $ prompt
2. What is a PID number? Why are these numbers useful when you run processes in the background?
A PID (i.e., process identification number) is an identification number that is automatically assigned to each process when it is created on a Unix-like operating ...view middle of the document...

1.$ whereis date
date: /bin/date ...
2.$ echo $PATH
.:/usr/local/bin:/usr/bin:/bin
3.$ cat > date
echo "This is my own version of date."
4.$ ./date
Fri May 22 11:45:49 PDT 2009

Annotations for line:
1. "whereis date" tells us where the executable file "date" is located, according to the current $PATH value. The result tells us that the executable file "date" is found in /bin
2. echo $PATH
tells us what is the content of the $PATH environment parameter. Each path is separated by a colon ":".
3. "cat > date"
takes standard input (stdin) from the keyboard and put the keyed in content into a new file in the current directory called date. The input should be terminated by a control-d, which is not mentioned in the question.
The file "date" usually has a permission of 644 or 600 (depending on the computer implementation), which means that it is not executable.
4. ./date
attempts to execute the file ./date, but it is not executable (by default). Again, depending on the implementation of the system, it may return
"permission denied", or
possibly search for the next directory from the $PATH environment variable, which outputs the current date and time.

Number 2
What are two ways you can execute a shell script when you do not have execute access permission for the file containing the script? Can you execute a shell script if you do not have read access permission for the file containing the script?
You can give the name of the file containing the script as an argument to the shell (for example, bash scriptfile, where scriptfile is the name of the file containing the script).
Under bash you can give either of the following commands:
$ . scriptfile $ source...

Other Papers Like Assignment 3

Assignment#3

2264 words - 10 pages Assignment # 2 1. Why is information security a management problem? What can management do that technology cannot? Both general management and IT management are responsible for implementing information security to protect the ability of the organization to function. Decision-makers in organizations must set policy and operate their organization in a manner that complies with the complex, shifting political legislation on the use of

Bu224 Unit 3 Assignment

1439 words - 6 pages ------------------------------------------------- BU224 Unit 3 Assignment Template: Name: - Course Number: - BU224 Section Number: - 01 Unit Number: - 3 Date: - 8/16/2014 ------------------------------------------- Assignment ------------------------------------------- 1. St Atanagio is a remote island in the Atlantic. The inhabitants grow corn and breed poultry. The accompanying table shows the maximum annual

Assignment #3 Eco550

520 words - 3 pages ECO 550 Assignment #3 Game Theory and Monopolies by ECO 550 Assignment #3 1. Some games of strategy are cooperative. One example is deciding which side of the road to drive on. It doesn’t matter which side it is as long as everyone chooses the same side. Otherwise, everyone may get hurt. Driver 2 Left Right Driver 1

Unit 3 Assignment

593 words - 3 pages ? Declare Integer a = 5 Declare Integer b = 2 Declare Integer c = 3 Declare Integer result Set result = a + b * c Display result a.) it would display 11 * If the following pseudocode were an actual program, what would it display? Declare Integer num = 99 Set num = 5 Display num a.) it would display 5 Research Assignment * What is reverse engineering? the process of disassembling someone’s invention or program

It255 Assignment 3

299 words - 2 pages Melissa Burkhardt IT255 Unit 3 Assignment To begin designing a remote access control policy for The Richman Company, several configurations must take place. The Richman corp. uses In a Windows Server 2003-based native-mode domain, you can use the following three types of remote access policies: Explicit allow, the remote access policy is set to "Grant remote access permission" and the connection attempt matches the policy conditions,The

Netw204 Assignment 3

921 words - 4 pages NETW204: Assignment 2 (50 points) Each answer is worth 1 point each, 50 questions = 50 total points. Type answers in the appropriate cell; text will automatically wrap. Post your completed assignment to the dropbox. NAME | | Distance Vector Routing Protocols | Question | Answer | 1 | What does RIP stand for? | Routing Information Protocol | 2 | What metric does RIP use for Path Selection? | Rip uses the hop count metric in

Pa165 Unit 3 Assignment

1192 words - 5 pages Shiloh Wolfe Unit 3 Assignment PA165 Professor Gauvin June 28, 2016 FACTS: Leroy McPhillen frequented a pub called Bottom’s Up! Late one Saturday night, Leroy witnessed an intoxicated man, John, shouting obscenities at a women sitting at the table next to Leroy. The women, Jane, ignored John and continued to drink her beer. John then approached Jane, looking threatening. Leroy then stood up and asked the gentlemen to come over to the

Pad 500 Assignment 3

1629 words - 7 pages Assignment # 3 – The Concept of Program Reengineering Strayer University PAD 500: Modern Public Administration 3/10/2012 Table of Contents Abstract…..………………………………………………………………………...….3 Mayor Schell’s Policy Choices…..……..………………………………..…………....4 Mayor Schell’s Pre-Implementation and Design Strategies…………………..............5 Reengineering the Program…..………….……...………….………..……….....….….6 Conducting Assessments.……………………………………………………………..8

Written Assignment 3

877 words - 4 pages Written Assignment 3 1. What is the role of the financial system? Name and describe two markets that are part of the financial system in the U.S. economy. Name and describe two financial intermediaries. To match one person’s savings to another person’s investment. The Bond Market and the Stock Market. The Bond Market is a way for an institution to borrow directly from the public, by issuing a bond (an IOU). The Stock Market is a way for an

Contracts Assignment 3

1367 words - 6 pages will accept the Goods and pay for the Goods with the sum of fifty thousand ( $50,000.00 ) USD, paid as follows: a. down payment of 10% of the purchase price $5,000.00 on January 15, 2015; and b. the remainder of the purchase price will be paid price the goods are received. 3. The Seller and the Purchaser both acknowledge the sufficiency of this consideration. In addition to the purchase price specified in this Agreement, the

Week 3 Assignment

761 words - 4 pages Team Assignment – Ch.6 & Ch. 7 Textbook Exercises Earl Morse, Jennifer Schelper, Molly Todd, Vivian Costa 6-26 (Audit programs and assertions) Assume that you are responsible for developing an audit program for a manufacturing client that sells to over 1,400 customers. You want to ensure your audit program addresses all relevant assertions for sales and accounts receivable. Address the following question in the context of the audit

Related Essays

Assignment 3

1653 words - 7 pages ($5,000) USD on March 2,2014; and b. The remainder of the purchase price by certified check as required in clause 4 of this Agreement. 3. The Seller and the Purchaser both acknowledge the sufficiency of this consideration. In addition to the purchase price specified in this Agreement, the amount of any present or future sales, use, excise or similar tax applicable to the sale of Goods will be paid by the purchaser, or alternatively

Assignment # 3

2913 words - 12 pages : Three Rivers-Random House. Book or pamphlet by a corporation or government or other organization. College Board. (2005). Trends in college pricing 2005. New York, NY: Author. United States. Department of Homeland Security. (2004) Preparing for disaster for people with disabilities and other special needs. Washington, DC: FEMA. Points: 280 | Assignment 3: Alan Mulally, CEO, Ford Motor Company | Criteria | UnacceptableBelow 70% F

Assignment 3

4085 words - 17 pages Assignment 3 LONG TERM INVESTMENT DECISION The grocery food market is filled with various options for microwavable food depending on the preferences of the consumers. Instead of the traditional use of the oven many families now use the microwave because of their busy lifestyles. The variety of healthy low calorie -microwave food has made shopping much easier for today’s busy consumer. Low calorie labels are regulated by the Food and Drug

Assignment 3

2906 words - 12 pages SCHOOL OF INFORMATION TECHNOLOGY MASTER OF INFORMATION TECHNOLOGY [pic] INDIVIDUAL ASSIGNMENT COVER PAGE |Name of Student |PETER J. MAKIWA | |Student Number |14299896 | |Name of Module