Ubuntu – xsession-errors is huge in size

Ubuntu – xsession-errors is huge in size

Problems 

I – Graphics mode won’t work
II – Can’t install any other software as there is no space left (space used by xsession-errors file)

Solution

Steps to follow
Open Terminal then from root prompt
Type – ls -alh (It will show up directory contents in human readable format)

rm .xsession-errors (this command will delete xsession-errors file)
touch .xsession-errors (Recreate an empty file)
sudo chattr -i .xsession-errors (Set the immutable attribute, which make the file protected against writing and deleting)

sudo shutdoen -r now (To reboot the machine)

You may also like: Install and configure Jasper Report Server on Ubuntu Server

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.