Develop on esieabot using a terminal

This section is dedicated to learning how to develop on esieabot using directly a terminal.

Prerequisites

To develop on esieabot using a terminal, you need to open a remote terminal on your esieabot. To do this, follow the dedicated documentation.

Note

You should choose a SSH connection and not a wired serial connection as it is more practical.

Manage your files

When you open your remote terminal, you are in the home directory of the user “pi”. You can list the files and directories in the current directory with the command ls. You can navigate to a directory with the command cd followed by the name of the directory. If you want to access your esieabot’s system files with the command cd /esieabot, you will need to type sudo before every command to have the necessary permissions.

Open a file

To open a file, you can use the nano text editor. To open a file, use the command nano followed by the name of the file. Here are some useful shortcuts in the nano editor:

  • Ctrl + O: Save the file, then press Enter to confirm the file name

  • Ctrl + X: Close the file

  • Ctrl + W: Search for a word in the file

  • Ctrl + C: Display the current position in the file

  • Ctrl + K: Cut a line

  • Ctrl + U: Paste a line