the command shell
play

The Command Shell Fundamentals of Computer Science Outline - PowerPoint PPT Presentation

The Command Shell Fundamentals of Computer Science Outline Graphical User Interface Command Shell Starting the Command Shell Commands Compiling and Running a Java Program File Redirection and Piping Interfacing with your


  1. The Command Shell Fundamentals of Computer Science

  2. Outline  Graphical User Interface  Command Shell  Starting the Command Shell  Commands  Compiling and Running a Java Program  File Redirection and Piping

  3. Interfacing with your Computer  GUI (Graphical User Interfaces)  Today: predominant interaction method  Windows, buttons, mouse  Advantages  Easier for novices  No commands to remember  Rich input and output capabilities 3

  4. Interfacing with your Computer  Command Line Interface (CLI)  Originally the only option  Input by typing commands  Advantages:  Can be faster for experts than a GUI  Easier to automate tasks  Easier to hook programs together 4

  5. Starting a Command Shell Windows 7 Start → type " cmd" All Programs → Accessories → Command Prompt Mac Spotlight → type "terminal" Go → Applications → Utilities → Terminal 5

  6. Getting around the Command Line Action Windows Mac OS / Unix Move into a folder cd myfolder cd myfolder Move into parent folder cd .. cd .. Move into a folder, absolute cd \Users\keith cd /Users/keith folder List files in current folder dir ls Compile program in current javac Prog.java javac Prog.java folder Run a compiled program java Prog java Prog See what is in a text file type Prog.java more Prog.java Auto-complete filenames <tab key> <tab key> Previous command <up arrow> <up arrow> 6

  7. Getting Around in the Command Shell Changing to a different drive and to different folders Looking at the contents of a folder 7

  8. File Redirection and Piping Redirecting program output to a file using > followed by the output filename. Reading input from file using < followed by the filename. Directly piping output from one program to another using pipe | 8

  9. Summary  Graphical User Interface  Command Shell  Starting the Command Shell  Commands  Compiling and Running a Java Program  File Redirection and Piping

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend