Computer Science Quiz 1.4.4 Networks

25 July 2022
4.7 (114 reviews)
5 test answers

Unlock all answers in this set

Unlock answers (1)
question
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"