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
How can you access the Control Panel in Windows 10?
How can you access the Control Panel in Windows 10? व़िंडोज 10 में कंट्रोल पैनल...
Which of the following commands can be used to open the Windows Features window?
Which of the following commands can be used to open the Windows Features window? विंडोज़...
The Start menu was first introduced in which version of Windows?
The Start menu was first introduced in which version of Windows? स्टार्ट मेनू सर्वप्रथम विंड़ोज...
Which of the following is a small graphical representation of a computer application on the desktop?
Which of the following is a small graphical representation of a computer application on the...
Which of the following features is NOT a characteristic of the Windows OS?
Which of the following features is NOT a characteristic of the Windows OS? निम्नलिखित में...
Where can a user pin frequently used applications for quick access in MS Windows 10?
Where can a user pin frequently used applications for quick access in MS Windows 10?...
After the computer lights on, it is loaded from ROM into the main memory of the computer, this process is called?
After the computer lights on, it is loaded from ROM into the main memory of...