Page 1 of 1
Forum

Welcome to the Tweaking4All community forums!
When participating, please keep the Forum Rules in mind!

Topics for particular software or systems: Start your topic link with the name of the application or system.
For example “MacOS X – Your question“, or “MS Word – Your Tip or Trick“.

Please note that switching to another language when reading a post will not bring you to the same post, in Dutch, as there is no translation for that post!



How to determine wh...
 
Share:
Notifications
Clear all

[Solved] How to determine what Linux version I have and if it's 64 bit or not ...

2 Posts
1 Users
0 Reactions
1,755 Views
 Hans
(@hans)
Famed Member Admin
Joined: 12 years ago
Posts: 2859
Topic starter  

I was trying to figure out what Linux version I was using and I noticed that Linux could use uniformity improvements. 

Anyhow, a few tricks:

cat /etc/*-release

This could show the version of your OS, you can expect an output like:

CentOS release 5.6 (Final)

To determine the kernel version:

uname -r

This displays something like:

2.6.18

Is my system 64 bits? Try this:

uname -m

Which can produce something like this (in this example: an Intel x86, 64 bit system):

x86_64

Anyhow .. hope this is useful to someone out there .


   
ReplyQuote
 Hans
(@hans)
Famed Member Admin
Joined: 12 years ago
Posts: 2859
Topic starter  

For those working with Ubuntu, you can also try:

file /sbin/init

Which could give you something like this:

/sbin/init: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.24, BuildID[sha1]=0x07075fcb55b05aeb6286efabba63534fa6ecd213, stripped


   
ReplyQuote
Share: