To view the logs of the StarkNet node, execute the command: journalctl -u starknetd -f.
To restart the node, use the command: systemctl restart starknetd.
To remove the StarkNet node, follow these steps:
- Stop the node: systemctl stop starknetd.
- Disable the node: systemctl disable starknetd.
- Delete the pathfinder folder in your home directory: rm -rf ~/pathfinder/.
- Delete the starknetd.service file: rm -rf /etc/systemd/system/starknetd.service.
- Delete the pathfinder executable file: rm -rf /usr/local/bin/pathfinder.
- These commands will allow you to view logs, restart, or remove the StarkNet node according to your needs.