Learn Linux

cog on 2004-06-29T02:32:31

A person who knows nearly nothing about Linux sent me a tar file... see what I got with that file and keep in mind the following notes:

swp files - if you're using vim, for instance, and have swap files in the directory, you might want to close vim before taring the directory...

a :w file - always save... but please do it only once!!! writing :w :w doesn't make it better!! :-) (ok, this could have happened to anyone, but be warned :-) )

a ~ file - ... WFT?


tilde files

runrig on 2004-06-29T03:24:50

Is that "~file" or "file~"? the default backupext for vim is "~".

Re:tilde files

cog on 2004-06-29T03:30:05

I know that, but the weird thing is that the filename is just a plain tilde... could it be that vim was opened without any arguments? but then again, that would result in a .swp file, right? Just ~ ... nothing more...

Re:tilde files

Limbic Region on 2004-06-29T12:28:05

Actually this happens to me quite a bit. Remember that ~ is the shortcut to your home directory so :w ~/blah.foo

will write to blah.foo in your home directory.

Now if you type as fast as I do you pinky tends to hover over the enter key and not over the ;