user100526: I have run a full node on linux
now I can run commands with bitcoin-cli like:
bitcoin-cli getbestblockhash

it returns:
0000000000344240308f54ded700542571b3df9efe05fab92e669099e20e0d92

or
bitcoin-cli getblockcount

82273

but I can't know where should I change get block to get headers: 
https://bitcoin.org/en/developer-reference#getheaders
I want to get all headers instead of total blocks to have a SVP node.

user63872: You can use the command bitcoin-cli getblockheader "hash" ( verbose ) to return a specific block header. For more info: bitcoin-cli help getblockheader

but I can't know where should I change get block to get headers: https://bitcoin.org/en/developer-reference#getheaders
I want to get all headers instead of total blocks to have a SVP node.

The getheaders message referenced in that link is part of the peer-to-peer gossip protocol between nodes, not the command line interface. From that link:

The getheaders message requests a headers message that provides block headers starting from a particular point in the block chain. It allows a peer which has been disconnected or started for the first time to get the headers it hasn’t seen yet.


100526: <p>I have run a <code>full node</code> on <code>linux</code>
now I can run commands with <code>bitcoin-cli</code> like:</p>

<pre><code>bitcoin-cli getbestblockhash
</code></pre>

<p>it returns:</p>

<pre><code>0000000000344240308f54ded700542571b3df9efe05fab92e669099e20e0d92
</code></pre>

<p>or</p>

<pre><code>bitcoin-cli getblockcount

82273
</code></pre>

<p>but I can't know where should I change get block to get headers: </p>

<p><a href="https://bitcoin.org/en/developer-reference#getheaders" rel="nofollow noreferrer">https://bitcoin.org/en/developer-reference#getheaders</a></p>

<p>I want to get all headers instead of total blocks to have a <code>SVP</code> node.</p>
 63872: <p>You can use the command <code>bitcoin-cli getblockheader &quot;hash&quot; ( verbose )</code> to return a specific block header. For more info: <code>bitcoin-cli help getblockheader</code></p>
<blockquote>
<p>but I can't know where should I change get block to get headers: <a href="https://bitcoin.org/en/developer-reference#getheaders" rel="nofollow noreferrer">https://bitcoin.org/en/developer-reference#getheaders</a></p>
<p>I want to get all headers instead of total blocks to have a SVP node.</p>
</blockquote>
<p>The <code>getheaders</code> message referenced in that link is part of the peer-to-peer gossip protocol between nodes, not the command line interface. From that link:</p>
<blockquote>
<p>The getheaders message requests a headers message that provides block headers starting from a particular point in the block chain. It allows a peer which has been disconnected or started for the first time to get the headers it hasn’t seen yet.</p>
</blockquote>
