Monday, November 25, 2013

Ubuntu 13.10 crashes after Suspend

Firstly, make sure you have installed the proprietary drivers for your graphics card. For installing Nvidia drivers for Ubuntu, check out this post. If you continue to have problems even after this, then follow these steps.

sudo gedit /etc/default/grub

Find the line :


and replace it with :

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash pcie_aspm=force"

And run the command :

sudo update-grub

Tuesday, November 19, 2013

Creating multiple directories in Linux

For creating multiple directories, you can either specify the names using commas or you can specify a range.

mkdir file{1,2,3}


mkdir file{1..5}

Tuesday, November 12, 2013

Can't detect Android phone on Ubuntu 12.10

Apparently, this is a common problem in Ubuntu 12.04 and Ubuntu 12.10.

sudo add-apt-repository ppa:langdalepl/gvfs-mtp
sudo apt-get update

After running these commands, restart the system. After restart, your Android phone internal data storage will be listed in the devices automatically.

Saturday, November 2, 2013

Hidden Directories in Linux

In Linux, directory (folder) names starting with a '.' are not visible to users. To view these files, you need to use the command :

ls -as

This command displays all the directories within the current directory. If you want to rename the directory. Suppose the name of the directory is direc. Then :

mv -i .direc direc

You will find that the hidden directory is now visible.