If you need to import a shapefile in PostGIS, you have at least a couple of options such as the
ogr2ogr GDAL command, as you have seen previously, or the
shp2pgsql PostGIS command.
In this recipe, you will load a shapefile in the database using the
shp2pgsql command, analyze it with the
ogrinfo command, and display it in the QGIS Desktop software.
The steps you need to follow to complete this recipe are as follows:
ogr2ogrcommand (note that in this case, you do not need to specify the
-foption, as the shapefile is the default output format for the
$ ogr2ogr global_24h.shp global_24h.vrt