The Terminal
Also known as: terminal command line shell console powershell cmd bash cd ls dir prompt
● Beginner5 min
The terminal is a window where you type commands. You need four of them to run Kavach programs.
On Windows, open Terminal or PowerShell from the Start menu. On macOS, open Terminal; on Linux, your terminal app. A line with a blinking cursor appears: type a command there and press Enter.
The commands you need
cd projects # go into the folder named projects
cd .. # go back up one folder
ls # list the files here (dir works too on Windows)
kavach run hello.kav # check hello.kav, then run it
cdmoves you into a folder: run your program from the folder its file is in.- Press the Up arrow to bring back the last command, instead of typing it again.
- Press Ctrl+C to stop a program that keeps running.
An editor such as VS Code has a terminal built in (View › Terminal), already in your project's folder.