Learn Java Common DOS commands

Source: Internet
Author: User
Tags clear screen

In the Java Basic Learning phase, the file is generally operated under DOS command line, and some common commands are listed here.

  • How to open the DOS console

Press Win+r and then enter CMD and return.

  • Common DOS commands

D: Return drive letter Toggle (disk multibyte colon)

Dir (directory): Lists the files and folders in the current directory

MD (Make directory): Create directory

RD (remove directory): Delete directory

CD (change directory) changes the specified directory (enter the specified directory)

CD: Back to top level directory

Cd\: Go back to the root directory

Del (delete): Delete files, delete a bunch of suffix names like files *.txt

Exit: Exit DOS command line CLS: (Clear screen) clear

  • Common Java Directives

Javac: Compile the. java file into a. class file that the JVM can recognize.

Java: Running a compiled. class file

CLASSPATH: Viewing environment variables

Setclasspath=.\ file directory: Set TEMP environment variable (. Refers to the current folder)

Learn Java Common DOS commands

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.