‘Linux’ Archive

vimdiff – the cool way to diff for vim users

Some of you using the vim editor may not know about a tool that comes with vim called vimdiff. Vimdiff is an awesome way to diff files if you are a vim nut. It gives you the power of vim + the power of diff. How’s this different from opening 2 files in vim (with [...]

Copy files preserving the permissions

You might have come across a situation where your regular usage of the cp command for copying files in your linux box was not enough because while copying you needed to preserve the permissions of the files. Fret not, for help is at hand. Take a look at the man page for cp : -p     [...]

Copying files from one unix box to another with scp

scp (secure copy). scp was meant to be an alternative to unsecure tools like rcp. It has since replaced most such programs. Since scp uses the ssh protocol, the encryption it uses ensures security of your data.

How to join split files

This is sort of a follow-up to my previous post which talked about how you can use the split command in Linux to create split files which can be joined with hjsplit on Windows. My theory is that hjsplit does the same thing split does – which is just take the file and split it into the required number of pieces. No special headers or padding or compression or stuff. If that’s true, it should be easy as a pie to join the files split with hjsplit

hjsplit and linux split

The other day I had to fit in a 4.4 GB file (A Debian testing dvd iso image, if you want to know) on a 4 GB thumb drive. This, of course, is not possible. So I had to split the file into chunks, transfer them twice, take them to my friend’s windows machine and [...]

Useful vim commands

Now that you’ve typed some random stuff in, escape to the command mode. Now try pressing ‘:w’ i.e. (shift+;)w. W is for “write”. This saves the file and leaves you still in the editor. If you want to get out of the editor, you type in one more command ‘q’ so it becomes ‘:wq’. In case you want to get out of it without saving, use ‘:q!’. The other way to save and quit is to go to the command mode and hit shift+z+z.

Using Windows partitions from Debian GNU/Linux

My friend Arun recently blogged about Automounting filesystems in Linux from a Fedora perspective. For those of you who want an alternative method (especially Debian users), here goes… I’ll explain how I did it – it’s much easier to understand from an example. First of all, I used fdisk so I could know which were [...]