Environment Variable |
Name-Value Pair to Store Data |
For Instance User, System etc. |
How To |
Create Environment Variable | CMD@ setx.exe /M {Name} {Value} |
setx.exe : Program, Sets Environment Variable
/M : Switch, Specifies System Wide
{Name} : Parameter, Environment Variable Name
{Value} : Parameter, Environment Variable Value |
Alternatively, RUN@ sysdm.cpl → Advanced → Environment Variables... → New... → Name and Value |
Directory |
Organise and Separate Files / Directories |
Also Known As Folder |
How To |
Create Directory | CMD@ MKDIR {Directory} |
MKDIR : Command, To Create Directory
{Directory} : Parameter, Directory Name |
Alternatively, RUN@ C: → New Folder (Ctrl+Shift+N) → Folder Name |
Also Known As System Name |
How To |
List Host Name | CMD@ systeminfo.exe /S . |
systeminfo.exe : Program, Displays System Information
/S : Switch, Specifies System Name
. : Parameter, Local Machine |
Alternatively, RUN@ msinfo32.exe → System Summary → System Name |
User Name |
User Account Name on Machine |
Identified by Security Identifier |
How To |
List User Name | CMD@ whoami.exe /USER |
whoami.exe : Program, Displays Logged On User Information
/USER : Switch, Specifies System Identifier |
Alternatively, RUN@ netplwiz.exe → Properties → User Name |
File |
Store Codes, Instructions, Data, Settings etc. |
Identified by File Name |
How To |
Create File | CMD@ TYPE NUL > {File} |
TYPE : Command, To Display File Content
NUL : Parameter, Null Device
> : Operator, Redirects Output to File
{File} : Parameter, File Name and File Extension |
Alternatively, RUN@ notepad.exe → Save (Ctrl+S) → File Name & Extension and File Type (All files *.*) |
File Name |
Name and Extension of File |
Separated by Period . Character |
How To |
List File Name | CMD@ DIR /B |
DIR : Command, To Display File Name
/B : Option, Specifies Bare Format |
Alternatively, RUN@ control.exe folders → View → Hide extensions for known file types |
File Type |
Class and Category of File |
Identified by File Extension |
How To |
List File Type | CMD@ ASSOC {FileExtension} |
ASSOC : Command, To Display File Association
{FileExtension} : Parameter, File Extension |
Alternatively, RUN@ regedit.exe → HKEY_CLASSES_ROOT → File Extension |
File Association |
File Type Association with Program |
Identified by File Type |
How To |
List File Association | CMD@ FTYPE {FileType} |
FTYPE : Command, To Display File Type
{FileType} : Parameter, File Type |
Alternatively, RUN@ control.exe /name Microsoft.DefaultPrograms /page pageFileAssoc → Choose defaults by file type |
File Attribute |
Metadata Information of File |
For Instance Read Only, Hidden etc. |
How To |
List File Attribute | CMD@ attrib.exe {File} |
attrib.exe : Program, Attribute Utility
{File} : Parameter, File Name |
Alternatively, RUN@ C: → Go to File (Right Click) → Properties → General → Attributes |
File Permission |
Access Control and Security Setting of File |
For Instance Execute, Read, Write etc. |
How To |
List File Permission | CMD@ icacls.exe {File} |
icacls.exe : Program, Control ACLs Program
{File} : Parameter, File Name |
Alternatively, RUN@ C: → Go to File (Right Click) → Properties → Security |
File Path |
Location of File in File System |
For Instance DOS, UNC, DOS Device etc. |
Example |
DOS | Absolute C:\Windows\System32\ntoskrnl.exe | Relative \Windows\System32\ntoskrnl.exe |
|
UNC | Root \\{Host}\C$\Windows\System32\ntoskrnl.exe | Share \\{Host}\System32\ntoskrnl.exe |
|
DOS Device | Question Mark ? \\?\C:\Windows\System32\ntoskrnl.exe | Period . \\.\C:\Windows\System32\ntoskrnl.exe |
|
C: : Home Drive or Root Drive
\\ : Double Backslash Character, Server Separator
\ : Backslash Character, Directory Separator
{Host} : Host Name or IP Address
C$ : Shared Root Partition or Volume
\\.\ or \\?\ : Device Path Specifier |
How To |
List File Path | CMD@ DIR /B /S |
DIR : Command, To Display File or Directory
/B : Option, Specifies Bare Format
/S : Option, Specifies File Path |
Alternatively, RUN@ control.exe folders → View → Display the full path in the title bar |
Symbolic Link |
Shortcut and Link to File |
For Instance Soft, Hard etc. |
How To |
Create Symbolic Link | CMD@ MKLINK {Link} {File} |
MKLINK : Command, To Create Symbolic Link
{Link} : Parameter, Link Name
{File} : Parameter, File Name |
Alternatively, RUN@ C: → Go to File (Right Click) → Create Shortcut |
Internet Protocol Address |
Unique Address of Machine |
For Instance Private, Public etc. |
How To |
List IP Address | CMD@ ipconfig.exe /all |
ipconfig.exe : Program, IP Configuration Utility
/all : Switch, Specifies Full Information |
Alternatively, RUN@ ncpa.cpl → Network Adapter (Right Click) → Status → Details... |
For Instance Dynamic, Static etc. |
How To |
List Port | CMD@ netstat.exe -abon |
netstat.exe : Program, TCP/IP Netstat Command
-abon : Switch, Specifies All Connection + Listening Port + Executable Involved + Owning Process ID |
Alternatively, RUN@ perfmon.exe /res → Network → TCP Connections and Listening Ports |
Socket |
Combination of IP Address and Port Number |
For Instance TCP, UDP, IPC etc. |
How To |
List Socket | CMD@ netstat.exe -abon |
netstat.exe : Program, TCP/IP Netstat Command
-abon : Switch, Specifies All Connection + Listening Port + Executable Involved + Owning Process ID |
Alternatively, RUN@ perfmon.exe /res → Network → TCP Connections and Listening Ports |