I have installed fresh magento 2.2 which is working fine but command lines are not working. I am using ubuntu.
Getting strange error:
PHP Fatal error: Uncaught Error: Class 'DOMDocument' not found in /opt/lampp/htdocs/magento2/vendor/magento/framework/Config/Dom.php:384
Did search but not found any solution. As magento 2.2 is successfully installed so it fulfilled all required settings which magento 2.2 required. What could be the issue?
Any help would be appreciated.