$ nmap -v -sP 192.168.10.0/24
(of course, changing the numbers accordingly for the relevant network). Also, the program 'nmap' should be installed beforehand...
$ nmap -v -sP 192.168.10.0/24
-Djava.library.path=/usr/share/java/
-Djava.library.path=/usr/lib/jni/