Command Line Interface Flashcards
Set Command
view all env variables in command shell
Where Command
find executables within the PATH variable
Echo Command
repeat things
Dir Command
look at folder contents
Type Command
output contents of a file
Findstr Command
Windows grep
Hostname
system hostname
date /t
output system date (/t keeps it from trying to set)
time /t
output system time (/t keeps it from trying to set)
>
redirect STDOUT. Create/overwrite
> >
redirect STDOUT. Create/append
|
Piping sends output of one command to input of another
& and ;
execute second command regardless of success/failure of first
&&
execute second command ONLY if the first is successful
||
execute second commmand ONLY if the first fails
( )
nest commands for complex arrangement
echo “Text Here”
prints “Text Here”
echo
shows if echo is on or off
echo .
print a blank line
( )
nest commands for complex arrangement
echo “Text Here”
prints “Text Here”
echo A=%A%
prints the new variable
echo .
print a blank line
@echo off
the @ suppresses display of the line in a batch file