Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Need some LINUX/UNIX help please: Part 1: Please show the command to: Define an

ID: 3787257 • Letter: N

Question

Need some LINUX/UNIX help please:

Part 1: Please show the command to: Define an alias called h, that displays the history list for the Bourne shell family, one page at a time.

Part 2: Please show the command to: Define an alias called re, that recalls and re-executes the last command entered for the Bourne Shell family.

Part 3: Using the alias just defined above (part 2), please show the command to re-execute event number 27

Part 4: Please show the command to re-execute event number 10, which is "vi dog"; but you wish to run "vi lab3"

Explanation / Answer

The alias command is not supported by bourne shell (sh). For the entire Bourne shell family you can use shell functions instead of aliases;

The Bourne shell does not support command history too.

Depending upon the shell, certain features will be available. The table below summarizes the features available with the 5 most common shells.

Bourne C TC Korn BASH

sh csh tcsh ksh bash

______________________________________________________

Programming language Yes Yes Yes Yes Yes

Shell variables Yes Yes Yes Yes Yes

Command alias No Yes Yes Yes Yes

Command history No Yes Yes Yes Yes

Filename completion No Yes* Yes Yes* Yes

Command line editing No No Yes Yes* Yes

Job control No Yes Yes Yes Yes

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote