System Grab Bag

View all TLDR pages from common (or from all pages)

ex

Command-line text editor. See also: vim. More information: https://www.vim.org.
  • Open a file:
    ex {{path/to/file}}
  • Save and Quit:
    wq<Enter>
  • Undo the last operation:
    undo<Enter>
  • Search for a pattern in the file:
    /{{search_pattern}}<Enter>
  • Perform a regular expression substitution in the whole file:
    %s/{{regular_expression}}/{{replacement}}/g<Enter>
  • Insert text:
    i<Enter>{{text}}<C-c>
  • Switch to Vim:
    visual<Enter>

License and Disclaimer

The content on this page is copyright © 2014—present the tldr-pages team and contributors.
This page is used with permission under Creative Commons Attribution 4.0 International License.

While we do attempt to make sure content is accurate, there isn't a warranty of any kind.