Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

What are the commands for these? ( Introduction to Linux/Unix ?) 1. On a single line , create the following variables with the values given.

What are the commands for these? (Introduction to Linux/Unix ?)

1. On a single line, create the following variables with the values given.

Variable a with the value 5

Variable b with the value 3

On another single command line, create the following variables with the values given.

Variable s1 with the value "foo"

Variable s2 with the value "foo"

Variable s3 with the value "bar"

Print all variables and their values to the terminal.

-Write a test expression that returns a value indicating true or false when testing whether a is equal to b. Echo the results of this test to the terminal.

-Write a test expression that returns a value indicating true or false when testing whether a is less than b. Echo the results of this test to the terminal.

-Write a test expression that returns a value indicating true or false when testing whether a plus b is greater than 9. Echo the results of this test to the terminal.

-Write a test expression that returns a value indicating true or false when testing whether s1 is equal to s2. Echo the results of this test to the terminal.

-Write a test expression that returns a value indicating true or false when testing whether s1 is not equal to s3. Echo the results of this test to the terminal.

-Write a test expression that returns a value indicating true or false when testing whether s1 has a length greater than 0. Echo the results of this test to the terminal.

-Write a test expression that returns a value indicating true or false when testing whether dir1 is a directory. Echo the results of this test to the terminal.

-Write one test expression that returns a value indicating true or false when testing whether empty.txt is readable and is writeable. Echo the results of this test to the terminal.

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

XML Data Management Native XML And XML Enabled Database Systems

Authors: Akmal Chaudhri, Awais Rashid, Roberto Zicari, John Fuller

1st Edition

0201844524, 978-0201844528

More Books

Students also viewed these Databases questions

Question

Discuss the key ambient conditions and their effects on customers.

Answered: 1 week ago