PrepAway - Latest Free Exam Questions & Answers

Which shell built-in command can be used to create a shortcut or pseudonym for a longer command?

Which shell built-in command can be used to create a shortcut or pseudonym for a longer command? Assume a modern bourne-like shell, such as bash.

PrepAway - Latest Free Exam Questions & Answers

A.
shortcut

B.
ln

C.
sudo

D.
link

E.
alias

Explanation:
In bash you can use alias to create shell internal commands.

Example:
$ alias
alias grep=’grep –color=auto’
alias ll=’ls -alF’
alias ls=’ls –color=auto’

ln creates symlinks or hardlinks (can be used to create aliases, but does not work with options)
sudo starts a command with root privileges


Leave a Reply