Enable Colors With ls

In some operating systems listing directory content with ls won’t shown with colors.

To view directory listing with colors you need to add following line in  ~/.bashrc

Just open ~/.bashrc with any editor and then add alias ls=’ls –color’ in it and exit form editor.

Now just type ls command in your terminal or konsole, you can view the directory listing with colors.

-Sany

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s