Location to run the filebeat modules command

Hi,

I have run the belwo command on the path /usr/share/filebeat/bin

But it gives me below error.

./filebeat modules list
filebeat2018/03/27 01:40:46.833628 beat.go:346: CRIT Exiting: error loading config file: stat filebeat.yml: no such file or directory
Exiting: error loading config file: stat filebeat.yml: no such file or directory

Filebeat version is 5.6 rpm package also have tried ./filebeat.sh modules list

But no luck.Please suggest it

Can you try filebeat modules list directly without going into he directory?