vim:saving_a_file_as_root
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
vim:saving_a_file_as_root [2020/01/09 01:52] – peter | vim: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)