So to answer ur questions, yes the code execution is done via the command terminal and u don’t need to do anything special or navigate to some unknown place to open a terminal.
All u simplly need to do is to type the command on a cell like how u’ll type a python code in a cell but when u r typing a terminal command u need to add ‘!’ before the command. This will make the terminal differentiate terminal command from python code.
U grab?