mirror of
				https://github.com/ChristopherA/Learning-Bitcoin-from-the-Command-Line.git
				synced 2025-10-31 10:27:29 +00:00 
			
		
		
		
	Update 2A_Setting_Up_a_Bitcoin-Core_VPS_by_Hand.md
This commit is contained in:
		
							parent
							
								
									d4ff10d58c
								
							
						
					
					
						commit
						745f032311
					
				| @ -252,9 +252,12 @@ alias bc="bitcoin-cli" | ||||
| alias bd="bitcoind" | ||||
| alias btcinfo='bitcoin-cli getinfo | egrep "\"version\"|balance|blocks|connections|errors"' | ||||
| alias btcblock="echo \\\`bitcoin-cli getblockcount 2>&1\\\`/\\\`wget -O - http://blockchain.info/q/getblockcount 2>/dev/null\\\`" | ||||
| EOF | ||||
| ``` | ||||
| The only difference between the two is in the 'btcblock' line, which looks up the block count in different places for Mainnet and Testnet. | ||||
| 
 | ||||
| _Warning: The btcblock alias will not work correctly if you try to place it in your .bash_profile by hand, rather than using the "cat" command as suggested. To enter it by hand, you need to adjust the number of backslashes (usually from three each to one each), so make sure you know what you're doing if you aren't entering the commands exactly as shown._ | ||||
| 
 | ||||
| As usual, give your user permission: | ||||
| 
 | ||||
| ``` | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user