This is a neat trick to know and saves a lot of time:
- Go to the beginning of the line where you want to start copying.
- Make sure you are in the command mode. (Hit ESC).
- Type “ma”. Which means, you are marking the spot with “a”.
- Go to the …
This is a neat trick to know and saves a lot of time:
Here is a nice tip on unix find..
$ find . cpio -pdumv /path/to/destination/dir
the files found by find are passed into cpio and it copies the files with the same permissions to the destination directory.
If you untar a package, and it makes a mess of your directory because the packager didn’t include the files in his tarball in a directory, you can use
$ rm `tar ftz package.tar.gz`
to quickly get rid of those cluttering files.
$ rm `tar ft package.tar`
does …