0% found this document useful (0 votes)
3 views

Java Questions Answers

The document provides an overview of basic command-line concepts and commands in Windows Command Prompt. It defines key terms such as command prompt, directory, working directory, root directory, absolute path, and relative path. Additionally, it lists various commands for screen clearing, drive changing, folder creation, renaming, removal, navigation, and exiting the command prompt.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

Java Questions Answers

The document provides an overview of basic command-line concepts and commands in Windows Command Prompt. It defines key terms such as command prompt, directory, working directory, root directory, absolute path, and relative path. Additionally, it lists various commands for screen clearing, drive changing, folder creation, renaming, removal, navigation, and exiting the command prompt.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Answers to Java Questions - Part 1

What is command Prompt?


Command Prompt is a command-line interface in Windows operating systems used to
execute commands for performing administrative tasks and troubleshooting.

What is Directory?
A directory is a file system structure that contains files or other directories, helping in
organizing files into a hierarchy.

What is Working Directory?


The working directory is the current directory where a user is operating and executing
commands in a file system.

What is Root Directory?


The root directory is the top-level directory in a file system hierarchy, serving as the
starting point for file paths.

What is Absolute Path?


An absolute path specifies the complete path to a file or directory starting from the root
directory.

What is Relative Path?


A relative path specifies the location of a file or directory relative to the current working
directory.

By using which command we can clear the screen?


The 'cls' command is used to clear the screen in the command prompt.

By using which command we can change the drive?


The drive letter followed by a colon (e.g., D:) is used to change the drive.

By using which command we can create a folder?


The 'mkdir' or 'md' command is used to create a folder.

By using which command we can rename the folder?


The 'ren' command is used to rename a folder.

By using which command we can remove the folder?


The 'rmdir' or 'rd' command is used to remove a folder.

By using which command we can list the folders?


The 'dir' command is used to list the folders and files in a directory.
By using which command we can navigate the next single folder?
The 'cd <folder_name>' command is used to navigate to the next single folder.

By using which command we can navigate the more than one next folder?
The 'cd <path>' command is used to navigate through multiple folders in a path.

By using which command we can navigate the previous folder?


The 'cd ..' command is used to navigate to the previous folder.

By using which command we can navigate the more than one previous folder?
The 'cd ..\..' command is used to navigate two levels back in the directory structure.

By using which command we can exit the command Prompt?


The 'exit' command is used to close the command prompt.

You might also like