Web Masters Site All For Web Masters

24Feb/090

$100 Of Free Facebook Advertisement Credit

You can get free $100 of advertisment credit at facbook, you must only join The Visa Business Network, and when you finish singup you'll get confirmation email with coupon code, folow instuction and enjoy free 100$ of facebook credit.  :)

1Feb/090

How To Copy Files In Linux

To copy files, you use the cp command. The following will copy file to file2. Note that if file2 doesn't exist, it'll be created, but if it exists, it'll be overwritten:
$ cp file file2

There aren't any undo commands in the Linux CLI, so accidentally overwriting an important file would probably make you pull your head off. The risk of doing so is smaller if you use the -i option ("interactive") with cp. The following does the same as the above, but if file2 exists, you'll be prompted before overwriting:

$ cp -i file file2
cp: overwrite `file2'? n
$

So it's a good idea to use the -i option whenever you're dealing with important files you don't want to lose!

If you want to copy file into directory dir1:
$ cp file dir1

The following would do the same as the above, copy file into dir1, but under a different name:
$ cp file dir1/file2

You can also copy multiple files into one directory with a single command:
$ cp file1 file2 file3 dir1

If you want to copy all files to dir2 you can use this command:

$ cp *.* dir2

This command will copy only .txt files to dir2:

$ cp *.txt dir2

Note that if the last argument isn't a directory name, you'll get an error message complaining about it.

Filed under: Linux SA Continue reading