---
type: link
tags: [link]
created: 2025-11-06T02:51:46.19+00:00
updated: 2026-04-06T11:03:48.183777+00:00
---# python ~ Run a system command from Python.

**URL:** [https://docs.python.org/3/library/subprocess.html](https://docs.python.org/3/library/subprocess.html)

python | Run a system command from Python. python -c "import subprocess; subprocess.run(['ls', '-l'])"


---
**Keywords:** link
