sylvaine: Dark-haired person with black eyes & white pupils. (Default)
Sylv ([personal profile] sylvaine) wrote in [community profile] linux4all2012-01-05 09:07 pm

clearing disk space in CLI?

Whilst trying to get my GUI back, I got the error message "Keyboard initialisation failed. This could be a missing or incorrect setup of xkeyboard-config.", which google tells me means I need to free up disk space.

As far as I know, I need to use the rm command to do this, but how do I figure out which files to delete without my GUI? I'm deathly afraid that I'll delete something I need.

(Please bear in mind that I'm an utter noob when it comes to Linux.)
pixel: (supernatural: sam reading)

[personal profile] pixel 2012-01-05 08:52 pm (UTC)(link)
You can pretty safely delete things (like music or pictures) in your home directory or directories inside your home directory, I wouldn't recommend deleting things not in your home directory, that is where you should land when you log into the cli. It'll be something like: /home/username

pwd : print working (current) directory
cd Documents : change directory to Documents
cd .. : go 'up' a directory
ls : list contents of current directory, to find files
rm file.txt : delete file

Once you've got some room to get the gui booted, one thing I've done that clears up some space is removing old kernels, google it for your distro and find a pile of instructions :)