Linux commands

Posted on 13 March 2012

This is a linux command line reference for common operations. Examples marked with • are valid/safe to paste without modification into a terminal, so you may want to keep a terminal window open while reading this so you can cut & paste. All these commands have been tested both on Fedora and Ubuntu. Command Description [...]

Displaying ls in color and howto change a color in CentOS, Fedora, and Redhat.

Posted on 01 March 2012

Display ls in color Open file in bash vi ~/.bashrc Add following line to .bashrc alias ls=”ls -al –color” NOTE: log off and login (or run bash) to see the result Replace a colors By default CentOS/RHEL show directorys in ls listing in dark green. With dark color it’s difficult to read directory names. cp [...]

Wanna see version of distributive was installed?

Posted on 29 February 2012

Often question: how to check the version of centos? Here solution to check what version of CentOS or any other distributive was installed: cat /etc/*release* or specific for centos/redhat: cat /etc/redhat-release

See more articles in the archive