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

  What is the difference between ipc and rpc

What are the main features of processes and what information is included in PCB - Why is process cooperation supported in modern operating systems - Explain the terms at most once and exactly once, and indicate how these terms relate to remote proced..

  Creating pseudocode

Create pseudocode for the Citron Car rental policy, Standard transmission is available only for A, B, and C. Automatic transmission is available for all cars.

  Components and functions of a linux operating system

You have been engaged to write a manual for managing a Linux environment. This task requires the following to be addressed: Define the necessary components and functions of a Linux operating system

  How they are selected and prioritized by management

how they are selected and prioritized by management, at a strategic level?

  Identify specific capabilities of computing

The creation and use of calculating technology enables new capabilities. For example, information and decision rules can be captured and copied more easily,

  Write a report outlining methods of acquiring image in linux

Write a 300-500 words report outlining two methods of acquiring an image in Linux. Student can use Kali and Ubuntu Linux virtual machine (VM) images provided in this subject's lab.

  The state of the waiting thread to blocked

Which IPC mechanism does not change the state of the waiting thread to blocked?

  Describe the specific security concerns or risks

Describe the specific security concerns or risks that your chosen operating system is exposed to and how you plan to mitigate the risk that each one presents.

  The closing process of a project is the last stage of the

the closing process of a project is the last stage of the life cycle of a project is to finalize all activities across

  Disadvantages to living in an information age

Discuss some of the disadvantages to living in an Information Age? At present more and more people rely on computers to create, store, and manage critical information.

  Unix system calls and library functions

CS4760 Operating Systems, Unix System Calls and Library Functions, The goal of this homework is to become familiar with the environment in hoare while practising system calls.

  Purpose to apply the compensation knowledge in real-world

purpose to apply the compensation knowledge in real-world situation. the task formulating a compensation strategy for

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