Display information about users that are currently logged in

Assignment Help Operating System
Reference no: EM131143641

Linux Script Worksheet

Before beginning the Linux Script Worksheet, update the PATH variable to add your folder from last week. You will find how to do this on p. 134 of Linux Command Line and Shell Scripting Bible.

Linux Script 1

Requirements

Create a new file titled week3prog1[name].scr.

Change the permissions on this new file to add the execute bit for user, group, and owner.

Edit your new file using Gedit or VI and change it so it performs the following actions:

• Display the date

• Display the words Hello World

• Display information about users that are currently logged in

Note: Remember to include #!/bin/bash as the first line of your script.

Save the file and type your file name to execute.

Source Programs

Output Results

Linux Script 2

Requirements

In the same folder as last week, create a new file called week3prog2[name].scr.

Change the permissions on this new file to add the execute bit for user, group, and owner.

Edit your new file using Gedit or VI and change it so it performs the following actions:

• Using a line after #!/bin/bash, take the output of the ps -e command and pipe it to the sort command

• After it has been piped to the sort command, redirect that output to a file called psfile

Note: Remember to include #!/bin/bash as the first line of your script.

Source Programs

Output Results

Linux Script 3

Requirements

In the same folder as last week, create a new file called week3prog3[name].scr.

Change the permissions on this new file to add the execute bit for user, group, and owner.

Create two files.

• File1 has one line with the value of 5.

• File2 has one line with the value of 100.

Edit your new file using Gedit or VI and change it so it performs the following actions:

• Read the values from the two files above (file1 and file2)

• Divide the value from file2 by the value in file1

• Output the result of this calculation to a new file called file3

Note: Remember to include #!/bin/bash as the first line of your script.

Reference no: EM131143641

Questions Cloud

Identifying tasks or tactics for each aspect of marketing : Use the Product Lifecycle Worksheet (linked in the Resources under the Required Resources heading). Complete all of the sections of the worksheet, identifying tasks or tactics for each aspect of the marketing mix at each stage of the product lifec..
For each company calculate the asset turnover ratio : Based on your calculations in part (a), comment on the relative effectiveness of the two companies in using their assets to generate sales and produce net income.
What is the scale factor for the station in problem 20.14 : What are the SPCS83 coordinates (in ft) and convergence angle for a station in the north zone of Pennsylvania with geodetic coordinates of 41°12'33.0745" N and 76°23'48.9765" W?
What horizontal length would have to be observed to lay off : The given distances between points in this project area were computed from SPCS83 state plane coordinates. What horizontal length would have to be observed to lay off these lines on the ground? (Use 6,371,000 m for an average radius for the Earth...
Display information about users that are currently logged in : Change the permissions on this new file to add the execute bit for user, group, and owner. Display information about users that are currently logged in.
What functional strategies does an organization need : What functional strategies does an organization need - what might provide the basis upon which an organization decides on a competitive strategy?
Assume the books have not yet been closed for 2010 : Prepare all journal entries necessary to correct any errors made during 2010. Assume the books have not yet been closed for 2010.
Calculate the grid length and grid azimuth of line ab : The Pennsylvania north zone SPCS83 state plane coordinates of points A and B are as follows
Explain how the company product strategy attempts : Explain how the company's product strategy attempts to carve out a niche or maintain market share leadership. Consider branding, design, product positioning, and other relevant product-related elements.

Reviews

Write a Review

Operating System Questions & Answers

  A borg unimatrix has 40-bit virtual addresses

A Borg Unimatrix has 40-bit virtual addresses and 32-bit physical addresses. Pages are 32 KB in size. How many entries are needed for the page table? Give all formulas, steps, and compute out the final number as an integer(in humanly readable deci..

  Computer privacy related question

One of the main concerns with the expanding influence of information technology is issue of personal privacy. As more and more individuals and businesses are using computers to transact business and store data the protection of individual privacy is ..

  Design of an operating system performance

Design of an Operating System Performance Evaluation and Analysis - What is the significance of the topic as related to the field of computer science and industry

  Schedule for shortest-job-first and roundrobin algorithms

Process 2 has total of 20 units of work to perform. This process arrives just behind P1. Illustrate the resulting schedule for shortest-job-first (preemptive) and roundrobin algorithms.

  Implement a paged memory allocation scheme

Create a memory allocation program that determines the number of frames that are needed by a requesting client and assigns pages to available frames using a client-server architecture.

  Discuss technology related ethical issue

Discuss and explain a technology related ethical issue. Determine the issue and its possible outcomes? How can the issue be resolved?

  Analyse the different methods for collecting data

Analyse the different methods for collecting data Explain by taking examples 3 types of Sampling techniques.

  Express the propagation delay, dprop, in terms of m and s

Does the browser request a non-persistent or a persistent connection?

  Identify a trend that could influence the development

Identify a trend that could influence the development of future operating systems

  Create a model round robin scheduler

Create a Model Round Robin Scheduler - Referencing the Round-Robing scheduling algorithm

  Explain the impact on the disks cache of several queries

Explain the impact on the disk's cache of several queries running concurrently, each scanning a different file. Can the above problem be addressed by the DBMS buffer manager doing its own prefetching? Explain.

  What will be the sequence of preemptive priority queuing

What will be the sequence if preemptive priority queuing is used instead?

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