Terminal Command

Share

What is a Terminal Command?

A terminal command is a text command that you can type in a terminal to execute a program. Terminal commands are typically names of programs that are meant to be executed together with the parameters that control their behavior.

This term is synonymous with "command-line command."

The command nvidia-smi being run in the terminal. Some information displayed includes: Driver Version: 550.90.07. CUDA Version: 12.4. GPU name: NVIDIA GeForce GTX 1050 Ti. Fan: 0%. Temperature: 53C. Power Usage/Capcity: N/A / 72W. Memory-Usage: 183MiB / 4096MiB. GPU Utilization: 1%. A list of processes, their PIDs, names, and GPU memory (VRAM) usage: /usr/lib/xorg/Xorg 92MiB, cinnamon 86MiB.
The output of the terminal command nvidia-smi (Nvidia's System Manager Interface command line utility) in a terminal.

Examples of Terminal Commands

cd is a terminal command to "change (the current) directory," and its first parameter is the filepath of the new directory. The terminal command cd Downloads would change the current directory to the "Downloads" folder.

cp is a terminal command to "copy" a file. Its two parameters are the filepath of which file to copy and the filepath of where to place the copy. The terminal command cp diary.txt diary-backup.txt would create a backup copy of diary.txt in the current directory.

On Linux and BSD, ls is the terminal command to list the files of the current directory. On Windows, dir is the command for the exact same purpose.

Written by Noel Santos.

About the Author

I'm a self-taught Brazilian programmer graduated in IT from a FATEC. In a world of increasingly complex and essential computers, I decided to use my technical expertise in hardware, desktop applications, and web technologies to create an informative resource to make PC's easier to understand.

View Comments