The commands listed below are called oneliners because they are a single command which accomplishes a task that usually takes several commands or a script.  These can be handy for copy/pasting to resolve an issue, but you should make sure you understand what it is doing and what the risks are.  You may also need to tweak filepaths or URLs.



Bootstrap installation

This command will stop PIVX Core if it is running, create a wallet file backup, download the bootstrap from the specified URL to a temp file in the .pivx folder, unzip it, delete your 4 folders, and then restart pivxd

https://pivx.freshdesk.com/support/solutions/articles/30000021125-using-the-bootstrap 



~/pivx-3.1.0/bin/pivx-cli stop ; cp ~/.pivx/wallet.dat ~/wallet.PIVXbootstrapBackup.dat && wget -O- -O ~/.pivx/tmpbootstrap.zip https://github.com/PIVX-Project/PIVX/releases/download/v3.0.6/pivx-chain-1055000-bootstrap.dat.zip && unzip ~/.pivx/tmpbootstrap.zip -d ~/.pivx && rm -rf ~/.pivx/{blocks,chainstate,sporks,zerocoin,tmpbootstrap.zip} && ~/pivx-3.1.0/bin/pivxd -daemon



Delete Cache

This command will stop PIVX Core if it is running, delete the local blockchain files, and restart (which since sync from scratch)

~/pivx-3.1.0/bin/pivx-cli stop ; rm -rf ~/.pivx/{blocks,chainstate,sporks,zerocoin} && ~/pivx-3.1.0/bin/pivxd -daemon

(testnet)

~/pivx-3.1.0/bin/pivx-cli stop ; rm -rf ~/.pivx/testnet4/{blocks,chainstate,sporks,zerocoin} && ~/pivx-3.1.0/bin/pivxd -daemon



Create a blockchain backup

This command will install zip and unzip, stop PIVX Core if it is running, make a backup of your wallet file, zip your current blockchain cache folders to a zip in the home directory, and then restart PIVX

sudo apt-get install zip unzip ; ~/pivx-3.1.0/bin/pivx-cli stop ; rm -f ~/chainstateBackup.zip && cp ~/.pivx/wallet.dat ~/wallet.PIVXchainstateBackup.dat && zip -r ~/chainstateBackup.zip ~/.pivx/blocks ~/.pivx/chainstate ~/.pivx/sporks ~/.pivx/zerocoin && ~/pivx-3.1.0/bin/pivxd -daemon

(testnet)

sudo apt-get install zip unzip ; ~/pivx-3.1.0/bin/pivx-cli stop ; rm -f ~/chainstateBackup.zip && cp ~/.pivx/testnet4/wallet.dat ~/wallet.PIVXchainstateBackup.dat && zip -r ~/chainstateBackup.zip ~/.pivx/testnet4/blocks ~/.pivx/testnet4/chainstate ~/.pivx/testnet4/sporks ~/.pivx/testnet4/zerocoin && ~/pivx-3.1.0/bin/pivxd -daemon