Command Console Tutorial BCIS 3680 Enterprise Programming.

Slides:



Advertisements
Similar presentations
XP Tutorial 4 New Perspectives on Microsoft Windows XP 1 Microsoft Windows XP Personalizing Your Windows Environment Tutorial 4.
Advertisements

Installing SAS 9.3 Raymond R. Balise Health Research and Policy.
CGS 1060 Introduction to MicroComputer Usage Chapter 1 Windows 7
MCT260-Operating Systems I Operating Systems I Navigating the File System.
Getting Started with Linux: Novell’s Guide to CompTIA’s Linux+ (Course 3060) Section 2 Use the Linux Desktop.
COMPREHENSIVE Windows Tutorial 2 Organizing Your Files.
Ch 9 Managing Active Directory User Accounts. Objectives Create Organizational Unit Creating User Accounts in Active Directory Disabling, Enabling, and.
Editing Java programs with the BlueJ IDE. Working environments to develop (= write) programs There are 2 ways to develop (write) computer programs: 1.Using.
Access Tutorial 10 Automating Tasks with Macros
®® Microsoft Windows 7 Windows Tutorial 1 Exploring the Basics of Microsoft Windows 7.
Or CMD/BATCH.  Title this comand makes the cmd prompt’s title whatever you would like it to be.
One to One instructions Installing and configuring samba on Ubuntu Linux to enable Linux to share files and documents with Windows XP.
Computer Literacy BASICS: A Comprehensive Guide to IC 3, 5 th Edition Lesson 3 Windows File Management 1 Morrison / Wells / Ruffolo.
I Can… Define basic file management and related terms Identify levels of a file system Identify and explain ways to view files in Windows OS Explain the.
Microsoft Office 2013 ®® Managing Your Files. XP Objectives Explore the differences between Windows 7 and Windows 8 Plan the organization of files and.
Ch 51 Internal Commands COPY and TYPE. Ch 52 Overview Will review file-naming rules.
Chapter Five Maintaining a Computer Part III: File and Folder Management.
Chapter 6: Managing Your Data The Windows XP File System File system task on DOS or UNIX Vs. Windows XP –cd or chdir would change your current directory.
Microsoft Office 2003 Illustrated Introductory with Programs, Files, and Folders Working.
1 Mobile Computing Set Up Copyright 2015 by Janson Industries.
®® Microsoft Windows 7 for Power Users Tutorial 13 Using the Command-Line Environment.
CIS 205—Web Design & Development Dreamweaver Chapter 1.
SUSE Linux Enterprise Desktop Administration Chapter 2 Use the Linux Desktop.
Interacting with a UNIX computer: Navigating through the directory tree.
1 The EDIT Program The Edit program is a full screen text editor that allows you to: Create text files Create text files Edit an existing text files Edit.
Windows Tutorial Common Objects ACOS: 1, 4. Using the Taskbar 1. Using the taskbar, you can switch between open programs and between open documents within.
© Paradigm Publishing Inc. MICROSOFT WINDOWS XP MAINTAINING FILES AND CUSTOMIZING WINDOWS Section 2.
Lesson 11: Looking at Files and Folders what a file or folder is on the computer how to recognize a file or folder on the desktop how to recognize the.
With Windows 7 Introductory© 2011 Pearson Education, Inc. Publishing as Prentice Hall1 Windows 7 Introductory Chapter 3 Advanced File Management and Advanced.
Hello World in the Forte IDE An introduction to the Forte IDE (integrated development environment) writing the classic “Hello World” program in Java.
Computing Fundamentals Module Lesson 10 — File Management with Windows Explorer Computer Literacy BASICS.
® Microsoft Office 2010 Exploring the Basics of Microsoft Windows 7.
Click your mouse to continue. The Office Shortcut Bar The Office Shortcut Bar contains program buttons that, when clicked, start new documents or start.
1.  Microsoft DOS (Disk Operating System) use a command line user interface.command line  A command line user interface means that the user is required.
1 Getting Started with C++. 2 Objective You will be able to create, compile, and run a very simple C++ program on Windows, using Visual Studio 2008.
Lesson No: 6 Introduction to Windows XP CHBT-01 Basic Micro process & Computer Operation.
CMPF124: Basics Skills for Knowledge Workers Manipulating Windows GUI.
DOS and the Command Line CS 21a: Introduction to Computing I First Semester,
Lab 0 / Chapter 0 Windows XP Environment. 2 User Interfaces: A different perspective.
XP New Perspectives on Microsoft Office FrontPage 2003 Tutorial 7 1 Microsoft Office FrontPage 2003 Tutorial 8 – Integrating a Database with a FrontPage.
®® Microsoft Windows 7 for Power Users Tutorial 3 Managing Folders and Files.
MySQL Getting Started BCIS 3680 Enterprise Programming.
File and Folder CLI Commands 12/24/ Agenda Overview of OS functions and the SHELL Internal v External Commands Command History Making & Modifying.
1 Installing Java on Your PC. Installing Java To develop Java programs on your PC: Install JDK (Java Development Kit) Add the directory where JDK was.
Windows and Mac OSX.  Formatting a disk prepares it to accept data  NTFS on Windows  HFS+ on the Mac  There are lots of different formatting options.
Introducing Dreamweaver. Dreamweaver The web development application used to create web pages Part of the Adobe creative suite.
Computer Literacy BASICS: A Comprehensive Guide to IC 3, 5 th Edition Lesson 3 Windows File Management 1 Morrison / Wells / Ruffolo.
The Command Line Yep, you need to know this. The Basics Start with the Prompt, what the computer tells you when ready for a command You type a command.
1 Getting Started with C++ Part 1 Windows. 2 Objective You will be able to create, compile, and run a very simple C++ program on Windows, using Microsoft.
Java On the ENB 116 Computers The JDK is now available on the ENB 116 computers. You can use a classroom computer rather than your own laptop or CIRCE.
®® Microsoft Windows 7 Windows Tutorial 2 Organizing Your Files.
XP New Perspectives on Microsoft Windows XP Tutorial 2 1 Microsoft Windows XP Working with Files Tutorial 2.
File and File Systems Compiled by IITG Team Need to be reorganized and reworded.
Tomcat Setup BCIS 3680 Enterprise Programming. One-Click Tomcat Setup 2  This semester we’ll try to set up Tomcat with a PowerShell script.  Preparation.
MySQL Getting Started BCIS 3680 Enterprise Programming.
TELEPORT PRO Website to Hard Drive Completely download a website, enabling you to “Browse Offline” at much greater speeds than if you were to browse the.
MS-DOS is an acronym for MicroSoft Disk Operating System It is a CUI based operating system. It provides user with a command prompt (generally called.
A+ Guide to Managing and Maintaining Your PC, 7e Chapter 2 Introducing Operating Systems.
Computer Literacy BASICS: A Comprehensive Guide to IC 3, 5 th Edition Lesson 3 Windows File Management 1 Morrison / Wells / Ruffolo.
Fundamentals of Windows Mouse n 4 Basic Operations: –Pointing –Clicking –Double Clicking –Dragging.
MIS 3200 – C# (C Sharp)
Using a set-up file to read ASCII data into Stata
Windows Tutorial 2 Organizing Your Files
An Introduction to Computers and Visual Basic
An Introduction to Computers and Visual Basic
Operating Microcomputer
BASICS 1 Windows XP.
New Perspectives on Windows XP
An Introduction to Computers and Visual Basic
MAINTAINING FILES AND CUSTOMIZING WINDOWS Section 2
Presentation transcript:

Command Console Tutorial BCIS 3680 Enterprise Programming

Overview 2  Working in Command Console  Navigation  Working directory  Listing contents of directory  Special “directories”  Running Java Commands in Console  Difference between system and Java commands  Using PATH  Showing File Extensions

Starting a Command Console 3

Command Prompt 4

Alternative Way to Start Console 5  Click Windows Start menu.  Select Run…  In the ensuing dialog box, type cmd  Click OK or press Enter.

Working Directory  When the console opens, you’re at a certain location in the file system.  The default is the Windows home folder for the current user. In Windows XP, it’s C:\Documents and Settings\. In Windows 7 and 8, it’s C:\Uers\.  From here, you may move away to other locations.  At any point of time, you are “parked” somewhere in the file system. The current location you’re at is your working directory. 6

GUI View of My Working Directory  What is a folder in Windows graphic user interface (GUI) is called a directory in the terminology of command console.  Similarly, subfolder = subdirectory. 7

Navigation: Moving to Another Drive  To move a different drive, simply type the drive letter, followed by a semicolon, at the command prompt.  Press Enter and you’re at the root of that drive.  My working directory is the root of F: now. 8

Navigation: Moving to Another Folder  To move to another folder, use the CD (change directory) command.  In Windows, the commands are not case-sensitive. So CD and cd are the same command. 9

Navigation: Moving to Another Folder  Again, note that as I cd into the new location, the path in front of the prompt ( > ) changes to reflect my new working directory. 10

Viewing Contents of a Directory  To see what are the contents inside a directory, use the DIR (short for “directory”) command. 11

Special “Subdirectories”  In every directory, there are two special “subdirecotries”:  A single dot refers to the current directory, i.e., working directory.  Double dots refer to the immediate parent directory of the working directory.  Therefore, in the example below, if you issue the command dir., the same output will be repeated.  If you issue cd.., your working directory will changed to F:. 12

Drilling Down inside a Directory  In the DIR output, indicates a subdirectory (notice that both the. and.. “subdirectories” are marked as.  In this example, hello also is a subdirectory of the working directory.  Use CD to move your working directory into the hello subdirectory.  Use DIR to list the contents of hello.  Repeat this procedure to “drill down” through the subdirectories of a directory.  Whenever you need to go back up one level, use the cd.. command. 13

Drilling Down inside a Directory 14

Shortcuts for CD Command  If there are many levels of subdirectories, it may be too cumbersome to run cd.. repeatedly, each issuance of the command bringing you up only to the immediate parent of the current working directory.  You may combine the double dots as part of a relative path to the subdirectory you want to go to.  Use a pair of double dots for each level above the subdirectory you’re starting out from.  Separate two pairs of double dots with a backslash ( \ ).  Once you reach a point where the parent of the destination folder, write out names of each directory in that branch.  Use the entire string as the “argument” of the cd command. 15

Navigation: CD with Relative Path 16

Navigation: CD with Relative Path 17

Navigation: CD with Absolute Path 18  The alternative solution is to type the absolute path (starting with the drive letter and spell out all subdirectory names).

Beeline to Root of Drive 19  Use backslash as the argument of CD command and it moves you directly to the root of the drive.

Other Useful Commands 20  MD  Also MKDIR  Create a new subdirectory  RMDIR  Remove a subdirectory  DEL does not remove the subdirectory. It only deletes all files in the subdirectory  DEL  Delete a file  TYPE  Output a file to the console  CLS  Clear the display of console

Running Non-System Commands 21  For system commands such as CD or DIR, the command console knows where to find their executable files and run them.  But if a program is not a native system file, the console assumes that it is inside the working directory. If it indeed finds the executable there, it runs it. If not, it throws in the towel and complains.

Running Java Commands 22  Java is not a Windows system application. So without assistance, the command console doesn’t know where java.exe or javac.exe is.

PATH Environment Variable 23  The PATH variable contains a number of absolute paths, separated by semicolons.  When Windows is installed, it adds quite some items in this variable.  You can add to this variable absolute paths to non-system programs you want to run in command console.  Do NOT add specific file name, only the path to the directory that contains the file you want to run.

Editing PATH 24  To edit PATH, right-click the computer icon on the desktop (or the Computer menu item in the Start menu).  Select Properties.

Editing PATH 25  Alternative, you can start the process by going to Control Panel and clicking System.

System Properties Dialog Box 26

Find Path in System Variables 27

Editing Value of Path 28  To add a new path, first go to the very end of the existing value of Path.  It is very important not to change the current value in any way. Otherwise some of your programs may not work properly.  If you suspect that you may have altered the value inadvertently, simply click Cancel and start over again.

Editing Value of Path 29  Add a semicolon to the end and then type in (paste in) the new path you’re adding. It’s NOT necessary to add a trailing backslash and/or semicolon.  Click OK to save the new value.

Verifying PATH Changes 30  To make sure that you have changed the PATH, start a command console and run the PATH command.  The new value should be in the command output.  It may be necessary to restart your computer for the changes to take effect.

Showing File Extensions in Windows 7 31  In this course, often we want to show the file extensions (e.g., the. class for source code files) in Windows Explorer.  However, the default Windows behavior is to hide file extensions that it recognizes.  We can change the settings of Windows Explorer.

Showing File Extensions 32  In Windows Explorer, click Organize (upper-left corner).  In the ensuing drop down menu, click Folder and search options.

Showing File Extensions 33  In the Folder Options dialog box, clear the checkbox for Hide extensions for known file types.  Click OK to close the dialog box.

Showing File Extensions 34  Now all file extensions are displayed, whether Windows recognizes them or not.