Linux basic commands on S-Series

Introduction 

Yeastar S-Series PBX is base on Asterisk platform and operating on Linux system. 

In this article, you will learn some Linux basic and useful commands that can help exploring potentials of Asterisk and S-Series. 

First you will need login to SSH of S-Series PBX: 

https://support.yeastar.com/hc/en-us/articles/115004259608-How-to-Log-in-SSH-of-Yeastar-S-Series-VoIP-PBX

 

1. cd

The cd command can move your current directory to desired directory, it basically help you to move around the PBX's file system:

mceclip0.png

2. ls

The ls command will list all the files and folders in your current directory.

mceclip1.png

3. df

The df command lists the file system space usage, you will able to check used and available space of each file system on PBX

mceclip9.png

4. vi

The vi is a file editor in linux, for more information please refer to: 

https://support.yeastar.com/hc/en-us/articles/360040333053-Linux-basic-command-and-operation-vi-command

5. cat

The cat command will list all content of file:

#cat filename

mceclip2.png

6. dmesg

The dmesg command on S-Series is used to show hardware log, you will be able to see the system information and hardware status:

mceclip3.png

Note: dmesg is useful when you experiencing module failure on PBX, it will print details of each module status. So you will be able to tell if you have hardware failure at particular module:

mceclip0.png

7. free

The free command will list summary of S-Seris PBX's memory usage

mceclip4.png

8. mv

The mv command allows you to move a file from one directory to another, you can also rename the file.

to move file1 from directory1 to directory2 and name it file2:

#mv /directory1/file1 /directory2/file2

to rename fileaaa to filebbb

#mv fileaaa filebbb

9. ping

The ping command allows you to check the PBX's connectivity with other device or network:

#ping IP/domain

mceclip5.png

press Ctrl+C to stop ping

10. ps

The ps command will list all running process

mceclip6.png

11. pwd

The pwd command will print the current directory path

mceclip7.png

12. top

The top command will allows you to monitor real-time system resources usage of PBX

mceclip8.png

press Ctrl+C to stop top

13. reboot

The reboot command will reboot the PBX automatically

 

Please note that not all related Linux commands are included here

 

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.