What command will you use to copy a text file from the C drive to the D drive in a Command Line Interface (CLI)?
What command will you use to copy a text file from the C drive to the D drive in a Command Line Interface (CLI)?
कमांड लाइन इंटरफेस (CLI) में टेक्स्ट फ़ाइल को C ड्राइव से D ड्राइव में काॅपी करने के लिए आप किस कंमाड का उपयोग करेगें?
Detailed Solution & Logic
copy C:\al.txt D:
Explanation (व्याख्या):
In Command Line Interface (CLI), the copy command is used to copy a file from one location to another.
Command Line Interface (CLI) में फ़ाइल को एक स्थान से दूसरे स्थान पर कॉपी करने के लिए copy command का उपयोग किया जाता है।
Syntax:
Syntax (विन्यास):
Example in this question:
इस प्रश्न में उदाहरण:
Source file: C:\al.txt
Source file: C:\al.txt
Destination: D: drive
Destination: D: drive
Command:
Command (आदेश):
This command will copy the file al.txt from the C drive to the D drive.
यह command C drive में मौजूद al.txt फ़ाइल को D drive में कॉपी कर देगा।
Why other options are wrong (अन्य विकल्प क्यों गलत हैं):
copy al.txt C:\ D: ❌ – The syntax is incorrect because the source and destination are not specified properly after the copy command.
copy al.txt C:\ D: ❌ – Syntax गलत है क्योंकि copy command के बाद source और destination सही तरीके से specify नहीं किए गए हैं।
move al.txt C:\ D: ❌ – The move command transfers the file from source to destination and removes it from the original location instead of copying it.
move al.txt C:\ D: ❌ – move command फ़ाइल को source से destination में transfer करता है और original location से हटा देता है, यह copy नहीं करता।
move C:\al.txt D: ❌ – The syntax is technically correct, but it moves the file instead of copying it.
move C:\al.txt D: ❌ – Syntax technically सही है, लेकिन यह फ़ाइल को copy नहीं बल्कि move करता है।
Extra Facts (अतिरिक्त तथ्य):
Move vs Copy:
Move और Copy का अंतर:
copy → The original file remains in the source and a duplicate file is created.
copy → original file source में बनी रहती है और उसकी duplicate copy बन जाती है।
move → The original file is removed from the source location and placed in the destination.
move → original file source location से हटकर destination में चली जाती है।
Wildcard Use:
Wildcard का उपयोग:
copy C:\*.txt D: will copy all .txt files from the C drive to the D drive.copy C:\*.txt D: C drive की सभी .txt फाइलों को D drive में copy कर देगा।
Shortcut Tip:
Shortcut Tip (शॉर्टकट सुझाव):
In CLI, paths are space-sensitive, so if a folder name contains spaces, use quotation marks (" ").
CLI में paths space-sensitive होते हैं, इसलिए यदि folder name में space हो तो " " (quotes) का उपयोग करें।
Exam Tip: Copy command → duplicate files, Move command → relocate files.
Exam Tip: Copy command → duplicate files बनाता है, Move command → files को एक स्थान से दूसरे स्थान पर स्थानांतरित करता है।
Similar Practice Questions
In Windows OS, which of the following tools is used to view and manage the processes currently running on the computer?
In Windows OS, which of the following tools is used to view and manage the...
Which of the following desktop elements in MS Windows OS displays icons representing shortcuts to frequently accessed files, folders, and programs?
Which of the following desktop elements in MS Windows OS displays icons representing shortcuts to...
Which system library is considered the most important in the Linux system?
Which system library is considered the most important in the Linux system? लिनक्स सिस्टम (Linux...
Which of the following options in the Windows operating system provides access to various system settings, such as display resolution, sound settings, and user accounts?
Which of the following options in the Windows operating system provides access to various system...
Which of the following keyboard shortcuts is used for opening the Run dialog box in the Windows operating system?
Which of the following keyboard shortcuts is used for opening the Run dialog box in...
A program that converts a high-level language program into a set of instructions that can run on a computer is called _________.
A program that converts a high-level language program into a set of instructions that can...
Which antivirus feature allows users to run potentially harmful files in a controlled environment to check for malicious behaviour?
Which antivirus feature allows users to run potentially harmful files in a controlled environment to...