User Tools

Site Tools


vim:saving_a_file_as_root

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
vim:saving_a_file_as_root [2020/01/09 01:52] petervim:saving_a_file_as_root [2020/07/15 09:30] (current) – external edit 127.0.0.1
Line 14: Line 14:
   * **%** - The % is nothing but current filename.   * **%** - The % is nothing but current filename.
  
-tee command is run as root and it takes standard input (or the buffer) and writes it to a file represented by %.+**tee** command is run as root and it takes standard input (or the buffer) and writes it to a file represented by %.
  
 This will prompt to reload the file again - hit **L** to load changes within vi itself. This will prompt to reload the file again - hit **L** to load changes within vi itself.
vim/saving_a_file_as_root.1578534730.txt.gz · Last modified: 2020/07/15 09:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki