ArticleslgStudy

science

Ex (text editor)

Ex (text editor) is a 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 Ex (text editor) rather than just read about it. In short: ex (short for extended) is a line editor based on and intended as an improvement to ed, the original Unix editor. Today, it is standardized by POSIX.

Ex (text editor) — main illustration
Ex (text editor) — illustration

Key takeaways

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

Reference excerpt

ex (short for extended) is a line editor based on and intended as an improvement to ed, the original Unix editor. Today, it is standardized by POSIX. George Coulouris of Queen Mary College developed an improved version of ed called em in 1975 that took advantage of video terminals. While visiting Berkeley, Coulouris presented em to Bill Joy, who modified it along with Charles Haley to be less demanding of the processor. The editor became ex and got included in the Berkeley Software Distribution. Later, ex was enhanced to support full-screen editing via a new, visual mode. The vi text editor is, in fact, ex running in visual mode. The program can be started in either the visual or legacy mode (via command vi vs. ex) and the user can switch between modes at runtime. And, in visual mode, ex commands can be issued at the colon (:) prompt. Even though vi is just a mode of ex, the editor is more commonly called vi today instead of ex. In fact, some programs such as vim provide both vi and ex compatibility modes such that neither vi nor ex are the program per se. The core ex commands which relate to search and replace are essential to vi. For instance, the ex command :%s/XXX/YYY/g replaces every instance of XXX with YYY, and works in vi too. The % means every line in the file. The 'g' stands for global and means replace every instance on every line (if it was not specified, then only the first instance on each line would be replaced).

See also List of POSIX commands

References

External links

ex: text editor – Shell and Utilities Reference, The Single UNIX Specification, Version 5 from The Open Group

Illustrations

Ex (text editor) illustration

Worked examples

Example 1 — a first encounter with Ex (text editor)

Start with the simplest possible case. Write down what Ex (text editor) claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In 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 Ex (text editor) 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 Ex (text editor) 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 Ex (text editor)

In research
Ex (text editor) appears in 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 Ex (text editor) 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
Ex (text editor) is common in secondary-school and first-year university syllabi. It links to neighbouring topics Line editor, Standard Unix programs, Unix SUS2008 utilities, so understanding it makes those chapters shorter.
In everyday life
Look for Ex (text editor) 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 “Ex (text editor)” →

How to study Ex (text editor) in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Ex (text editor) 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 Ex (text editor) out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Ex (text editor) in simple terms?

ex (short for extended) is a line editor based on and intended as an improvement to ed, the original Unix editor. Today, it is standardized by POSIX.

Why does Ex (text editor) matter?

Because it connects several 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 Ex (text editor)?

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 Ex (text editor).

Tags

  • Line editor
  • Standard Unix programs
  • Unix SUS2008 utilities
  • Unix text editors

Keep exploring