Arduino control ports from linino

Hi, I need to know if it is possible to control the ports Arduino from linino ( Yun ) directly without using the IDE , the idea is to generate a Python script to perform a task in the ports of Arduino . Thank you.

linino ( Yun ) directly without using the IDE

How do you control them with the IDE?

You can only control the Arduino's port pins from a program running on the Arduino.