Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

7
  • This works. But, Is this increase my hard-disk usage? Commented Jan 3, 2018 at 1:37
  • @alhelal, that depends on the file sizes and your memory utilization. Obviously since you're not deleting file1 your hard disk usage will have a net increase (although even that's not actually true in all cases). But will you have a temporary increase in hard disk utilization? That's a different layer of abstraction, not answerable from the data given. Commented Jan 3, 2018 at 1:55
  • Does this create temporary file? Commented Jan 3, 2018 at 1:59
  • @alhelal, again, that depends on the file size and your memory utilization. Commented Jan 3, 2018 at 2:01
  • 2
    In modern systems ex is usually implemented as part of vim. vim creates a swap file. I'm not sure if ex does same but if you add -n to a ex/vim invocation that will prevent swap file creation. So you might want to do that depending on what your requirements are. Commented Jan 3, 2018 at 2:22