Use LEFT and RIGHT arrow keys to navigate between flashcards;
Use UP and DOWN arrow keys to flip the card;
H to show hint;
A reads text to speech;
33 Cards in this Set
- Front
- Back
dir |
List contents of a directory Similar to Linux's 'ls' command |
|
cd or chdir |
Change directory you are currently in |
|
md or mkdir |
Make Directory creates directories |
|
What is the command to copy files? |
copy |
|
What is the command to move a file? |
move |
|
del or erase |
Deletes files or directories. This command will prompt a user to confirm deletion. *Note* Files deleted with this command get deleted, they do not go into a recycle bin. |
|
rd or rmdir |
Remove directory deletes a directory. Will only work on empty directories unless used with the '/S' option. |
|
find |
Will search a specified file for whatever is queried. ie. find "hello" greeting.txt will search the file 'greeting.txt' for the string 'hello' |
|
exit |
Close cmd |
|
type |
Show contents of a file Similar to 'cat' in Linux |
|
| more |
Pipe more shows the contents of whatever the command results are but in a per screen format |
|
> |
Change standard output to a new file. Will overwrite an existing file if the same filename is used. |
|
>> |
Change standard output to a file but appends to that file instead of overwriting it. Will create a new file if one doesn't already exist. |
|
Envar |
Environment Variable ie. echo %CD% is like Linux's pwd command. It will show the current directory. |
|
Common envars in Windows |
%CD% = Current directory %DATE% = Show current date %OS% = What OS u r running. ie Windows NT %ProgramFiles% = C:\Program Files %ProgramFiles(x86)% = C:\Program Files (x86) %TIME% = Show the current time %USERPROFILE% = C:\Users\(username) %SYSTEMDRIVE% = C:\ %SYSTEMROOT% = C:\Windows |
|
wmic |
Windows Management Instrumentation Command Syntax: wmic [GLOBAL SWITCHES] [ALIAS] [VERBS] [PROPERTIES] ie. wmic os get /value will return all the properties of wmic os for yoy to choose from. ie2. wmic /APPEND:report.txt os get caption ie3. wmic service where (startmode="auto") get caption will find services whose startup property is "auto". |
|
net user, net localgroup, net accounts |
Allows you to manage and interact with local user-related and group-related settings |
|
Set-Location |
Change to a specified directory akin to Linux's cd |
|
Get-ChildItem |
Returns current directory contents akin to Linux's ls and cmd's dir |
|
New-Item |
Makes a new directory akin to Linux's mkdir |
|
Remove-Item |
Delete a specified file or directory akin to Linux's rm and rmdir |
|
Get-Location |
Shows your current working directory, akin to Linux's pwd |
|
Get-Content |
Shows the contents of a file, akin to Linux's cat or cmd's type |
|
Copy-Item |
Copy a file from one given location to another, or creates duplicate copy of a specified file as long as you change the name of the target file, akin to Linux's cp or cmd's copy |
|
Move-Item |
Move a file from one given location to another, or changes the name of a specified file, akin to Linux's mv or cmd's move |
|
Write-Output |
Prints output, akin to Linux's echo |
|
Get-Alias |
Show aliases for the current session, incl. global (static) aliases, akin to Linux's alias |
|
Get-Help |
Shows info about a given PowerShell command, akin to Linux's man command. Syntax: Get-Help {cmdlet} will show documentation of a given command. Get-Help {cmdlet} -examples will show examples of a given command. |
|
Get-Process |
Shows current processes running on the local machine, akin to ps |
|
Stop-Process |
Stops one or more defined processes, akin to Linux's kill |
|
Get-Service |
Gets a list of services, akin to Linux's service --status-all |
|
How to find commands in PowerShell? |
By noun: Get-Command -Noun {noun} or Get-Command -Type Cmdlet | Sort-Object -Property Noun | Format-Table -GroupBy Noun By verb: Get-Command -Verb {verb} or Get-Command -Type Cmdlet | Sort-Object -Property Verb | Format-Table -GroupBy Verb |
|
wget |
Command to run url from command line |