Terminal commands Cheat-sheet

This is a quick cheat-sheet to discover frequently used commands during software development and computer maintenance. We will compare how to perform the same task using Linux/Mac shell and Windows based DOS commands.

What is Command Prompt ?

The core of your Operating System is driven by commands that are executed in the background. When you interact with GUI interfaces by clicking and dragging in the operating system level the application is executing commands on behalf of you.

Commonly used commands:
OperationLinux/Mac Windows (DOS)
Print current directorypwdcd
Create a Foldermkdir mkdir
Go to Folder/ Pathcd <FQ_PATH>cd <FQ_PATH>
List directory contentlsdir
Copy a filecp <SRC> <DEST>copy <SRC> <DEST>
Move a filemv <SRC> <DEST>mv <SRC> <DEST>
Delete a filerm <FILE>del <FILE>
SRC : Source Directory / File.

DEST : Destination Director / File.

NAME : Fully qualified Path.

Useful commands for Software Development
OperationLinux/Mac Windows (DOS)
Set ENV variableexport VARNAME=”value”set VARNAME=”value”
See PATH variableecho %path% echo $PATH
Find computer namehostnamehostname
Find user namewhoamiecho %username%
View network configurationifconfigipconfig
Get user namewhoamiecho %username%
Find OS Versioncat /proc/versionver
VARNAME : Variable Name

These are some of the commonly used terminal commands used in Windows and Mac, and Linux based terminals. Do you have any specif commands need more information on? Send us a quick message.

Cite this article as: Sam Muller, "Terminal commands Cheat-sheet," in Cyber Memos, December 5, 2019, https://cybermemos.com/operating-systems/terminal-commands-cheat-sheet/.

One Reply to “Terminal commands Cheat-sheet”

Comments are closed.