Copy files between Linux machines

The rsync command allows you to copy files using SSH connection, between your workstation and another Linux machine. You have to be logged into one of the machines, this command cannot copy files between two remote machines. To copy a file from your local machine to a remote server rsync -avz -e “ssh -i SSH_KEY_FILE -o […]

Using tmux terminal multiplexer

The tmux terminal multiplexer allows us to open multiple terminal windows in the same SSH session and continue the command execution even when we log out of the SSH session. This way we can execute long-running copy commands overnight without keeping the SSH session open. Install tmux On CentOS family Linux yum install tmux To start tmux […]

Copy files between Windows and Linux computers

There are many tools to copy files between Windows and Linux computers, I have found this method the simplest. It does not require any software installation on the Windows machine, and only one package installation on the Linux machine. Share a folder on the Windows machine Share a folder on the Windows machine and allow […]

delimited by end-of-file (wanted `EOF’)

When you create a file in a script and use an end of file delimiter, if … cat <<EOF> $chef_dir/attrib.json $json EOF fi and you indent the word EOF to look nicer, you will get the error message warning: here-document at line … delimited by end-of-file (wanted `EOF’) STDERR> …: line …: syntax error: unexpected end of file […]

org.apache.jasper.JasperException: java.lang.IllegalStateException: No output folder

This error can happen on Linux and Windows, and the cause could be the same. On Windows Server 2012R2 I opened a command prompt. To be able to delete a directory from the Tomcat webapps folder, I have issued the shutdown command. When I started the server with the startup command, and navigated to my local […]

How to create a Docker repository in Artifactory

Artifactory supports multiple repository types, Docker is one of them. To create a new Docker repository in Artifactory Set the Custom Base URL of the Artifactory server From the Artifactory documentation at “When using an HTTP proxy, the links produced by Artifactory, as well as certain redirects contain the wrong port and use the http instead […]

`pwd’: No such file or directory – getcwd (Errno::ENOENT)

When you rename a subdirectory under the directory where your Linux or MacOS terminal is open you may get the error message /opt/chefdk/embedded/lib/ruby/gems/2.4.0/gems/chef-13.4.19/lib/chef/knife/cookbook_download.rb:45:in `pwd’: No such file or directory – getcwd (Errno::ENOENT) You need to refresh the directory cache of the terminal. Go one level higher cd .. Go back to the directory cd MY_DIRECTORY […]

Migrate a WordPress web site to DreamHost

DreamHost is one of the recommended WordPress hosting providers. The DreamHost website has an extensive knowledge base, but the necessary steps to move your live site from another provider are scattered over multiple pages at These steps will guide you through the streamlined migration process. At your old provider Create a site and database […]