Linux Operating Systems

profiles7211

  

Modify your existing script to execute the following commands.

1) df and route the output to temp8

cat command to display temp8 content

2) Startup Firefox; pause

(command to startup Firefox and return to system prompt: (Firefox &)

3) run the ps command; pause

3) kill the Firefox session (kill -9 PID)

the command to read and pause for user input is:

read -p "what is the current version of Linux on the system?"
read -p "Press [enter] to run df command..."
df >> temp8
cat temp8
read -p "Press [enter] to start Firefox command..."

you will have 4 read -p commands;

1) Run df command and display temp8 content

2) Start Firefox

3) Run ps command

4) Kill firefox using PID

---------------------------------------------------------

 Upload screen shots of each output

    • 6 years ago
    • 12
    Answer(0)