]> git.ipfire.org Git - ipfire.org.git/blobdiff - src/templates/location/how-to-use.html
location: location-query(8) has been renamed to location(8)
[ipfire.org.git] / src / templates / location / how-to-use.html
index 975dfc11c6fa3213af4718621c1fb47650ef1e43..76ba86496988aaeb6846464428eebec4b262d479 100644 (file)
@@ -33,7 +33,7 @@
                                                <code>libloc</code> comes with a command line tool which
                                                makes it easy to test the library or integrate it into
                                                your shell scripts.
-                                               <code>location-query(8)</code> knows a couple of commands
+                                               <code>location(8)</code> knows a couple of commands
                                                to retrieve country or Autonomous System of an IP address
                                                and can generate lists of networks to be imported into
                                                other software.
 
                                        <p>
                                                Although this is not the fastest way to lookup a large number
-                                               of IP addresses, <code>location-query(8)</code> is versatile
+                                               of IP addresses, <code>location(8)</code> is versatile
                                                and very easy to use.
                                        </p>
 
-                                       <a class="btn btn-secondary" href="https://man-pages.ipfire.org/libloc/location-query.html">
+                                       <a class="btn btn-secondary" href="https://man-pages.ipfire.org/libloc/location.html">
                                                {{ _("Man Page") }}
                                        </a>
                                </div>
                                <div class="col-12">
                                        <h6>{{ _("Search for an Autonomous System by Name") }}</h6>
 
-                                       <pre class="mb-4"><code>$ location-query search-as "Lightning Wire Labs"
+                                       <pre class="mb-4"><code>$ location search-as "Lightning Wire Labs"
 AS204867 (Lightning Wire Labs GmbH)</code></pre>
 
                                        <h6>{{ _("Lookup an IP Address") }}</h6>
 
-                                       <pre class="mb-4"><code>$ location-query -d test.db lookup 81.3.27.38
+                                       <pre class="mb-4"><code>$ location -d test.db lookup 81.3.27.38
 81.3.27.38 belongs to 81.3.27.0/24 which is a part of AS24679 (Hostway Deutschland GmbH)</code></pre>
                                </div>
                        </div>
@@ -81,8 +81,8 @@ AS204867 (Lightning Wire Labs GmbH)</code></pre>
                                        <p>
                                                <code>libloc</code> comes with native Python bindings which
                                                are used by its main command-line tool
-                                               <a class="text-white" href="https://man-pages.ipfire.org/libloc/location-query.html">
-                                                       <code>location-query</code>
+                                               <a class="text-white" href="https://man-pages.ipfire.org/libloc/location.html">
+                                                       <code>location</code>
                                                </a>.
                                                They are the most advanced bindings as they support reading
                                                from the database as well as writing to it.