Download presentation
Presentation is loading. Please wait.
Published byCornelia McLaughlin Modified over 9 years ago
1
DOS and the Command Line CS 21a: Introduction to Computing I Department of Information Systems and Computer Science Ateneo de Manila University
2
Copyright 2008, by the authors of these slides, and Ateneo de Manila University. All rights reserved. L2: DOS Slide 2 What is DOS? Disk Operating System Enables the user to organise data files, load and execute (run) program files Entirely text-based, command-line system where the user can type in commands from the keyboard
3
Copyright 2008, by the authors of these slides, and Ateneo de Manila University. All rights reserved. L2: DOS Slide 3 Launching the command line From the Start menu, choose Run Type command or cmd and click OK Or: download cmdhere.bat from the course website, place in a folder, and then double-click To close the command line, type exit and press
4
Copyright 2008, by the authors of these slides, and Ateneo de Manila University. All rights reserved. L2: DOS Slide 4 A word of warning With DOS comes power; you can very easily mess up your system if you use powerful commands in the wrong way Be EXTREMELY careful when using these commands: format fdisk del / deltree
5
Copyright 2008, by the authors of these slides, and Ateneo de Manila University. All rights reserved. L2: DOS Slide 5 Useful DOS commands dir – display current directory use /w or /p if directory has a lot of files ? stands for a single digit or letter * stands for a combination of digits and/or letters cd – change current directory. – current directory.. – parent directory md - make new folder copy - copies the to a file called del - deletes a file
6
Copyright 2008, by the authors of these slides, and Ateneo de Manila University. All rights reserved. L2: DOS Slide 6 Java commands javac - compile a java program java - execute a java program javadoc - generate java documentation javap - print information about the java class (Note: PATH should include location of the java executables; automatically set by cmdhere.bat)
7
Copyright 2008, by the authors of these slides, and Ateneo de Manila University. All rights reserved. L2: DOS Slide 7 DOS exercise Open a command line terminal Create and compile the Hello.java program on your desktop Create a “cs21a” subdirectory under c:\Documents and Settings\Guest\Desktop Copy Hello.java and Hello.class to the “cs21a” directory by using JUST 1 copy command Delete the Hello.java and Hello.class files on your desktop
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.