diff --git a/guide/bonus/raspberry-pi/aliases.md b/guide/bonus/raspberry-pi/aliases.md index 5c9006684..7e5c113bf 100644 --- a/guide/bonus/raspberry-pi/aliases.md +++ b/guide/bonus/raspberry-pi/aliases.md @@ -40,11 +40,11 @@ The following list of aliases was derived from contributions by [RobClark56](htt ## Set up aliases -* With user "admin", access to `home` folder and download the aliases list provided by Raspibolt community at Github. Put "yes" if the prompt ask you about overwrite. +* With user "admin", access to `home` folder and download the aliases list provided by Raspibolt community at Github. ⚠️ This command will automatically overwrite the previous file you downloaded. ```sh $ cd /home/admin - $ wget https://raw.githubusercontent.com/raspibolt/raspibolt/master/resources/.bash_aliases + $ wget https://raw.githubusercontent.com/raspibolt/raspibolt/master/resources/.bash_aliases -O .bash_aliases ``` * Inspect the list of aliases to make sure it does not do bad things and modify it with your personal aliases if you want. Exit with Ctrl-X @@ -63,6 +63,19 @@ The following list of aliases was derived from contributions by [RobClark56](htt ## Aliases in action +* Simply type "alias" to display all available aliases + + ```sh + [...] + alias enableallmain='sudo systemctl enable bitcoind electrs btcrpcexplorer lnd rtl scb-backup' + alias enablebitcoind='sudo systemctl enable bitcoind' + alias enablebtcrpcexplorer='sudo systemctl enable btcrpcexplorer' + alias enablecircuitbreaker='sudo systemctl enable circuitbreaker' + alias enablecln='sudo systemctl enable cln' + alias enablefulcrum='sudo systemctl enable fulcrum' + [...] + ``` + * Test some of the aliases to see if it has been installed properly ```sh @@ -98,7 +111,7 @@ The following list of aliases was derived from contributions by [RobClark56](htt $ rm ~/.bash_aliases ``` - * Execute a source command to register changes to the .bashrc file: +* Execute a source command to register changes to the .bashrc file: ```sh $ source /home/admin/.bashrc diff --git a/resources/.bash_aliases b/resources/.bash_aliases index eac9f19ec..ccbab1f8c 100644 --- a/resources/.bash_aliases +++ b/resources/.bash_aliases @@ -18,7 +18,7 @@ alias showmainversion='echo The installed versions of the main services are as f echo BTC RPC Explorer: `sudo head -n 3 /home/btcrpcexplorer/btc-rpc-explorer/package.json | grep version` ; \ echo Electrs: `electrs --version` ; \ echo RTL: `sudo head -n 3 /home/rtl/RTL/package.json | grep version` ; \ - tor --version ; \ + tor --version | grep version | grep -v compiled ; \ echo NPM: v`npm --version` ; \ echo NodeJS: `node -v`; \ htop --version ; \