Command Line
The text prompt inside a terminal where you type commands — ls, cd, git, npm — to control your computer.
January 15, 2026
What is the Command Line?
The command line is the text prompt you see inside a terminal window. It typically shows where you are on your computer (the current directory) followed by a cursor where you type. On Mac or Linux it might look like ~/projects$ and on Windows C:\Users\You>.
The terms "command line" and "terminal" are often used interchangeably in conversation, though technically the terminal is the window and the command line is the prompt inside it.
Common Commands You'll Use
A handful of commands cover most everyday tasks:
ls(Mac/Linux) ordir(Windows) — list files in the current foldercd foldername— move into a foldercd ..— go up one levelmkdir foldername— create a new folderpwd— print the current directory path (Mac/Linux)clear— clear the screen
Once you're working with AI development, you'll also use git, npm, and python commands constantly.
Why It Matters for AI Development
Almost every AI tool and SDK provides a command-line interface. Installing the OpenAI SDK is pip install openai. Running your script is python app.py. Starting a Next.js server is npm run dev. None of these have point-and-click alternatives — the command line is the front door.
Getting comfortable with a dozen basic commands removes a huge barrier to building AI projects.
Related articles
See also