Skip to Assistance content

Quick Answer

Essential Termux commands for moving around folders, checking files, installing packages, running Python, and avoiding beginner mistakes.

Use this guide only when your symptom or goal matches the indicators below. If a diagnostic command reveals a different problem, follow that evidence instead of forcing every remaining step.

Last reviewed: .

Use This Guide When

CommandCheatSheet

Before You Run Anything

  • Confirm that Termux came from a maintained source and that `pkg update` finishes without an error.
  • Run one command at a time and stop at the first unexpected message.
  • Keep the working project under the Termux home folder while installing or testing it.

Diagnostic Or Setup Commands

Read the block first, replace any example filename or folder, and run one line at a time from the location named by the guide.

pwd
ls -la
cd folder_name
mkdir new_folder
cp file.txt copy.txt
mv old.txt new.txt
python script.py

What The Commands Tell You

  • `pwd` — Prints the current working directory.
  • `ls -la` — Lists files, names, and permissions.

What Success Looks Like

  • The command finishes without an error and you can explain which folder and file it used.
  • Running the same minimal test a second time gives the same result.
  • No reinstall or unrelated package change was needed.

Safe Next Steps

  1. Verify the current folder with `pwd` and list exact filenames with `ls`.
  2. Install only the package that the error actually names.
  3. Run the smallest available test before starting the full project.
  4. Save the working commands in the project README or a notes file.

Common Mistakes

  • Copying Ubuntu or desktop Linux paths without checking whether they exist in Termux.
  • Running an active project directly from shared Android storage.
  • Pasting a long block again after one line has already failed.

Still Stuck?

Copy the support report, fill in the missing values, and include the complete terminal output. Remove passwords, tokens, private keys, exact home paths, and personal information.

Fixed This Error But Want A Repeatable Way To Diagnose The Next One?

The Complete Termux Troubleshooting Handbook gives you a structured diagnostic process for Termux, Python, Git, storage, packages, networking and recovery instead of relying on disconnected fixes.

Preview the Handbook