Book Image

Elastix Unified Communications Server Cookbook

Book Image

Elastix Unified Communications Server Cookbook

Overview of this book

Table of Contents (24 chapters)
Elastix Unified Communications Server Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Description and Use of the Most Well-known FreePBX Modules
Addon Market Module
Asterisk Essential Commands
Asterisk Gateway Interface Programming
Helpful Linux Commands
Index

Helpful Linux commands for debugging


As with any operating system, executing service, or program, it is very important to know the state of them in real time. All operating systems and programs store their activities in logs. These logs are text files that are filled with information, messages, and events in order to have a system managed and administrated in the most accurate way.

  1. tail is a command that prints the last 10 lines of a file to the standard output by default. The most commonly used option for this command is f. This option will display the data as the file size increases. This command is very helpful to see in real time the information sent to a log.

    • For example, to follow the information sent to the operating system messages file, type tail -f /var/log/messages

    • The output could be as follows:

    • To quit from this command, we press Crtl + C.

  2. The following list shows the information related to the most commonly used log files in Elastix Unified Communications Server:

    • /var/log/messages...