Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

i tried the question again but this is what i got The df command shows you how much disk space is available on a Linux

i tried the question again but this is what i got

The df command shows you how much disk space is available on a Linux system. Use the output from the previous question to write a command pipeline that prints how much disk space is available on each of the disks found in question 1. The only acceptable output consists of two numbers only. NOTE: instead of cut, you may want to use awk. To print the second field in a whitespace-delimited file using awk, use the following command: awk '{print $2}'

and it says $2 but why are you using $4 sir ?

$ df | grep $a | awk '{print $2}'

grep: [sdb]: No such file or directory

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

SQL Database Programming

Authors: Chris Fehily

1st Edition

1937842312, 978-1937842314

More Books

Students also viewed these Databases questions

Question

What is the this key word?

Answered: 1 week ago