Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I want to know which commands will give me information about (1) Kernel Version (2) Distribution version no (3) All partition size of HDD in Terminal (via command line?

share|improve this question

3 Answers

up vote 10 down vote accepted

uname -a for kernel version.

lsb_release -afor ubuntu version

sudo fdisk -l for partition info.

share|improve this answer

Kernel Version

cat /proc/version             # detail about for the kernel image version

Distribution Version

lsb_release -a

Partition Sizes

cat /proc/partitions          # for basic sizes
sudo fdisk -l /dev/<device>   # eg /dev/sda
share|improve this answer

Open terminal. Just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command below.

sudo fdisk -l; uname -a; lsb_release -a
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.