---
type: link
tags: [public]
created: 2025-10-27T09:17:57.483Z
---# 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:** public
