Phantomx Support Center

Contact Us

Recommended tips on Linux

These tips will allow you to create "shortcuts" instead of to right the full command in your console

================ Section 05 // Creating alias ================

Create the alias linking the command between "command" to pnx shortcut

alias pnx="/wallets/phantomx/phantomxd -datadir=/wallets/phantomx/wallet"

Now, type only:


pnx getinfo

Instead of write

/wallets/phantomx/phantomxd -datadir=/wallets/phantomx/wallet getinfo

================ Section 06 // Saving the alias in your profile ================

Let's save the alias on your profile


cd ~
sudo nano .bash_profile

If .bash_profile is NOT empty, ignore this step! If IS EMPTY, add this on the begin of the file .bash_profile:


# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc

# User specific environment and startup programs
export PATH

That's fine, let's add the ALIAS on the end of file:

alias pnx="/wallets/phantomx/phantomxd -datadir=/wallets/phantomx/wallet"