Linux

How to overwrite existing files when use wget?

How to overwrite existing files when use wget?

It seems that there is no way to force overwriting every files when downloading files using wget. However, use -N option can surely force downloading and overwriting newer files.
Posted by Enod at 11:19 AM

2 comments:

Advait said…

if you are using gnu version of wget try wget -r. also check this url:http://www.delorie.com/gnu/docs/wget/wget_7.html

This worked for me on linux and solaris More >

Delete / Remove a Directory Linux Command

$ rmdir /tmp/docs
If directory is not empty you will get an error:
$ rmdir letters
Output:

rmdir: letters: Directory not empty

You can change directory to find out files:
$ cd letters
$ ls More >

How To scp, ssh and rsync without prompting for password

How To scp, ssh and rsync without prompting for password

Whenever you need to use scp to copy files, it asks for passwords. Same with rsync as it (by default) uses ssh as well. Usually scp and rsync commands are used to transfer or backup files between known hosts or by the same user on both the hosts. It can get really annoying the password is asked every time. I even had the idea of writing an expect script to provide the password. Of course, I didn’t. Instead I browsed for a solution and found it after quite some time. There are already a couple of links out there which talk about it. I am adding to it… More >

Rsync Examples Scripts

http://www.mikerubel.org/computers/rsync_snapshots/

https://calomel.org/rsync_tips.html

http://rootprompt.org/article.php3?article=8976

http://www.comentum.com/rsync.html

How to Create a First Shell Script

How to Create a First Shell Script

Shell scripts are short programs that are written in a shell programming language and interpreted by a shell process. They are extremely useful for automating tasks on Linux and other Unix-like operating systems.

A shell is a program that provides the traditional, text-only user interface for Unix-like operating systems. Its primary function is to read commands (i.e., instructions) that are typed into a console (i.e., an all-text display mode) or terminal window (i.e., all-text mode window) and then execute (i.e., run) them. The default shell on Linux is the very commonly used and highly versatile bash.

A programming language is a precise, artificial language that is used to write computer programs, which are sets of instructions that can be automatically translated (i.e., interpreted or compiled) into a form (i.e., machine language) that is directly understandable by a computer’s central processing unit (CPU).

A feature of bash and other shells used on Unix-like operating systems is that each contains a built-in programming language, referred to as a shell programming language or shell scripting language, which is used to create shell scripts. Among the advantages of using shell scripts are that they can be very easy to create and that a large number are already available in books and on the Internet for use with or without modification for a wide variety of tasks. Shell scripts are also employed extensively in the default installations of Unix-like operating systems. More >

VMware images

http://www.thoughtpolice.co.uk/vmware/

VMware lets you run another computer in your computer. Try out another operating system, test a different platform, preview a new distro. Hopefully this page of VMware images, or “Virtual Appliances” is useful. More >

Linux Backup Configuration Tutorials

Computers crash, disks become corrupt, data is lost, security is compromised. Today, computers are pretty reliable and it is rare to lose data but it can happen and usually when it is most inconvenient! Important work should always be backed up. More >