Friday, September 26, 2008

Command to see linux version

I had always used
uname -a
to see which linux a computer in running but here are some better alternatives. They give a lot more useful info.


To get full info on the version of Linux on your system type,

lsb_release -a

The Linux Standard Base, or LSB, is a joint project by several Linux distributions under the organizational structure of the Linux Foundation (merger of the Free Standards Group and the Open Source Development Labs) to standardize the internal structure of Linux-based operating systems

Other commands having same effect
cat /etc/redhat-version
cat /etc/issue
cat /etc/lsb-release

No comments:

Print chess board in command line

The following bash one-liner will print a chess board in a terminal (the script works for the shells bash and ksh only) for (( i = 1; i ...