Install Sample Data in Magento 2

You can use command line to install sample data by going to magento 2 root folder. Then,

1. download sample data: 
$php bin/magento sampledata:deploy


2. install sample data: 
$php bin/magento setup:upgrade