@Jetson YOLO: Basic Commands
Before touching CUDA, TensorRT, or conda, it helps to be comfortable with a small set of Linux command-line operations. Jetson setup becomes much less frustrating once basic navigation and package management feel natural.
Getting Started
Open the terminal with Ctrl + Alt + T, or search for Terminal from the application menu.
Navigation
Show the Current Directory
pwd
Prints the full path of the directory you are currently in.
List Files
ls
Lists files and folders in the current directory.
Change Directory
cd /path/to/directory
Example:
cd Documents
File and Directory Operations
Create a Directory
mkdir new_directory
Create an Empty File
touch new_file.txt
Copy Files
cp source_file destination
Example:
cp file.txt /home/user/Documents
Move or Rename Files
mv old_name new_name
Example:
mv file.txt new_directory/
Remove Files
rm file.txt
To remove a directory and its contents:
rm -r directory_name
Viewing and Editing Files
Print a File
cat file.txt
Edit with Nano
nano file.txt
Read a File Page by Page
less file.txt
System Information
Disk Usage
df -h
Memory Usage
free -h
Running Processes
top
System Information
uname -a
Installing Software
Update Package Index
sudo apt update
Upgrade Installed Packages
sudo apt upgrade
Install a Package
sudo apt install package_name
Example:
sudo apt install curl
Manual Pages
Use man when you want the built-in documentation for a command.
man ls
Helpful Shortcuts
Ctrl + Cstops the current commandCtrl + Zsuspends the current commandCtrl + Rsearches command historyTabauto-completes file and directory names
Quick Practice
mkdir my_first_directory
cd my_first_directory
touch hello.txt
echo "Hello, Ubuntu!" > hello.txt
cat hello.txt
If these operations feel comfortable, the rest of the Jetson YOLO setup will be much easier to follow.