Boot your ubuntu system and open two command shells

Assignment Help Operating System
Reference no: EM131006854

Part -1:

1. Boot your Ubuntu system and open two command shells. In one of the two use the su command to change to the root identity: su - root

Read the man page on the su command. What is the meaning of the - option?

____________________________________________________________

____________________________________________________________

2. Execute the command whoami in both windows: who are you?

____________ ____________

3. Read the man page on the adduser command and the one on the useradd command. Which command should you use, and why?

____________________________________________________________

____________________________________________________________

How many arguments should you give when you use the adduser command? Create three new user identities: flashgordon, dalearden, and mingthemerciless. Does the adduser command work in both windows? Who is allowed to run the adduser command?

____________ ____________ ____________

4. Read the man page for the passwd command. If you do not provide any arguments to that command, whose password will be changed?

____________________________________________________________

5. Use the less command to read the file containing user information: less /etc/passwd
Look for your new identities at the end of that file. (Type 'q' to end the command when you are done.)

6. Use the tail command to read the last five lines of the /etc/passwd file.

7. Now run the command echo $PATH in both windows. What you see there is a list of directories which will be searched for the executable code associated with any commands you issue. The entries in the list are separated with the colon character (:). What is the last entry on the list?

____________ ____________

8. Compare the command prompt you see in the two windows. What information can you glean from the prompt?

___________________________________________________________

9. Use the exit command in the window that recognizes you as root. Use the exit command again. Now use the exit command in your other window. What happened? Open a new terminal window and run the command man exit. Why was the effect of the command different in the different windows? That is, why did one exit get you out of one of the windows, while closing the other required two?

____________________________________________________________

____________________________________________________________

10. Open a new terminal window and read the man page on the shutdown command. What command would you type to halt the system in 30 minutes?

____________________________________________________________

11. SHUT DOWN YOUR SYSTEM BEFORE YOU LEAVE!

Part -2:

1. Boot your system and open a terminal Window.

2. Using vi/vim, create a file named sample1.txt. (NOTE: Explore these two commands using man pages and the which command. Do you invoke the editor using the vi command or the vim command or both? Behind the scenes, is it vi or vim which is being executed?)

3. Change from command mode to insert mode by typing the 'i' character. Type the following text: "Creating a file is easy."

4. Save your file and exit the editor.

5. Using the pwd command, record your working directory path below:

______________________________________________________

6. Using the ls command with the -l option, record the owner and group owner for your file.

______________________________________________________

7. Using vi/vim, open sample1.txt.

8. Navigate to the word "Creating" and replace it with "Editing".

NOTE: While in insert mode, the delete key works normally, but the arrow keys will produce strange results (they are actually control sequences). Navigate while in command mode, using the arrow keys, and switch to insert mode when you want to delete a character. ALSO note that you can delete an entire line while in command mode, by typing a double-d.

9. Navigate to the word "a" and delete it.

10. Navigate to the end of the word "file" and add an s to it.

11. Save your file using the new name sample2.txt and exit the editor.

12. Open the Text Editor - the basic one, not OpenOffice/LibreOffice Writer. You may find the text editor by opening Dash Home. There likely will be an icon on the first screen labeled "Text Editor". If there is not, us the search box to find it - type "text" in the box, and the application named "Text Editor" should appear. Note that the application invoked is something called "gedit". Use your terminal window to look up the man page on gedit. Repeat these exercises (skipping number 5), but this time save the files using the word etest as the base name rather than sample.

Verified Expert

Solution contains solution for questions given In works 21. Ref and another doc contains answer to theory question. Finally a doc contains solution for questions from assignment 1.

Reference no: EM131006854

Questions Cloud

Work for the same employer : A couple is having a child. They both work for the same employer. Several months before the anticipated birth date, both inform the employer of their need for leave. The employer says that they are limited to a total of twelve weeks leave between ..
What journal entry did hewlett packard use to record : Using an electronic spreadsheet, prepare an amortization schedule for the notes. Assume interest is calculated annually and use numbers expressed in millions of dollars; that is, the face amount is $1,800.
Attend medical appointments : After becoming pregnant, an employee took occasional FMLA leave to attend medical appointments. The employee subsequently received a doctor's slip diagnosing her with pregnancy and gestational edema and identifying her as totally disabled from tha..
Do you agree with the accountant''s valuation of the note : Do you agree with the accountant's valuation of the note and his intention to value the parts inventory acquired over the four-year period of the agreement at actual prices paid?
Boot your ubuntu system and open two command shells : Execute the command whoami in both windows: who are you - How many arguments should you give when you use the adduser command? Create three new user identities: flashgordon, dalearden, and mingthemerciless. Does the adduser command work in both win..
What information does your calculation provide an investor : Calculate the debt to equity ratio for AGF for 2011. The average ratio for the stocks listed on the New York Stock Exchange in a comparable time period was 1.0. What information does your calculation provide an investor?
How the business is organized, governed, and operated : Explain the legal and financial characteristics of each of the five main form of business entities described. Discuss the implications of applicable laws and regulations, for each type of business entity, on how the business is organized, governed..
Critical evaluation of the research design : Purpose: The purpose of exercise is to conduct a detailed, critical evaluation of the research design, methods and analysis of a study written up and published in a peer-reviewed journal
Show that the current market exchange rate is outside : Consider the Mundell-Fleming Model with semi-fixed exchange rate. Specifically, the central banks commits not to a fixed exchange rate, but to an interval [e1, e2 ¯]. That is, domestic exchange rate can fluctuate within this interval. And once the..

Reviews

Write a Review

Operating System Questions & Answers

  When does a buffer manager write a page to disk

When does a buffer manager write a page to disk? What does it mean to say that a page is pinned in the buffer pool? Who is responsible for pinning pages? Who is responsible for unpinning pages?

  Operating system proposal

Operating System Proposal

  How could you copy all the files from the current directory

How could you move all the files that end with an extension *.h in your home directory to the current directory without knowing the full path to the current directory [Hint: use a shortcut for the home directory and current directory.

  Create a report summarizing your research.

Explain why you will or will not use Cascading Style Sheets to design your Web site.

  Do you think that files are stored in consecutive sectors

All files may grow dynamically during execution without giving the operating system any advance information about their ultimate size. Do you think that files are stored in consecutive sectors? Explain.

  Explain the difference between the chkdsk and scandisk cmnds

Explain the difference between the Copy command and the Xcopy command

  Cpu scheduler objectives 1 understand cpu scheduler 2

objectives ltbrgt1. understand cpu scheduler ltbrgt2. implement an algorithm ltbrgt3. empirical analysis of an

  Friendly computer program

Consider of any computer related item that you felt was not user friendly to you? Did you feel reluctant to continue using it.

  Focuses on software development process and life cycle model

Discuss how would you address this certification issue with your hypothetical firm for your system that you are trying to certify at the top secret level?

  Describe lean operating systems

Lean Operating Systems, From the first e-Activity, examine at least three different types of waste that can be found in an organization of your choice. Suggest the lean strategies to confront them.

  Compile the code below and test it

This code is not compiling, it consists of a header file (rational.h) and the code itself (rational.c). Please provide comment (like what the while loop does ...etc, so that the program is more understandable by anyone reading it). The original pr..

  Explain features of vista operating system

What makes Vista better (or worse) choice for home or office computing? Explain general features of the operating system.

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