Answered step by step
Verified Expert Solution
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started