+5 votes
11 views
UNAME Linux Command | What is it for? Example

in Linux/Unix by (546k points)
reopened | 11 views

1 Answer

+3 votes
Best answer

uname command in Linux

To stay up to date, remember to subscribe to our YouTube channel!
SUBSCRIBE ON YOUTUBE

 

Linux operating systems have hundreds of functional commands that help us perform various tasks in the system, both at the administrative and support and information levels. One of these commands is uname.
Uname (UNIX name) is a command that helps us display system information, whether it be a specific parameter or a group of elements. We do not require administrator permissions to use it..

 

Syntax
Its mode of use will be carried out with the following syntax:
 join me [OPTION]... 

 

Options
In the option field we can use any of the following parameters:

 

  • -a, --all: View all system information
  • -s, --kernel-name: generates the kernel name
  • -n, --nodename: allows us to see the host name of the current network node
  • -r, --kernel-release: display the kernel version in detail
  • -v, --kernel-version: shows us the general version of the kernel
  • -m, --machine: print the hardware name of the machine
  • -p, --processor: shows type of processor used
  • -i, --hardware-platform: print the hardware platform used in Linux
  • -o, --operating-system: allows you to see the operating system used
  • --version: generate the used version of uname
  • --help: we access the command help

 


 

Now let's look at some examples of how this command is key to access details.

 

uname command in Linux

 

 

Step 1

We can directly execute “uname” without any parameters, we will see the system name:

 

image

 

Step 2

Now, if we need or want to see the current version of uname, we are going to execute the following command:
 join me –version 
image

 

Step 3

To display all the system information in the console, we will use the following command:
 join me -a 
image

 

Step 4

We see a series of data, some known, others not so much, the following is generated in the result:

 

  • Linux: refers to the operating system used
  • Technological: is the network name of the computer or the host name where the uname command was used
  • 6.2.0-34-generic: it is the version of the system kernel where we find details such as the version number, the patch level and its generic identifier
  • #34~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Sep 7 13:12:03 UTC 2: this is extra data related to the kernel, we see the build number, the release date and, incidentally, whether or not it is a kernel dynamic
  • x86_64: it is the architecture of the computer, if we see x86_64 it indicates a 64-bit computer
  • x86_64 (second line): is the type of CPU or processor used
  • x86_64 (third line): indicates the Linux hardware platform
  • GNU/Linux: refers to the system where the Linux kernel runs

 

Step 5

To print the kernel name, we will run the command:
 one month 
image

 

Step 6

If we want to see the current version of the kernel, we execute:
 uname -v 
image

 

Step 7

We already mentioned the generated data that they refer to in the core. It is only possible to see the kernel version number, to do this we execute the following command:
 uname -r 
image

 

Step 8

Another option to use in uname is to see the network host name of the computer. Remember that this host name indicates the unique name of that computer on the network. Linux will use this host name to communicate with other nodes on the network. and connected devices, to see this information we execute:
 join me -n 
image

 

Step 9

Another vital parameter of uname is to know the architecture of the equipment, this allows us to define whether it is a 32 or 64-bit system, this helps the installation of new applications, to know this we execute the following: In this case it is of a 64-bit system.
 uname -m 
image

 

Step 10

To know the operating system we are using, we execute the following:
 join me -o 
image

 

Step 11

An advantage of using uname is that it is possible to use several parameters simultaneously without problem, the kernel version and its release date will be possible with the following command:
 uname -r -v 
image

 

Step 12

We obtain this same result by joining the parameters:
 uname -rv 
image

 

Step 13

We can know the name of the kernel, the architecture of the computer as well as the release date of the kernel by executing:
 uname -srm 
image

 

Step 14

For more complete details we can run:
 join me -snrvmo 
image

 

We see how uname is a functional and integral command to access many key details of Linux..

 


by (3.4m points)
edited

Related questions

+3 votes
1 answer
+5 votes
1 answer
asked Nov 2, 2022 in Linux/Unix by backtothefuture (546k points) | 44 views
+3 votes
1 answer
+4 votes
1 answer
asked Oct 4, 2019 in Linux / Unix by backtothefuture (546k points) | 350 views
+3 votes
1 answer
asked Sep 13 in Linux/Unix by backtothefuture (546k points) | 18 views
Sponsored articles cost $40 per post. You can contact us via Feedback

Most popular questions within the last 30 days

  1. Why your smart TV doesn't connect to the Internet and how to fix it
  2. How to Download Project Playtime for PC and Android
  3. Limit your WhatsApp responses to 200 characters in Android notifications
  4. How to create or edit automatic posts (e.g. welcome) in a Facebook group
  5. Can't access this website Windows 10
  6. Can a virus get into my PC while uninstalling a program?
  7. WiFi does not appear on my Laptop
  8. How to Disable Bing in the Start Menu of Windows 11 or Windows 10
  9. Uninstall AutoCAD Completely
  10. Repair Startup Windows 11 CMD
  11. How to save space on the Taskbar
  12. It is not possible to connect to this W11 Network
  13. Install GPT4ALL Ubuntu
  14. Speed ​​up Google Chrome PC downloads without programs
  15. How to IMMEDIATELY end an audio chat on WhatsApp
  16. Install Steam on PC
  17. Attacking nearby cell phones and PCs with Bluetooth pairing message SPAM and how to protect yourself
  18. I can't Delete Files or Folders from my PC
  19. Print an Image on multiple PDF sheets
  20. 3 solutions to the rounded image (fisheye) on a WebCam
  21. Disable Automatic Restart Windows 11 Updates
  22. How to recover deleted files with Power Data Recovery?
  23. I can't Search in the Taskbar
  24. Taskbar Not Loading
  25. Steam Cloud Error Solution
  26. How to make a survey on WhatsApp?
  27. Eurozone merchants could be forced to accept the digital euro as legal tender
  28. Record your PC screen like a pro: auto zoom wherever the cursor goes (OBS)
  29. View, search and open Windows CMD Files
  30. How to make the most of the latest technology trends in Latin America
10,546 questions
10,675 answers
510 comments
3 users