Which of the following commands will create a shortcut to the tail -f /var/log/messages command?
answer
alias sysmesg="tail -f /var/log/messages"
question
Which command will display a list of the currently defined aliases on the system?
answer
alias
question
What commonly predefined alias is configured to run the ls -l command
answer
ll
question
You must do which of the following to define a persistent alias?
answer
Add the command defining the alias to the appropriate shell configuration file
question
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:
cd /home/mbrown/logs
ls -al
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?
answer
alias logcheck="cd /home/mbrown/logs;ls -al"
Haven't found what you need?
Search for quizzes and test answers now
Quizzes.studymoose.com uses cookies. By continuing you agree to our cookie policy