Welcome to Jetson Orin NANO Developer Kit repository
01.Basic knowledge
Linux Basic Knowledge
Linux Basic Knowledge1. Terminal1.1. Open the Terminal1.2. Basic Commands1.3. Shortcut Keys2. Text Editor2.1. Gedit (Easy)2.2. Nano (Medium)2.3. Vi/Vim (Difficult)
1. Terminal
The terminal (Terminal) is a command line interface used to interact with the operating system.
1.1. Open the Terminal
In Ubuntu, you can open it through the shortcut keys Ctrl + Alt + T or by finding the terminal (Terminal) in the application menu:


1.2. Basic Commands
View the current directory
Display the full path of the current working directory:
pwd
List files/directories
List the files and subdirectories in the current directory:
xxxxxxxxxxls
Create a new directory
Create the File_demo directory:
xxxxxxxxxxmkdir File_demo
Change directory
Enter the File_demo directory:
xxxxxxxxxxcd File_demo
Return to the parent directory
xxxxxxxxxxcd ..
Create a new file
Create the Version.txt file:
xxxxxxxxxxtouch Version.txt
Modify a file
Add System Information to the Version.txt file:
xxxxxxxxxxecho "System Information" >> Version.txt
View a file
View the content of the Version.txt file:
xxxxxxxxxxcat Version.txt
Delete a directory
Delete the File_demo directory:
xxxxxxxxxxrm -rf File_demo

1.3. Shortcut Keys
Ctrl + C
Terminate the currently running command
Ctrl + Z
Suspend the current process
Tab
Automatically complete the file name or command
2. Text Editor
2.1. Gedit (Easy)
The default text editor in the GNOME desktop environment, with a graphical user interface (GUI).
Open a file
xxxxxxxxxxgedit Version.txt

2.2. Nano (Medium)
A simple and easy-to-use command line text editor, suitable for beginners.
Install
xxxxxxxxxxsudo apt updatesudo apt install nano -y
Open a file
xxxxxxxxxxnano Version.txt
Ctrl + X: Exit (if there are unsaved changes, you will be prompted whether to save)
Ctrl + U: Paste the clipboard content
Ctrl + W: Search text

2.3. Vi/Vim (Difficult)
Vim is an enhanced version editor of Vi, applicable to almost all Unix and Linux systems.
Open a file
xxxxxxxxxxvi Version.txt
Modes
Command mode: default state
Insert mode: press i to enter, press ESC to return to command mode
Last line mode: enter : in command mode to enter, press ESC to return to command mode
Save/Exit
Last line mode
:w: Save the file
:q: Exit
:wq: Save and exit
:q!: Force exit without saving
