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
Which of the following keyboard shortcuts is used to print a web page in Google Chrome in the Windows OS?
Which of the following keyboard shortcuts is used to print a web page in Google...
Which Task Manager tab would one use when tracking the quantity of data delivered and received over one’s network connection?
Which Task Manager tab would one use when tracking the quantity of data delivered and...
In Windows OS, where are the files and folders stored on a computer?
In Windows OS, where are the files and folders stored on a computer? विंडोज OS...
How can a user change the display settings in the Windows operating system?
How can a user change the display settings in the Windows operating system? कोई यूजर...
How does a user add a new printer in Windows 10?
How does a user add a new printer in Windows 10? कोई यूजर विंडोज 10...
Which of the following panels is used for changing the system settings in the Windows operating system?
Which of the following panels is used for changing the system settings in the Windows...
Which of the following Windows utilities is used to modify system startup settings and manage system services?
Which of the following Windows utilities is used to modify system startup settings and manage...