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:
|Print current directory||pwd||cd|
|Create a Folder||mkdir||mkdir|
|Go to Folder/ Path||cd <FQ_PATH>||cd <FQ_PATH>|
|List directory content||ls||dir|
|Copy a file||cp <SRC> <DEST>||copy <SRC> <DEST>|
|Move a file||mv <SRC> <DEST>||mv <SRC> <DEST>|
|Delete a file||rm <FILE>||del <FILE>|
SRC : Source Directory / File. DEST : Destination Director / File. NAME : Fully qualified Path.
Useful commands for Software Development
|Set ENV variable||export VARNAME=”value”||set VARNAME=”value”|
|See PATH variable||echo %path%||echo $PATH|
|Find computer name||hostname||hostname|
|Find user name||whoami||echo %username%|
|View network configuration||ifconfig||ipconfig|
|Get user name||whoami||echo %username%|
|Find OS Version||cat /proc/version||ver|
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.