What command would you use to save the file

Assignment Help Operating System
Reference no: EM132077723

Need help with this linux Operation System command.

Module 9 Practical Application (28 points)

Display the complete command that will accomplish the following actions. (ie. If you were asked which command would allow you to navigate to the /var directory you would display the following: cd /var (NOT just the command cd))

Vi Editor

1. Using the vi editor:

Create a document with four lines, each containing the word "today."

What command would you use to copy the first four lines using only one command?

What command would you use to save the file, and exit vi? Reopen the document.

What command would you use to change"today"to"yesterday" but only on the first four lines?

2. Using the vi editor:

Create a document called first.file, and enter a few lines of text in it. Save it.

Create a second document called second.file, and enter a few lines of text in it. Save it.

What commands would you use to create a third document called third.file by merging the text from the first two files? (3 pts)

3.Delete all text from third.file that you created using vi.

What command would you use to restore the data you just deleted?

4. Using the vi text editor create a file with 12 lines of text and on the fifth line insert your first and last name. What command would you use to go to the first line of the file?

What command would you use to search the file for your last name?

What command would you use to save the file, but not exit vi?

Without exiting vi, temporarily execute the ls command to confirm that the file is saved.

What command did you use temporarily leave vi (without exiting it) so you could execute t he "ls" command?

What command can you use that will cause line numbers to appear?

Scripting

5. Next, use the command to add your current working directory to the PATH variable. (2 points)

6. What command will create a variable called iam and assign the results of the whoami command to it?

7. Assign the variable t the value of 20. Next, assign the variable s the value of t+30. Finally, display the contents of t and s to verify you have correctly defined these variables. (4 points)

8. Create a script called lunch with a for loop that uses the variable sandwiches and then displays a line at a time the following sandwiches: chicken, ham, hummus, tomato. (5 points)

9. Someone wrote the following script but it doesn't work and you've been asked to troubleshoot it.

What is wrong with the following lines of code? (4 points)

While [ "$value" = "100" ; do ECHO "That's a large number." read value

fi

Reference no: EM132077723

Questions Cloud

What rate is the current changing : When the resistance is 400 ohms and the current is 0.01 amperes, at what rate is the current changing?
Create a class person and clerk derived from person : The Person class should have instance variables and Clerk class should have the additional information of a salary and an employmentgrade.
Calculate the npv of the given project : Sanders Enterprises, Inc., has been considering the purchase of a new manufacturing facility for $276,000. The facility is to be fully depreciated.
Find the rate of change of the distance : Find the rate of change of the distance from the particle to the origin at this instant.
What command would you use to save the file : Create a document with four lines, each containing the word "today." What command would you use to copy the first four lines using only one command?
Right circular cone of radius r : Suppose that a right circular cylinder of radius r and height h is inscribed in a right circular cone of radius R and height H.
What is the interest tax shield for the year : Sand Mountain Resort has a tax rate of 32 percent. Its total interest payment for the year just ended was $41,000. What is the interest tax shield for the year?
How the command to abbreviate the command alias as a : Please show the command to set the noclobber option to protect from accidentally deleting a file.
Determine whether the integral is divergent or convergent : Determine whether the integral is divergent or convergent. If it is convergent, evaluate it. If it diverges to infinity, state your answer as INF

Reviews

Write a Review

Operating System Questions & Answers

  Supporting a transmission system

A transmission system operates at sixteen MHz. The power output is 1 W and .1 Watt is needed at the receiver. The receiver is located one hundred meters from the transmitter.

  What do you think are the major aspects of operating systems

What are the three different vantage points for considering operating systems and what services are designed for performance, and what services are designed for usability?

  Describe process of how demand paging enables virtual memory

Describe the process of how demand paging enables virtual memory. What kind of hardware support is needed? Why can we not implement Optimal Page Replacement

  Demonstrate understanding of principles of operating system

The report needs to demonstrate an understanding and awareness of the distinctions between the varieties of relevant issues allowing the isolation and identification of the key concepts and principles of the operating systems.

  Implement distributed system facility

In this assignment you will implement a distributed system facility based on Client-Server programming -  The client and server processes will be on different machines. In this case, the server is a stateful server.

  How do the named pipes and tcp/ip sockets named libraries

What are the benefits and drawbacks of using ODBC to configure your client applications?

  What is the os? what are the machines?

What is the OS? What are the machines?

  What sort of technology is needed at the lan

An interesting emerging market is using Internet phone and a company's high speed LAN to replace the same company's PBX

  Develop a detailed case proposal for description of network

For the equipment price list, make up the price list based on fair market value for each peice of equipment. Do the same for the labor costs.

  Design an improved interactive password system

Design an improved interactive password system? Present your design and describe what kind of attacks your protocol can protect.

  The number of data items being manipulated

A function of n, the number of data items being manipulated. For each expression, determine the dominant term and then classify the algorithm in big-O terms.

  Describe what you would do in order to configure the router

Describe what you would do in order to configure the router with the following settings: Configure the hostname to be _router.

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