Command Line Interface Guide

Common Commands

This is a table of useful some commands for use at the command line found on most operating systems. These commands are for general use, and allow for the navigation of the system, and operation of the system. Note that commands used to delete data must be used responsibly.

CommandFunction
lsList contents of a directory. Uses current directory by default.
mvMove to a given directory
cpCopy a given file to a given destination, can effectively rename files
rmdirDeletes an empty directory
rmDeletes a file
pwdLists current path
whoamiDisplays user's name
clearClears terminal

Command Hotkeys and Shortcuts

At the command line certain keys and key combinations can be used to perform actions that make using a computer at the command line more convenient and more efficient. Many are ctrl plus another key, or the arrow keys. Some useful hotkeys are listed in the table below.

HotkeyFunction
UpCycle through history
ctrl+cKill current command or line
ctrl+lClear terminal
ctril+wDelete current word
ctrl+/ctrl-Increase or decrease font size