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

  Time slot interchange switch

In a time slot interchange switch, eight input lines are scanned in sequence to build up an input frame with eight slots.

  Question about spreadsheet applications

As a result of your work on high school reunion assignment, you decide to learn more about MS. Excel and the several uses of spreadsheet applications.

  What are mobile oss you have personally used

What are mobile OSs you have personally used? Describe the advantages and disadvantages of their effects. Share a resource you have found regarding mobile OSs

  Find the common characteristics of the dss system

Assume you are a chief information officer who is hired through a company that generates electricity with three coal burning electric power plants located in various parts of the nation.

  Oracle datatypes for the attributes

Choose Oracle datatypes for the following attributes from a normalized relation including:

  Point to point and end to end security models

Argue differences in point to point and end to end security models and security problems they address. Are they redundant?

  Find total memory bytes stored in the cache

Following, a byte addressable main memory of 2^16 bytes and block size of eight bytes, using direct mapped cache consisting of thirty-two lines.

  Configuration and implementation of a cluster computing

Develop and submit a project plan including implementation steps for the configuration and implementation of a cluster computing solution to support a mission critical application

  Explain in detail about the unix operating system structure

1. Explain in detail about the UNIX Operating system structure.2. list all files that contains "seq" in the filename

  Mobile users and enterprise security

The Baypoint Group requires your help with a presentation for Academic Computing Services, a nationwide company that assists colleges and universities with technology issues.

  Write a one page report on sip session initiation protocol

how SIP is currently being used when providing the interface between the user and an application.

  Multiplexor and demultiplexor?

statistical time division multiplexing with 24 stations inputting data at 9600 bps, and assuming that only 60 percent of those stations transmit at one time, what is the minimal speed necessary for the high speed link connecting multiplexor and demul..

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