0% found this document useful (0 votes)
18 views6 pages

Command Line Propmt

The command prompt is a command line interpreter available in most Windows operating systems. It is used to execute commands and is officially called the Windows Command Processor but also referred to as the command shell or cmd prompt. Users can access the command prompt through the start menu or app screen. The command prompt allows users to navigate and manage the file structure and directories of their computer through basic commands like cd, dir, cls, and java.

Uploaded by

Thanuja M
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views6 pages

Command Line Propmt

The command prompt is a command line interpreter available in most Windows operating systems. It is used to execute commands and is officially called the Windows Command Processor but also referred to as the command shell or cmd prompt. Users can access the command prompt through the start menu or app screen. The command prompt allows users to navigate and manage the file structure and directories of their computer through basic commands like cd, dir, cls, and java.

Uploaded by

Thanuja M
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

Command line propmt

Command Line Prompt

❏ Command prompt is a command line interpreter application


available in most Windows OS.
❏ It is used to execute entered commands.
❏ Command prompt is officially called Windows command
processor, but it’s also referred as the command shell or cmd
prompt.
How to access command prompt?
● There are several way to open command prompt, but the normal method is
through command prompt shortcut located in the start menu or on the App
screen, depending on the version of Windows.
● Shortcut->
cmd Run command

FILE STRUCTURE ->


● In windows hard disk can be divided into multiple portions.
● Each portion is known as ‘Drive’.
● Each drive has a name like;
C: , D: , E:
USER HOME DIRECTORY->

● The folder that is created in user name inside the users folder is known as ‘
User Home Directory’.
● Whenever we open the command prompt by default we are inside the user
home directory.

Eg: C:/Users/foldername

WORKING DIRECTORY->

● The folder which is currently in use is known as ‘Working directory’ or ‘Current


working directory’.
BASIC COMMANDS
❖ cd (Change directory) ->used to change the directory.
❖ Md or mkdir(make directory)-> used to create a the directory
❖ dir(directory)-> used to list all the files and directories present in the working
directory.
❖ cls-> used to clear the screen.
❖ cd.. -> used to move backward one folder.
❖ cd/-> directly move backward to the drive.
❖ ../../../->used to move backward multiple folders.
❖ To change directory from C:/> to any other drive just drive drive name. Eg;
C:/> E: and press enter key
E:/>_
NOTE:-These commands are not case sensitive.
❖ javac -> used to compile a java source file .
We should pass source filename as input :
Syntax:- javac filename.java
❖ java -> used to execute java class file.
We should pass class filename as input:
Syntax:- java filename

You might also like