What is the runtime performance cost of a Docker container?

An excellent 2014 IBM research paper “An Updated Performance Comparison of Virtual Machines and Linux Containers” by Felter et al. provides a comparison between bare metal, KVM, and Docker containers. The general result is: Docker is nearly identical to native performance and faster than KVM in every category. The exception to this is Docker’s NAT — if you … Read more

How do I know the script file name in a Bash script?

me=`basename “$0″` For reading through a symlink1, which is usually not what you want (you usually don’t want to confuse the user this way), try: me=”$(basename “$(test -L “$0” && readlink “$0” || echo “$0″)”)” IMO, that’ll produce confusing output. “I ran foo.sh, but it’s saying I’m running bar.sh!? Must be a bug!” Besides, one … Read more

How to download a file from server using SSH? [closed]

In your terminal, type: scp your_username@remotehost.edu:foobar.txt /local/dir replacing the username, host, remote filename, and local directory as appropriate. If you want to access EC2 (or other service that requires authenticating with a private key), use the -i option: scp -i key_file.pem your_username@remotehost.edu:/remote/dir/foobar.txt /local/dir From: http://www.hypexr.org/linux_scp_help.php

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)