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

  Implementation of algorithms for process management

The Shortest Job Next (SJN) algorithm queues processes in a way that the ones that use the shortest CPU cycle will be selected for running rst.

  Develop a user mode command interpreter

Develop a user mode command interpreter which support list-short.

  Memory allocation in operating system

Analysis and implementation of algorithms for memory allocation in operating system, Explain First- t and best- t methods are used in memory allocation in operating systems.

  Stand alone child process

Forking the child process

  Write a multi-threaded program

Write a multi-threaded program to solve producer and consumer problem

  Marginal and average cost curves

n a competitive market place (pure competition) is it possible to continually sell your product at a price above the average cost of production.

  Simulating operating systems scheduling

Simulate the long-term scheduler, the short-term scheduler and the I/O scheduler of the computer using the First-Come-First-Serve algorithm.

  Issues with trusted platform module

Research paper discussing the issues with Trusted Platform Module (TPM)

  Threads

Explain a complication that concurrent processing adds to an operating system.

  Design and programming

Use the semaphore methods to control the concurrency of the solution

  Virtual machines

Virtual machines supported by a host operating system

  Discuss an application that benefits barrier synchronization

Discuss an application that would benefit from the use of barrier synchronization

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