@staticmethod
def escape_command(command, quote='"'):
    """ Escape the command.

        The quotes X in the command will be replaced by "\\X".

        Arguments:
            quote (str): The quote to escape.

        Returns:
            str: Escaped command.
        """
    escaped_quote = '\\{}'.format(quote)
    return command.replace(quote, escaped_quote)
