-
Description: the Python interpreter!
-
Usage:
python3 [program]
- If
[program]
is not provided, a Python interpreter will show up. Otherwise, your file will be executed.
- If
-
Example:
bean@bean-ThinkPad-X1-Yoga-Gen-6:~/linux_commands_intro$ python3 Python 3.10.12 (main, Jun 11 2023, 05:26:28) [GCC 11.4.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> print("Hello World from Python") Hello World from Python
bean@bean-ThinkPad-X1-Yoga-Gen-6:~/linux_commands_intro$ cat hello_world.py print("Hello World from a Python program") bean@bean-ThinkPad-X1-Yoga-Gen-6:~/linux_commands_intro$ python3 hello_world.py Hello World from a Python program
- Description: a text-based text editor
- Usage:
vim [file]
- For example,
vim test.py
would edit the filetest.py
- Vim has a bunch of really cool features -- this is the minimum you need to know to use it:
i
= insert mode, lets you type and move around the file- escape key = exit insert mode
- escape key +
:wq
= save and quit - escape key +
:qa!
= quit without saving
- For example,
-
Description: Visual Studio Code (VS Code), a graphical text editor
-
Usage:
code [file or directory]
-
Example:
bean@bean-ThinkPad-X1-Yoga-Gen-6:~$ code 2023RobotCode/ bean@bean-ThinkPad-X1-Yoga-Gen-6:~$
For editing robot code, you'll want to run VS Code inside Docker so you get autocompletion.