Basic Gunbot Linux commands
Gunbot will run on all major operating systems flawlessly, but if you’re thinking about renting cloud space to make Gunbot run 24/7/365 without having your own computer or server constantly running – you’ll find that Linux Debian instances are vastly cheaper than their Windows counterparts.
Do i have to use this environment?
Can Linux be hacked?
Anything can be hacked with enough determination/coffee. Linux, however, is the industry standard for enterprise servers due to its open source infrastructure and security features. You should always exercise due diligence in regards to online security.
What are the benefits of using Linux in the cloud?
A lightning Fast connection time between Gunbot and your exchange. A bot that is constantly active with a lower risk of disconnection – for example: neighbourhood power outage or someone accidentally unplugging your router.
Will I ever be locked out of my instance?
While this is extremely unlikely, it is not impossible. The main reasons people lose access to their instance is loss of private SSH keys. Look after these like you look after your credit card. If this ever happens, change your API keys immediately and contact us.
Learn about instances in the Gunbot School
This page is purely to give you a headstart and build your confidence with certain Gunbot Linux commands
Okay, let’s jump in to the Gunbot Linux commands
is short for list. If you’re in a directory (a directory is Linux’s way of saying folder if you’re Windows or mac minded) and you would like to see the files inside, simply type ls and it will show you everything inside the folder.
It is also worth noting that all these commands are case sensitive. If you type Ls, you will be provided with a syntax error and the command won’t work.
Sometimes you may not find the file you’re looking for which means it could be hidden. This is solved by adding a “flag”
If, for example, you’re in your home directory and wish to move to your Downloads folder, you would simply type
but if you wanted to return to the last folder you were in, you would type
alternatively, if you wanted to navigate back to your home folder, you would type
Where “~” means home.
mkdir is short for make directory and you’ll be using this command to make your folders.
For example, if I wanted to make a folder called Gunbot, it’s as simple as typing
to navigate to that folder, you’d just type
from the directory you created Gunbot in.
Did you misname this file? Uh-oh, lock your doors, the Linux police are on their way! You’d better change it with the “mv” command further in this page.
“sudo apt-get install unzip”
and the unzip feature will be installed. You only need this command to download “Unzip” and “Screen”
Did you notice I typed “sudo” before the apt command? Sudo is the equivalent of running a Windows application with administrator privileges so is needed to add and remove programs (Use caution!)
Unzip will decompress your .zip files.After you’ve downloaded the install file from GitHub, it comes in zip form. Once you have uploaded this file by creating an FTP connection to your server (something you’ll learn in the Gunbot School) you need to unzip it. If the file is called example.zip, you would type
“mv ~/example.zip ~/Gunbot/example.zip”
You use mv to rename files too. To rename example.zip to gunbot.zip, you would type
“mv ~/Gunbot/example.zip ~/Gunbot/gunbot.zip”
You’re safe from the Linux police now… you can breathe.
upon pressing enter, you’ll be presented with your config file in plain text. You can’t use you mouse to navigate through the file using nano, you’ll have to use the arrow/page up-down keys. When you’re finished editing, press
“crtl+x” and then “Y”
If you wanted to delete the gunbot.zip file you moved earlier, you’d type
But if your file was already unzipped or contained folders within folders, you’d add the recursive flag -r. If the unzipped folder you wished to delete was called Gunbot, you’d type
“rm -r gunbot”
“chmod +x gunthy-linux”
which marks the file as an executable program. Once this is accomplished, type
and let the magic begin
“sudo apt-get install screen”
command to download screen. To start, simply type
Press enter or space after the prompt, navigate to your Gunbot folder and start your bot! If you disconnect and want to return to the bot, type