Identifying Your Linux Kernel with "uname"

5 Nov, 2009

Linux kernel booting
When using a Linux dedicated server, it can be very helpful to know exactly what distribution and kernel version you are running. While there are a few ways to accomplish this, using the command “uname” is the easiest. To identify the kernel type just enter: uname with no flags.

To find out the kernel release, enter:

uname -r

To find out everything you can possibly know about your kernel with uname, enter:

uname -a
It should print something like:

Linux hostname 2.6.27-8-eeepc #1 SMP Sun Nov 16 12:02:12 MST 2008 i686 GNU/Linux

To find out more about “uname”, type “man uname”.

Photo Source: Flickr

(0) Comment Categories : VPS & Dedicated, Web Hosting, Web servers
Tag: , , , ,

Linux Dedicated Server Logs

16 Oct, 2009

dmesg server log
Question: Where do I view logs on my dedicated server?

Answer: Most of the logs on a Linux operating system are kept in the /var/log directory. There you will find logs for the main system, kernel, network, hardware, Apache, MySQL, and often times other third-party applications that you might happen to install.

There are several ways to view the logs. For example, if you want to view the “messages” log:

tail -f /var/log/messages
This will show you the last few lines of the log (i.e. the latest information).

less /var/log/messages

will give you a scrollable view of the log, controlled with the arrow keyes.

more -f /var/log/messages

will give you a paged view. Pressing enter or the space bar will show more of the text, which is all loaded at once.

(0) Comment Categories : VPS & Dedicated, Web Hosting, Web servers
Tag: , , , , , ,