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 is a multitasking operating system?
Which of the following is a multitasking operating system? निम्नलिखित में से कौन-सा मस्टी टास्किंग...
Which of the following operating systems can run on all types of computers?
Which of the following operating systems can run on all types of computers? निम्न में...
How can you access the Control Panel in Windows 10?
How can you access the Control Panel in Windows 10? व़िंडोज 10 में कंट्रोल पैनल...
Which tool in Windows helps install and manage hardware drivers?
Which tool in Windows helps install and manage hardware drivers? विंडोज में कौन-सा टूल हार्डवेयर...
What is the function of operating system?
What is the function of operating system? ऑपरेटिंग सिस्टम का क्या कार्य है?
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? निम्नलिखित में...
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...