Share to: share facebook share twitter share wa share telegram print page

Copy (command)

copy
Developer(s)DEC, Intel, MetaComCo, Heath Company, Zilog, Microware, HP, Microsoft, IBM, DR, TSL, Datalight, Novell, Toshiba
Operating systemRT-11, OS/8, RSX-11, ISIS-II, iRMX 86, TOPS-10, TOPS-20, OpenVMS, TRIPOS, HDOS, DOS, MSX-DOS, FlexOS, 4680 OS, 4690 OS, PC-MOS, Z80-RIO, OS-9, MPE/iX, OS/2, Windows, ReactOS, SymbOS, DexOS
TypeCommand
LicenseHDOS: PD
MS-DOS: MIT
PC-MOS: GPL v3
ReactOS: GPL v2

In computing, copy is a command in various operating systems. The command copies computer files from one directory to another.[1][2]

Overview

Generally, the command copies files from one location to another. It is used to make copies of existing files, but can also be used to combine (concatenate) multiple files into target files. The destination defaults to the current working directory. If multiple source files are indicated, the destination must be a directory, or an error will result. The command can copy in text mode or binary mode; in text mode, copy will stop when it reaches the EOF character; in binary mode, the files will be concatenated in their entirety, ignoring EOF characters.

Files may be copied to devices. For example, copy file con outputs file to the screen console. Devices themselves may be copied to a destination file, for example, copy con file takes the text typed into the console and puts it into FILE, stopping when EOF (Ctrl+Z) is typed.

Implementations

The command is available in DEC RT-11,[3] OS/8,[4] RSX-11,[5] Intel ISIS-II,[6] iRMX 86,[7] DEC TOPS-10,[8] TOPS-20,[9] OpenVMS,[10] MetaComCo TRIPOS,[11] Heath Company HDOS,[12] Zilog Z80-RIO,[13] Microware OS-9,[14] DOS, DR FlexOS,[15] IBM/Toshiba 4690 OS,[16] TSL PC-MOS,[17] HP MPE/iX,[18] IBM OS/2,[19] Microsoft Windows,[20] Datalight ROM-DOS,[21] ReactOS,[22] SymbOS and DexOS.

The copy command is supported by Tim Paterson's SCP 86-DOS.[23] Under IBM PC DOS/MS-DOS it is available since version 1.[24] A more advanced copy command is called xcopy.

The equivalent Unix command is cp, the CP/M command is PIP. The command is analogous to the Stratus OpenVOS copy_file command.[25]

Example for DOS

copy letter.txt [destination]

Files may be copied to device files (e.g. copy letter.txt lpt1 sends the file to the printer on lpt1. copy letter.txt con would output to stdout, like the type command. Note that copy page1.txt+page2.txt book.txt will concatenate the files and output them as book.txt. Which is just like the cat command). It can also copy files between different disk drives.

There are two command-line switches to modify the behaviour when concatenating files:

  • Text mode - This copies the text content of the file, stopping when it reaches the EOF character.
copy /a doc1.txt + doc2.txt doc3.txt
copy /a *.txt doc3.txt
  • Binary mode - This concatenates files in their entirety, ignoring EOF characters.
copy /b image1.jpg + image2.jpg image3.jpg

See also

References

  1. ^ "Microsoft TechNet Copy article". 2009-09-11.
  2. ^ Rügheimer, Hannes; Spanik, Christian (1988-09-14). AmigaDOS quick reference. Grand Rapids, Mi : Abacus. ISBN 9781557550491 – via Internet Archive.
  3. ^ "RT-11 HELP FILE". paleoferrosaurus.com. Archived from the original on 2018-07-17. Retrieved 2019-07-06.
  4. ^ "Concise Command Language" (CCL)."OS/8 Handbook" (PDF). April 1974. Retrieved 2017-11-28.
  5. ^ John F. Pieper (1987). RSX A Guide for Users (PDF). Digital Equipment Corporation. ISBN 0-932376-90-8. Retrieved 2020-09-19.
  6. ^ ISIS II Users Guide
  7. ^ "intel :: iRMX :: 146194-001 irmxR6Intro" – via Internet Archive.
  8. ^ TOPS-10 Operating System Commands Manual (PDF). Digital Equipment Corporation. August 1980. Archived from the original (PDF) on 2020-08-09. Retrieved 2019-02-17.
  9. ^ "TOPS-20 Command manual" (PDF). Archived from the original (PDF) on 2020-08-09. Retrieved 2018-07-18.
  10. ^ "OpenVMS User's Manual". www.itec.suny.edu.[permanent dead link]
  11. ^ "Operating manual" (PDF). www.pagetable.com. Retrieved 2020-09-14.
  12. ^ Heath Company. "Software Reference Manual HDOS SYSTEM Chapter 2 General Operations" (PDF). Archived from the original (PDF) on 2017-08-07. Retrieved 2020-02-08.
  13. ^ Z80-RIO OPERATING SYSTEM USER'S MANUAL
  14. ^ Paul S. Dayan (1992). The OS-9 Guru - 1 : The Facts. Galactic Industrial Limited. ISBN 0-9519228-0-7.
  15. ^ "FlexOS User's Guide" (PDF). www.bitsavers.org. 1986. Archived from the original (PDF) on 2010-08-08. Retrieved 2020-09-14.
  16. ^ [1][dead link]
  17. ^ "roelandjansen/pcmos386v501". GitHub. 2022-01-02.
  18. ^ "MPE/iX Command Reference Manual" (PDF). Archived from the original (PDF) on 2018-10-21. Retrieved 2018-10-21.
  19. ^ "OS/2 Commands: Copy". Archived from the original on 2019-04-14. Retrieved 2019-07-20.
  20. ^ "copy". docs.microsoft.com. 2023-02-03.
  21. ^ "Datalight ROM-DOS User's Guide" (PDF). www.datalight.com.
  22. ^ "reactos/reactos". GitHub. 2022-01-03.
  23. ^ 86-DOS - Disk Operating System for the 8086 - User's Manual (PDF). Version 0.3 (Preliminary ed.). Seattle, Washington, USA: Seattle Computer Products, Inc. 1980. Archived from the original (PDF) on 2019-07-14. Retrieved 2019-07-14. (59 pages)
  24. ^ Wolverton, Van (2003). Running MS-DOS Version 6.22 (20th Anniversary Edition), 6th Revised edition. Microsoft Press. ISBN 0-7356-1812-7.
  25. ^ "OpenVOS Commands Reference Manual" (PDF). stratadoc.stratus.com. Retrieved 2020-09-14.

Further reading

Read other articles:

La BambaPoster RilisSutradara Luis Valdez Produser Bill Borden Taylor Hackford Ditulis oleh Luis Valdez Pemeran Esai Morales * Rosanna DeSoto * Elizabeth Peña * Joe Pantoliano * Lou Diamond Phillips Penata musikLos LobosMiles Goodman Carlos SantanaSinematograferAdam GreenbergPenyuntingSheldon KahnDon BrochuDistributorColumbia PicturesTanggal rilis 24 Juli 1987 (1987-07-24) Durasi108 minutesNegara Amerika Serikat Bahasa Inggris Anggaran$6,500,000Pendapatankotor$54,215,416 La Bamba ...

ЖонакJaunac Країна  Франція Регіон Овернь-Рона-Альпи  Департамент Ардеш  Округ Турнон-сюр-Рон Кантон Кантон-дю-Шейлар Код INSEE 07108 Поштові індекси 07160 Координати 44°55′13″ пн. ш. 4°24′00″ сх. д.H G O Висота 440 - 980 м.н.р.м. Площа 3,92 км² Населення 117 (01-2020[1]) Густота 36,22

Dwight Foster Dwight Foster (* 7. Dezember 1757 in Brookfield, Worcester County, Province of Massachusetts Bay; † 29. April 1823 ebenda) war ein US-amerikanischer Politiker (Föderalistische Partei), der den Bundesstaat Massachusetts in beiden Kammern des Kongresses vertrat. Nach dem Abschluss seiner Schulausbildung besuchte Dwight Foster das College in the English Colony of Rhode Island and Providence Plantations in Providence, die heutige Brown University, und machte dort 1774 seinen...

Buttelstedt Landgemeinde Am Ettersberg Wappen von Buttelstedt Koordinaten: 51° 4′ N, 11° 20′ O51.07416666666711.341111111111200Koordinaten: 51° 4′ 27″ N, 11° 20′ 28″ O Höhe: 200 m Fläche: 18,85 km² Einwohner: 1317 (31. Dez. 2017) Bevölkerungsdichte: 70 Einwohner/km² Eingemeindung: 1. Januar 2019 Postleitzahl: 99439 Vorwahl: 036451 Buttelstedt (früher auch Botelstete[1] und Buttelstädt[...

Братські могили радянських воїнів та партизан 49°04′22″ пн. ш. 27°40′10″ сх. д. / 49.072861° пн. ш. 27.669556° сх. д. / 49.072861; 27.669556Координати: 49°04′22″ пн. ш. 27°40′10″ сх. д. / 49.072861° пн. ш. 27.669556° сх. д. / 49.072861; 27.669556Країна  Укра

Amnéville Amnéville (Frankreich) Staat Frankreich Region Grand Est Département (Nr.) Moselle (57) Arrondissement Metz Kanton Rombas Gemeindeverband Pays Orne Moselle Koordinaten 49° 16′ N, 6° 9′ O49.2608333333336.1419444444444Koordinaten: 49° 16′ N, 6° 9′ O Höhe 157–366 m Fläche 10,46 km² Einwohner 10.668 (1. Januar 2020) Bevölkerungsdichte 1.020 Einw./km² Postleitzahl 57360 INSEE-Code 57019 Website Amnéville Rathau...

1934 film by Richard Boleslawski Operator 13Theatrical release posterDirected byRichard BoleslawskiScreenplay by Harvey F. Thew Zelda Sears Eve Greene Based onSecret Service Operator1934 novelby Robert W. ChambersProduced byLucien HubbardStarring Marion Davies Gary Cooper Jean Parker CinematographyGeorge J. FolseyEdited byFrank SullivanMusic byWilliam AxtProductioncompanyMetro-Goldwyn-MayerDistributed byMetro-Goldwyn-MayerRelease date June 8, 1934 (1934-06-08) (USA) Running...

У этого термина существуют и другие значения, см. Михайло-Архангельский собор. православный храмМихайло-Архангельский собор 56°19′41″ с. ш. 44°00′06″ в. д.HGЯO Страна  Россия Город Нижний Новгород Конфессия Православие Епархия Нижегородская Благочиние Нижегород...

Miss Grand Indonesia 2021Sophia Rogan, Miss Grand Indonesia 2021.Tanggal20 Mei 2021TempatGoodrich Suites, Artotel Portofolio, JakartaPenyiaranYouTube Ivan Gunawan (live streaming)Peserta1Tidak tampilJakartaJawa BaratJawa TimurNusa Tenggara TimurTampil kembaliBaliPemenangSophia Rogan Bali← 20202022 →lbs Miss Grand Indonesia 2021 adalah edisi ke 4 kontes kecantikan Miss Grand Indonesia. Acara penobatan ini berlangsung di Goodrich Suites, Artotel Portofolio p...

1956 Indian filmEdi NijamPosterTeluguఏది నిజం Directed byS. BalachanderWritten bySunkara SatyanarayanaProduced byGhantasala KrishnamurthyStarringNagabhushanamShowkar JanakiGummadiRamana ReddyVangaraMusic byMaster VenuRelease date1956CountryIndiaLanguageTelugu Edi Nijam (transl. What is Truth?) is a 1956 Indian Telugu-language film directed by Vainik and film personality S. Balachander and produced by Ghantasala Krishnamurthy of Pratibha Films.[1] The films starring...

Wilhelm von Hessen-Philippsthal Wilhelm von Hessen-Philippsthal-Barchfeld (* 1. April 1692 in Philippsthal; † 13. Mai 1761 in Breda) aus dem Haus Hessen war paragierter Landgraf von Hessen-Philippsthal-Barchfeld. Inhaltsverzeichnis 1 Leben 2 Nachkommen 3 Literatur 4 Weblinks Leben Schloss Wilhelmsburg (Mai 2012) Wilhelm war der dritte und jüngste Sohn und das siebente von acht Kindern des paragierten Landgrafen Philipp von Hessen-Philippsthal aus dessen Ehe mit Katharina Amalie (1654–173...

الرجل ذو الشفة الملتوية. The Man with the Twisted Lip.   معلومات الكتاب المؤلف ارثر كونان دويل. البلد المملكة المتحدة. اللغة الإنكليزية. تاريخ النشر ديسمبر 1891. السلسلة مغامرات شرلوك هولمز. النوع الأدبي أدب بوليسي. التقديم عدد الصفحات 76(الترجمة العربية). الفريق المصور سيدني باجيت. الرس...

Japanese video game company Nintendo Co., Ltd.Logo used since 2016Headquarters in Kyoto, JapanTrade nameNintendoNative name任天堂株式会社Romanized nameNintendō kabushiki gaishaFormerlyNintendo Koppai (1889) Other former names Yamauchi Nintendo (1889–1933) Yamauchi Nintendo & Co. (1933–1947) Marufuku Co., Ltd. (1947–1951) Nintendo Playing Card Co. Ltd. (1951–1963) TypePublic company, KKTraded asTYO: 7974TOPIX Core30 component (7974)Nikkei 225 component (TYO)ISINJP3756600007...

Peruvian war hero Rosa PanduroBornCarmen Rosa Panduro Ramírez[1](1918-12-10)December 10, 1918Requena, PeruDiedNovember 11, 1989(1989-11-11) (aged 70)Iquitos, PeruResting placeCementerio General San Miguel ArcángelNationalityPeruvianOther namesHeroine of Rocafuerte[2][3]Known forVolunteering during the Battle of RocafuerteSpouseJuan Manuel Peñaherrera ValeraMilitary careerAllegiance PeruService/branchPeruvian ArmyYears of service1941Battles/w...

You can help expand this article with text translated from the corresponding article in Arabic. Click [show] for important translation instructions. View a machine-translated version of the Arabic article. Machine translation, like DeepL or Google Translate, is a useful starting point for translations, but translators must revise errors as necessary and confirm that the translation is accurate, rather than simply copy-pasting machine-translated text into the English Wikipedia. Consider adding...

German internist Internist Richard Geigel Richard Geigel (4 June 1859 in Würzburg – 2 December 1930 in Würzburg) was a German internist. In 1883 he received his medical doctorate from the University of Würzburg with the dissertation-thesis Über Variabilität in der Entwicklung der Geschlechtsorgane beim Menschen. In 1888 he obtained his habilitation, and ten years later became an associate professor of balneology, hydrotherapy and massage at Würzburg.[1] His name is associa...

Disused railway station in Cumbria, England Cumberland and Westmorland Convalescent InstitutionThe station with a typical train, around the beginning of the 20th centuryGeneral informationLocationSilloth, CumberlandEnglandCoordinates54°51′54″N 3°23′48″W / 54.8651°N 3.3967°W / 54.8651; -3.3967Grid referenceNY104531Platforms1[1][2]Other informationStatusDisusedHistoryOriginal companyCarlisle & Silloth Bay Railway & Dock CompanyPre-grou...

Brewery established in Adelaide in 1888 For other uses of the name West End Brewery, see West End Brewery. West End brewery building, Hindley Street, S. side c.1920 The South Australian Brewing Company, Limited was a brewery located in Thebarton, an inner-west suburb of Adelaide, South Australia. It is a subsidiary of Lion, which in turn is owned by Kirin, a Japan-based beverage company. It manufactures West End Draught beer. The company was created in 1888 as the South Australian Brewing, Ma...

SOS

У этого термина существуют и другие значения, см. SOS (значения). Запрос «СОС» перенаправляется сюда; см. также другие значения. Передача сигнала SOS SOS (СОС) — международный сигнал бедствия в радиотелеграфной (с использованием азбуки Морзе) связи. Передача представляет ...

List of events ← 2015 2014 2013 2016 in Japan → 2017 2018 2019 Decades: 1990s 2000s 2010s 2020s See also:Other events of 2016History of Japan  • Timeline  • Years The following lists events that happened during 2016 in Japan. Year: Heisei 28 Incumbents Emperor: Akihito[1] Prime Minister: Shinzō Abe (L–Yamaguchi) Chief Cabinet Secretary: Yoshihide Suga (L–Kanagawa) Chief Justice of the Supreme Court: Itsurō Terada President of the House...

Kembali kehalaman sebelumnya