Send the link below via email or IMCopy
Present to your audienceStart remote presentation
- Invited audience members will follow you as you navigate and present
- People invited to a presentation do not need a Prezi account
- This link expires 10 minutes after you close the presentation
- A maximum of 30 users can follow your presentation
- Learn more about this feature in our knowledge base article
Introduction to Command Line
Transcript of Introduction to Command Line
Command Interpreter (command line)
Graphical User Interface Varying levels of power and flexibility.
Kernel - Most powerful. No direct input.
Command Line - Very powerful and very flexible.
GUI - Least powerful. Not very flexible. Great for data presentation. COMMAND [options] [data] [data]
COMMAND [data] [options]
COMMAND [options] [data] [options]
Commands range from simple to complex and you will have to consult help to know the proper format for a given command. Options are often referred to as switches as they typically represent features being switched on/off. Syntax How do you get help? Halp! Built In Help - Most commands if entered with no switches or options will print basic help automatically. If a command prints an error then an option of /? or /help will print help. File System Commands dir - dir [path] [filename] [displayformat] [options]
cd - cd /D [path] (/D changes drive as well as path)
del - del [options] [filename]
deltree - deltree [options] [path] (deprecated. Use del)
copy - copy [options] [path A] [path B]
move - move [options] [drive] [path A] [path B] Google it! - If you're stuck, Google it! There's a wealth of information on the internet. SysInternals was an independent developer that made system administration tools for the Microsoft operating system. Microsoft liked the tools so much they wanted to integrate them. SysInternals is now an internal team at Microsoft and many of it's tools are integrated in to the administration tool kit and even newer versions of the OS. SysInternals PsExec - psexec [computer] <options> command [arguments]
PsFile - psfile [\\Computer] [-u User] [-p Passwd]
PsInfo - psinfo [\\computer[,computer[,..]] <options> [filter]
PsKill - pskill [\\computer [-u user] [-p passwd]] <process name | process id>
PsList - pslist <options> [\\computer [-u user] [-p passwd]] [name | pid]
PsLoggedOn - psloggedon <options> [\\computer | username]
PsLogList - psloglist [\\computer[,computer[,...] | @file
PsPasswd - pspasswd [[\\computer[,computer[,..] | @file
PsService - psservice [\\computer [-u user] [-p passwd]] <command> <options>
PsShutdown - psshutdown [[\\computer[,computer[,..] | @file [-u user [-p passwd]]] SysInternals Commands Third Party Tools Third party tools.
Can be put anywhere.
Store them some place safe.
Add to the path. Data Outcome of command line often results in data. This comes in the following formats:
xls - NOT plain text, unusable by command line.
csv - Plain text seperated by commas.
txt - Plain text with virtually no formatting.
evt - Windows event log files.
log - Log files generated by both third party and Windows apps. Typically plain text formatted. Scripting Error Reporting Record the error.
Explain what happened. Batch Files Plain Text
List of commands
Basic logic (variables, loops) VBScript Plain Text
Not Directly Executable (HTA, Wscript, Cscript)
Advanced logic Power Shell Command Line
Plugin System - Cmdlets
More flexability in data management System Specific Commands piping - [command] | [command]
ping - ping [options] [address]
ipconfig - ipconfig [options]
netstat - netstat [options]
nslookup - nslookup [option] [hostname] [server]
net - net [command] [options]
shutdown - shutdown [options]
sc - sc [server] [options] [service] [options]