How to install Watchman in Ubuntu 16.04?

Please state to setup watchman in Ubuntu operating system.

Follow below steps to install watchman in Ubuntu 16.04

1- Go to home directory:
$ cd ~

2- Clone using below command:
$ git clone https://github.com/facebook/watchman.git

3- Get into watchman directory:
$ cd watchman/

4- Now use this command:
$ git checkout v4.7.0

5- Run the commands:
$ sudo apt-get install -y autoconf automake build-essential python-dev
$ ./autogen.sh 
$ ./configure 
$ make
$ sudo make install
$ watchman --version

6- Finally use below entire command to run:
$ echo 999999 | sudo tee -a /proc/sys/fs/inotify/max_user_watches  && echo 999999 | sudo tee -a  /proc/sys/fs/inotify/max_queued_events && echo 999999 | sudo tee  -a /proc/sys/fs/inotify/max_user_instances && watchman  shutdown-server


And now it is installed in your operating system.