Which of the following commands will create a shortcut to the tail -f /var/log/messages command?
alias sysmesg="tail -f /var/log/messages"
Which command will display a list of the currently defined aliases on the system?
What commonly predefined alias is configured to run the ls -l command
You must do which of the following to define a persistent alias?
Add the command defining the alias to the appropriate shell configuration file
The user mbrown has a directory named logs in her home directory that is regularly updated with new log files when certain system events occur. She runs the following commands several times a week to check this directory:
She wants a persistent alias named logcheck to be created to run these two commands. Which command would you enter into her shell configuration file to create this persistent alias?
alias logcheck="cd /home/mbrown/logs;ls -al"
Haven't found what you need?
Search for quizzes and test answers now