Skip to content

Instantly share code, notes, and snippets.

@mgedmin
Created September 22, 2016 09:00
Show Gist options
  • Save mgedmin/42fbe44ea266a12e30bc63b701e41a14 to your computer and use it in GitHub Desktop.
Save mgedmin/42fbe44ea266a12e30bc63b701e41a14 to your computer and use it in GitHub Desktop.
$ sudo mount -t tmpfs -o size=4096 none /mnt/
$ echo put .viminfo /mnt/viminfo | sftp localhost
Connected to localhost.
sftp> put .viminfo /mnt/viminfo
Uploading .viminfo to /mnt/viminfo
.viminfo 31% 32KB 32.0KB/s 00:02 ETA
Couldn't write to remote file "/mnt/viminfo": Failure
$ echo $?
0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment