uname - short for unix name, print system information. Note: use lsb_release for more info about the distribution.
Options
| Option |
Description |
| -a |
print all information |
| -s |
print the kernel name |
| -n |
print network node hostname |
| -f |
print kernel release |
| -v |
print kernel version |
| -m |
print machine hardware name. same as arch command |
| -p |
print processor type or “unknown” |
| -i |
print the hardware platform or “unknown” |
| -o |
print the OS |
Examples
print kernel name
sample output
print hostname
this is the same as hostname command
print machien hardware name
This is the same as arch command.
sample output
print processor name
sample output
print os name
sample output
Reference