Which of these commands can you use to monitor a log file named ‘file.txt‘ in your Ubuntu 18.04 system?
Note: Assume that you are remotely connected to a server and don’t have a GUI.
Options
- tail -f file.txt
- head -f file.txt
- tail -n file.txt
- head -n file.txt