W8 - USER INTERFACES, POWERSHELL, AND TIME MANAGEMENT Flashcards
W8-1: What is CLI – Command Line Interface?
_ The command line is the ORIGINAL computer user interface.
_ It is a simple prompt for the ENTRY of a command by the user and a RESPONSE from the operating system.
_ It is quite powerful but not particularly “user friendly”. => the command line restriction on many corporate users’ PCs
W8-2: What is TUI (Text-based User Interface, or Textual UI, or Terminal UI)?
_ displayed Extended ASCII graphical characters on an addressable 25 line x 80 character text screen.
_ Most TUIs accepted mouse and keyboard shortcut inputs.
_ The interface prompts the user as to what to do, the software remembers how to do it.
W8-3: GUI versus CLI
(a) GUI: _ Slower but flexible. _ Casual users, “User-friendly” _ Minimal training. Functions require multiple steps. _ Form and Function.
(b) CLI _ Faster but inflexible. _ Administrators experts and only. _ Act on many items & objects with a single command. _ Function, little Form.
W8-4: Benefits of using GUI
_ The GUI created end-user computing.
_ The intuitive GUI reduced the ‘barrier to entry’ (command line and text interfaces) allowing broad business deployment of PCs especially for general “Office” applications.
W8-5: PowerShell is the new CLI
_ PS command-line shell and scripting language for administering
+ multiple operating systems (Windows, macOS, *nix)
+ processes related to running applications on those OS
+ e.g. management of Networks, Devices, Users, App runtime environment
_ Object-Oriented structure, built-in script editor, thousands of cmdlets, pronounced ‘command-lets’, to fully manage a system.
_ PowerShell is more secure than DOS CMD. All old batch CMD commands work in PowerShell (backward compatibility).
W8-6: one-to-one RELATIONSHIP between PowerShell and File Explorer
_ There is a one-to-one relationship btw the command line and File Explorer, especially in Windows 10.
_ can MOVE from one to the other from any FOLDER in Windows and COPY any paths.
_ Learning to take advantage of this feature will greatly improve your SPEED in programming and using Windows.
W8-7: Some shortcuts used in PowerShell
_ Arrow Up or Down to recall commands in the stack
_ Home, End, Ctrl+Arrow Left/Right to edit within the cmd
_ get-history lists all commands in the stack
_ get-help
_ TAB key auto completes, similar to Visual Studio’s Intellisense
+ Cmdlet names
+ cycles through file names in current folder. Wildcards optional
+ e.g. *.txt [TAB] will retrieve text file names