Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question1: What is a foreground process and a background process?? What are the roles of following commands? Test them and paste the example in the

Question1: What is a foreground process and a background process?? What are the roles of following commands? Test them and paste the example in the document.

  • ps
  • kill
  • fg
  • bg
  • &

PART-II

Using pipes in UNIX

Standard Input and output devices

Every programs normally have some input and some output. In other words, some data has to be entered and some kind of analysis will come out afterwards. The input to a program might come from a file, or might be typed in to the program by the user. The output might appear on the screen, be sent to a file or to a printer.

Programs for UNIX are usually written as though input is typed in by the user, and output appears on the screen.

PIPE & REDIRECTION:

The symbol | (vertical bar) is the Unix pipe symbol that is used on the command line.

> is used to redirect the output to a file

< is used to take input from a file

Try :

$cat > weather.txt

^z

To do:

  1. Run the command cat weather.txt | wc
  2. Explain the output
  3. Run the following command and explain its functioning

$ who > current_users

  1. Give an example each of pipes and redirection operators from your own understanding. (test it and show result)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Practical Azure SQL Database For Modern Developers Building Applications In The Microsoft Cloud

Authors: Davide Mauri, Silvano Coriani, Anna Hoffma, Sanjay Mishra, Jovan Popovic

1st Edition

1484263693, 978-1484263693

More Books

Students also viewed these Databases questions

Question

2. How will the team select a leader?

Answered: 1 week ago

Question

WHAT IS AUTOMATION TESTING?

Answered: 1 week ago

Question

What is Selenium? What are the advantages of Selenium?

Answered: 1 week ago

Question

Explain the various collection policies in receivables management.

Answered: 1 week ago

Question

How do modern Dashboards differ from earlier implementations?

Answered: 1 week ago