OP didn't talk about masternode, but bitcoin full node
Just use && so you only need to run the commend once, example :
You also can make simple run bash script to automate it rather than run the command one by one
It was the Bitcointalk forum that inspired us to create Bitcointalksearch.org - Bitcointalk is an excellent site that should be the default page for anybody dealing in cryptocurrency, since it is a virtual gold-mine of data. However, our experience and user feedback led us create our site; Bitcointalk's search is slow, and difficult to get the results you need, because you need to log in first to find anything useful - furthermore, there are rate limiters for their search functionality.
The aim of our project is to create a faster website that yields more results and faster without having to create an account and eliminate the need to log in - your personal data, therefore, will never be in jeopardy since we are not asking for any of your data and you don't need to provide them to use our site with all of its capabilities.
We created this website with the sole purpose of users being able to search quickly and efficiently in the field of cryptocurrency so they will have access to the latest and most accurate information and thereby assisting the crypto-community at large.
sudo apt-get update
sudo apt-get upgrade
sudo apt-get -y install automake
sudo apt-get -y install build-essential
sudo apt-get -y install libtool
sudo apt-get -y install autotools-dev
sudo apt-get -y install autoconf
sudo apt-get -y install pkg-config
sudo apt-get -y install libssl-dev
sudo apt-get -y install libboost-all-dev
sudo apt-get -y install libevent-dev
sudo apt-get -y install software-properties-common
sudo apt-add-repository ppa:bitcoin/bitcoin
sudo apt-get update
sudo apt-get -y install libdb4.8-dev
sudo apt-get -y install libdb4.8++-dev
sudo apt-get -y install libminiupnpc-dev
sudo apt-get -y install git
sudo apt-get -y install automake
sudo apt-get -y install build-essential
sudo apt-get -y install libtool
sudo apt-get -y install autotools-dev
sudo apt-get -y install autoconf
sudo apt-get -y install pkg-config
sudo apt-get -y install libssl-dev
sudo apt-get -y install libboost-all-dev
sudo apt-get -y install libevent-dev
sudo apt-get -y install software-properties-common
sudo apt-get update
sudo apt-get upgrade
sudo apt-get -y install automake
sudo apt-get -y install build-essential
sudo apt-get -y install libtool
sudo apt-get -y install autotools-dev
sudo apt-get -y install autoconf
sudo apt-get -y install pkg-config
sudo apt-get -y install libssl-dev
sudo apt-get -y install libboost-all-dev
sudo apt-get -y install libevent-dev
sudo apt-get -y install software-properties-common
sudo apt-add-repository ppa:bitcoin/bitcoin
sudo apt-get update
sudo apt-get -y install libdb4.8-dev
sudo apt-get -y install libdb4.8++-dev
sudo apt-get -y install libminiupnpc-dev
sudo apt-get -y install git