Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Assume that you want to create an alias named lm that runs 'ls -al | more' . Your alias works if you do not give

Assume that you want to create an alias named lm that runs 'ls -al | more' . Your alias works if you do not give it a directory as an argument, but if you try and run it on a different directory, e.g. lm / it list the contents of the current directory and then prints an error message. Which of the following would create the alias so that it passes the argument in to the ls command?

A. alias lm 'more < ls -al'

B. alias lm 'ls -al' $1 | 'more'

C.alias lm 'ls -al !* | more'

D. alias lm 'ls -al \!* | more'

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

Database Systems On GPUs In Databases

Authors: Johns Paul ,Shengliang Lu ,Bingsheng He

1st Edition

ISBN: 1680838482, 978-1680838480

Students also viewed these Databases questions