ArticleslgStudy

computer science

SYS (command)

SYS (command) is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand SYS (command) rather than just read about it. In short: In computing, sys is a command used in many operating system command-line shells and also in Microsoft BASIC. DOS, Windows, etc.

SYS (command) — main illustration
SYS (command) — illustration

Key takeaways

  • SYS (command) belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect SYS (command) to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of SYS (command) from memory before moving on to harder problems.

Reference excerpt

In computing, sys is a command used in many operating system command-line shells and also in Microsoft BASIC.

DOS, Windows, etc. SYS is an external command of Seattle Computer Products 86-DOS, Microsoft MS-DOS, IBM PC DOS, Digital Research FlexOS, IBM/Toshiba 4690 OS, PTS-DOS, Itautec/Scopus Tecnologia SISNE plus, and Microsoft Windows 9x operating systems. It is used to make an already formatted medium bootable. It will install a boot sector capable of booting the operating system into the first logical sector of the volume. Further, it will copy the principal DOS system files, that is, the DOS-BIOS (IO.SYS or IBMBIO.COM) and the DOS kernel (MSDOS.SYS or IBMDOS.COM) into the root directory of the target. Due to restrictions in the implementation of the boot loaders in the boot sector and DOS' IO system, these two files must reside in the first two directory entries and be stored at the beginning of the data area under MS-DOS and PC DOS. Depending on version, the whole files or only a varying number of sectors of the DOS-BIOS (down to only three sectors in modern issues of DOS) will have to be stored in one consecutive part. SYS will try to physically rearrange other files on the medium in order to make room for these files in their required locations. This is why SYS needs to bypass the filesystem driver in the running operating system. Other DOS derivatives such as DR-DOS do not have any such restrictions imposed by the design of the boot loaders, therefore under these systems, SYS will install a DR-DOS boot sector, which is capable of mounting the filesystem, and can then simply copy the two system files into the root directory of the target. SYS will also copy the command line shell (COMMAND.COM) into the root directory. The command can be applied to hard drives and floppy disks to repair or create a boot sector. Although an article on Microsoft's website says the SYS command was introduced in MS-DOS version 2.0, this is incorrect. SYS actually existed in 86-DOS 0.3 already. According to The MS-DOS Encyclopedia, the command was licensed to IBM as part of the first version of MS-DOS, and as such it was part of MS-DOS/PC DOS from the very beginning (IBM PC DOS 1.0 and MS-DOS 1.25). DR DOS 6.0 includes an implementation of the SYS command.

Syntax The command syntax is:

SYS [drive1:][path] drive2:

Arguments:

[drive1:][path] – The location of the system files drive2: – The drive to which the files will be copied

Example

Microsoft BASIC SYS is also a command in Microsoft BASIC used to execute a machine language program in memory. The command took the form SYS n where n is a memory location where the executable code starts. Home computer platforms typically publicised dozens of entry points to built-in routines (such as Commodore's KERNAL) that were used by programmers and users to access functionality not easily accessible through BASIC.

See also List of DOS commands Disk formatting

References

Further reading Wolverton, Van (1990). MS-DOS Commands: Microsoft Quick Reference, 4th Revised edition. Microsoft Press. ISBN 978-1556152894. Dyson, Peter (1995). Mastering OS/2 Warp. Sybex. ISBN 978-0782116632. Tim O'Reilly; Troy Mott; Walter Glenn (1999). Windows 98 in a Nutshell: A Desktop Quick Reference. O'Reilly. ISBN 978-1565924864.

External links

MS-DOS and Windows command line sys command Open source SYS implementation that comes with MS-DOS v2.0

Worked examples

Example 1 — a first encounter with SYS (command)

Start with the simplest possible case. Write down what SYS (command) claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to SYS (command) before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about SYS (command) ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of SYS (command)

In research
SYS (command) appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses SYS (command) in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
SYS (command) is common in secondary-school and first-year university syllabi. It links to neighbouring topics BASIC commands, External DOS commands, Microcomputer software, so understanding it makes those chapters shorter.
In everyday life
Look for SYS (command) outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “SYS (command)” →

How to study SYS (command) in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what SYS (command) means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain SYS (command) out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is SYS (command) in simple terms?

In computing, sys is a command used in many operating system command-line shells and also in Microsoft BASIC. DOS, Windows, etc.

Why does SYS (command) matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study SYS (command)?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on SYS (command).

Tags

  • BASIC commands
  • External DOS commands
  • Microcomputer software
  • Microsoft free software
  • Windows commands

Keep exploring