Before TaskFlow, every task was an operator class with a task_id, and most Dags in production still mix both styles. The core ones live in the standard provider:
BashOperator(task_id=..., bash_command="...") runs a shell command. A non-zero exit code fails the task; exit code 99 skips it. The last line printed becomes its XCom.
PythonOperator(task_id=..., python_callable=fn, op_kwargs={...}) calls a function. Pass the function itself, without brackets: fn() would call it while the file is parsed.
EmptyOperator(task_id=...) does nothing. It marks a start, an end or a join point.
Every operator's result is available as .output, which you can pass to a TaskFlow task like the result of an @task call.
In this workspace BashOperator runs a small shell (echo, exit, sleep, cat, test -f and a few practice programs), not a full Linux shell.