Here, we will see how to find Kernel version, Ubuntu release information and disk partition information in Ubuntu.
uname -a : print certain system information. Here's the output.
Linux ambarish-ubuntu 4.2.0-34-generic #39~14.04.1-Ubuntu SMP Fri Mar 11 11:38:02 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
Description.
Print certain system information. With no OPTION, same as -s.
-a, --all
print all information, in the following order, except omit -p and -i if unknown:
-s, --kernel-name
print the kernel name
-n, --nodename
print the network node hostname
-r, --kernel-release
print the kernel release
-v, --kernel-version
print the kernel version
-m, --machine
print the machine hardware name
-p, --processor
print the processor type or "unknown"
-i, --hardware-platform
print the hardware platform or "unknown"
-o, --operating-system
print the operating system
lsb_release : to print distribution-specific information.
Description.
The lsb_release command provides certain LSB (Linux Standard Base) and distribution-specific information.
If no options are given, the -v option is assumed.
-v, --version
Show the version of the LSB against which your current installation is compliant. The version is expressed as a colon separated list of LSB module descriptions.
-i, --id
Display the distributor's ID.
-d, --description
Display a description of the currently installed distribution.
-r, --release
Display the release number of the currently installed distribution.
-c, --codename
Display the code name of the currently installed distribution.
-a, --all
Display all of the above information.
-s, --short
Use the short output format for any information displayed. This format omits the leading header(s).
-h, --help
Show summary of options.
-c, --codename
Display the code name of the currently installed distribution.
-a, --all
Display all of the above information.
-s, --short
Use the short output format for any information displayed. This format omits the leading header(s).
-h, --help
Show summary of options.
-e, --exclude list
Exclude the devices specified by a comma-separated list of major device numbers. Note that RAM disks (major=1) are excluded by default.
-f, --fs
Output info about filesystems.
-h, --help
Print a help text and exit.
-i, --ascii
Use ASCII characters for tree formatting.
-m, --perms
Output info about device owner, group and mode.
-l, --list
Use the list output format.
-n, --noheadings
Do not print a header line.
-o, --output list
Specify which output columns to print. Use --help to get a list of all supported columns.
-P, --pairs
Use key="value" output format.
-r, --raw
Use the raw output format.
lsblk -o NAME,SIZE : to display disk partition in a human readable format.
In case, you want to print all the information Kernel version, release info and disk partition info with a single command, use the below command:
sudo fdisk -l; uname -a; lsb_release -a
If you want to add something, please mention that in comments.
0 comments:
Post a Comment