{"id":3662,"date":"2023-01-15T04:10:32","date_gmt":"2023-01-15T04:10:32","guid":{"rendered":"https:\/\/linuxsimply.com\/?p=3662"},"modified":"2023-08-31T07:08:38","modified_gmt":"2023-08-31T07:08:38","slug":"id-command-in-linux","status":"publish","type":"post","link":"https:\/\/linuxsimply.com\/id-command-in-linux\/","title":{"rendered":"The \u201cid\u201d Command in Linux [7+ Practical Examples]"},"content":{"rendered":"<p style=\"text-align: justify;\">The basic use of the <strong>id<\/strong> command in <strong>Linux<\/strong> includes finding out information about users\u2019 IDs and names. Advanced options include printing the security context of a process. In this article, you will be able to learn about the basic usage of the <strong>id<\/strong> command with practical examples.<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 eztoc-toggle-hide-by-default' ><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/linuxsimply.com\/id-command-in-linux\/#A_Description\" >A. Description<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/linuxsimply.com\/id-command-in-linux\/#B_Syntax\" >B. Syntax<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/linuxsimply.com\/id-command-in-linux\/#C_Options\" >C. Options<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/linuxsimply.com\/id-command-in-linux\/#Practical_Examples_of_the_%E2%80%9Cid%E2%80%9D_Command_in_Linux\" >Practical Examples of the \u201cid\u201d Command in Linux<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/linuxsimply.com\/id-command-in-linux\/#Example_1_Displaying_Current_User_Information_Using_the_%E2%80%9Cid%E2%80%9D_Command_in_Linux\" >Example 1: Displaying Current User Information Using the \u201cid\u201d Command in Linux<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/linuxsimply.com\/id-command-in-linux\/#Example_2_Finding_a_Specific_Users_Effective_ID_Using_the_%E2%80%9Cid%E2%80%9D_Command_in_Linux\" >Example 2: Finding a Specific User\u2019s Effective ID Using the \u201cid\u201d Command in Linux<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/linuxsimply.com\/id-command-in-linux\/#Example_3_Finding_a_Specific_Users_Effective_GID_Using_the_%E2%80%9Cid%E2%80%9D_Command_in_Linux\" >Example 3: Finding a Specific User\u2019s Effective GID Using the \u201cid\u201d Command in Linux<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/linuxsimply.com\/id-command-in-linux\/#Example_4_Finding_Real_ID_Using_the_%E2%80%9Cid%E2%80%9D_Command_in_Linux\" >Example 4: Finding Real ID Using the \u201cid\u201d Command in Linux<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/linuxsimply.com\/id-command-in-linux\/#Case_A_Displaying_a_Specific_Uses_Real_ID\" >Case A: Displaying a Specific Use\u2019s Real ID<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/linuxsimply.com\/id-command-in-linux\/#Case_B_Displaying_a_Specific_Groups_Real_ID\" >Case B: Displaying a Specific Group\u2019s Real ID<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/linuxsimply.com\/id-command-in-linux\/#Example_5_Displaying_All_GIDs_Belonging_to_the_Current_User_Using_the_%E2%80%9Cid%E2%80%9D_Command_in_Linux\" >Example 5: Displaying All GIDs Belonging to the Current User Using the \u201cid\u201d Command in Linux<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/linuxsimply.com\/id-command-in-linux\/#Example_6_Displaying_Only_Names_Using_the_%E2%80%9Cid%E2%80%9D_Command_in_Linux\" >Example 6: Displaying Only Names Using the \u201cid\u201d Command in Linux<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/linuxsimply.com\/id-command-in-linux\/#Case_A_Displaying_Only_Current_Username\" >Case A: Displaying Only Current Username<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/linuxsimply.com\/id-command-in-linux\/#Case_B_Displaying_Current_Group_Name\" >Case B: Displaying Current Group Name<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-15\" href=\"https:\/\/linuxsimply.com\/id-command-in-linux\/#Case_C_Displaying_All_Group_Names\" >Case C: Displaying All Group Names<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-16\" href=\"https:\/\/linuxsimply.com\/id-command-in-linux\/#Example_7_Delimiterizing_Entries_with_Null_Character_Using_the_%E2%80%9Cid%E2%80%9D_Command_in_Linux\" >Example 7: Delimiterizing Entries with Null Character Using the \u201cid\u201d Command in Linux<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-17\" href=\"https:\/\/linuxsimply.com\/id-command-in-linux\/#Conclusion\" >Conclusion<\/a><\/li><\/ul><\/nav><\/div>\n<h3><span class=\"ez-toc-section\" id=\"A_Description\"><\/span>A. Description<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>The <strong>id<\/strong> command in<strong> Linux<\/strong> displays current user and group information according to the application of the command. You can modify the usage by passing a specific <strong>username <\/strong>or <strong>options<\/strong>.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"B_Syntax\"><\/span>B. Syntax<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>The syntax of the <strong>id<\/strong> command is described below. It contains <strong>option\/s<\/strong> or <strong>username<\/strong> after the command itself.<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">id [OPTION]\u2026 [USER]<\/code><\/pre>\n<div class=\"su-note\"  style=\"border-color:#cedfe2;\"><div class=\"su-note-inner su-u-clearfix su-u-trim\" style=\"background-color:#E8F9FC;border-color:#ffffff;color:#333333;\"><strong>Note: <\/strong>In the above syntax<strong> OPTION<\/strong> enclosed by a square bracket and followed by 3 dots represents that multiple options can be utilized simultaneously.<\/div><\/div>\n<h3><span class=\"ez-toc-section\" id=\"C_Options\"><\/span>C. Options<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">The <strong>id<\/strong> command in<strong> Linux<\/strong> takes a few numbers of <strong>options<\/strong>. Here I am describing the most useful <strong>options<\/strong>. You can find more on the <strong>man page<\/strong> by typing the following command.<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">man id<\/code><\/pre>\n<p><span style=\"color: #800080;\"><strong>Useful Options<\/strong><\/span><\/p>\n<div class=\"su-list\" style=\"margin-left:20px\">\n<ul>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>-g\/&#8211;group: <\/strong>Display only the effective group ID.<\/li>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>-G\/&#8211;groups: <\/strong>Display all the group IDs of the user.<\/li>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>-r\/&#8211;real: <\/strong>Display real IDs.<\/li>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>-n\/&#8211;name: <\/strong>Display names.<\/li>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>-u\/&#8211;user: <\/strong>Display only the effective user ID.<\/li>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>-z\/&#8211;zero: <\/strong>Delimit entries with the NULL character.<\/li>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>-Z\/&#8211;context: <\/strong>Display the security context of the process.<\/li>\n<\/ul>\n<\/div>\n<div class=\"su-note\"  style=\"border-color:#cedfe2;\"><div class=\"su-note-inner su-u-clearfix su-u-trim\" style=\"background-color:#E8F9FC;border-color:#ffffff;color:#333333;\"><strong>Note:<\/strong> The <strong>options<\/strong> in <strong>Linux<\/strong> <a href=\"https:\/\/linuxsimply.com\/cli-in-linux\/\" target=\"_blank\" rel=\"noopener\"><strong>CLI (Command Line Interface)<\/strong><\/a> are all <strong>case-sensitive<\/strong>, So be cautious while using them.<\/div><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Practical_Examples_of_the_%E2%80%9Cid%E2%80%9D_Command_in_Linux\"><\/span>Practical Examples of the \u201cid\u201d Command in Linux<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>There are various uses of the <strong>id<\/strong> command in <strong>Linux<\/strong>. You can view user information as well as security contexts. Here are some practical examples of the <strong>id<\/strong> command in <strong>Linux<\/strong> for your frequent use.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Example_1_Displaying_Current_User_Information_Using_the_%E2%80%9Cid%E2%80%9D_Command_in_Linux\"><\/span>Example 1: Displaying Current User Information Using the \u201cid\u201d Command in Linux<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>You can use the <strong>id<\/strong> command without any argument. It will print out the <strong>UID<\/strong> and <strong>GID<\/strong>s of the current user along with names. In this example, I will show you the <strong>UID<\/strong> and <strong>GID<\/strong>s of my active user \u201c<strong>anonnya<\/strong>\u201d. To do the same you can follow the steps below.<\/p>\n<p><span style=\"color: #800080;\"><strong>Steps to Follow &gt;<br \/>\n<\/strong><\/span><\/p>\n<p>\u278a At first open the <strong>Ubuntu Terminal<\/strong>.<\/p>\n<p>\u278b Type the following command in the command prompt:<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">id<\/code><\/pre>\n<p>\u278c Now, press the <strong>ENTER<\/strong> button.<\/p>\n<p><span style=\"color: #0000ff;\"><strong><span style=\"color: #800080;\">Output &gt;<\/span> <\/strong><\/span><\/p>\n<p>In this image, you can see that I have printed out the active user\u2019s information (<strong>UID<\/strong> and <strong>GID<\/strong>) using the <strong>id<\/strong> command in <strong>Linux<\/strong>.<img fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter size-full wp-image-3670\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-1.png\" alt=\"Showing active user\u2019s information (UID and GID) using the id command in Linux\" width=\"825\" height=\"64\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-1.png 825w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-1-300x23.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-1-1024x79.png 1024w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-1-761x59.png 761w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-1-1536x119.png 1536w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-1-2048x159.png 2048w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-1-1934x150.png 1934w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-1-100x8.png 100w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-1-788x61.png 788w\" sizes=\"(max-width: 825px) 100vw, 825px\" \/><\/p>\n<hr \/>\n<p><span style=\"color: #000080; font-size: 18pt;\"><strong>Similar Readings<\/strong><\/span><\/p>\n<ul>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/time-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201ctime\u201d Command in Linux [4 Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/tty-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201ctty\u201d Command in Linux [4 Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/uptime-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201cuptime\u201d Command in Linux [5 Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/vmstat-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201cvmstat\u201d Command in Linux [6 Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/uname-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201cuname\u201d Command in Linux [11 Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/apt-get-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201capt-get\u201d Command in Linux [10 Practical Examples]<\/a><\/strong><\/li>\n<\/ul>\n<hr \/>\n<h3><span class=\"ez-toc-section\" id=\"Example_2_Finding_a_Specific_Users_Effective_ID_Using_the_%E2%80%9Cid%E2%80%9D_Command_in_Linux\"><\/span>Example 2: Finding a Specific User\u2019s Effective ID Using the \u201cid\u201d Command in Linux<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Using the <strong>id<\/strong> command in <strong>Linux<\/strong> with the option <strong>-u<\/strong> you can print out a user&#8217;s effective <strong>UID<\/strong>. In this example, I will display the effective <strong>UID<\/strong> of the current user \u201c<strong>anonnya<\/strong>\u201d. You can do the same by following the steps below.<\/p>\n<p><span style=\"color: #800080;\"><strong>Steps to Follow &gt;<br \/>\n<\/strong><\/span><\/p>\n<p>\u278a At first, launch the <strong>Ubuntu Terminal<\/strong>.<\/p>\n<p>\u278b Type the following command in the command prompt:<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">id -u anonnya<\/code><\/pre>\n<p>\u278c Press the <strong>ENTER<\/strong> button.<\/p>\n<p><span style=\"color: #0000ff;\"><strong><span style=\"color: #800080;\">Output &gt;<\/span> <\/strong><\/span><\/p>\n<p>In the following image, you can see that I have printed the effective <strong>UID <\/strong>of the user \u201c<strong>anonnya<\/strong>\u201d.<img decoding=\"async\" class=\"aligncenter size-full wp-image-3671\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-2.png\" alt=\"Dispalying specific user ID using the id command in Linux\" width=\"420\" height=\"56\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-2.png 420w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-2-300x40.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-2-1024x137.png 1024w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-2-765x102.png 765w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-2-1536x205.png 1536w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-2-2048x273.png 2048w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-2-1125x150.png 1125w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-2-100x13.png 100w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-2-788x105.png 788w\" sizes=\"(max-width: 420px) 100vw, 420px\" \/><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Example_3_Finding_a_Specific_Users_Effective_GID_Using_the_%E2%80%9Cid%E2%80%9D_Command_in_Linux\"><\/span>Example 3: Finding a Specific User\u2019s Effective GID Using the \u201cid\u201d Command in Linux<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Using the <strong>id<\/strong> command\u00a0with the option <strong>-g<\/strong> you can print out a user&#8217;s effective <strong>GID<\/strong>. In this example, I will display the effective <strong>GID<\/strong> of the current user group \u201c<strong>anonnya<\/strong>\u201d. You can do so by following the steps below.<\/p>\n<p><span style=\"color: #800080;\"><strong>Steps to Follow &gt;<br \/>\n<\/strong><\/span><\/p>\n<p>\u278a At first go to the <strong>Ubuntu Terminal<\/strong>.<\/p>\n<p>\u278b Type the following command in the command prompt:<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">id -g anonnya<\/code><\/pre>\n<p>\u278c Hit the <strong>ENTER<\/strong> button.<\/p>\n<p><span style=\"color: #0000ff;\"><strong><span style=\"color: #800080;\">Output &gt;<\/span> <\/strong><\/span><\/p>\n<p>In the image below, you can see that I have printed the effective <strong>GID <\/strong>of the group \u201c<strong>anonnya<\/strong>\u201d.<img decoding=\"async\" class=\"aligncenter size-full wp-image-3672\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-3.png\" alt=\"Displaying specific group ID using the id command in Linux.\" width=\"426\" height=\"54\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-3.png 426w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-3-300x38.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-3-1024x130.png 1024w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-3-765x97.png 765w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-3-1536x195.png 1536w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-3-2048x260.png 2048w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-3-1183x150.png 1183w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-3-100x13.png 100w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-3-788x99.png 788w\" sizes=\"(max-width: 426px) 100vw, 426px\" \/><\/p>\n<hr \/>\n<p><span style=\"color: #000080; font-size: 18pt;\"><strong>Similar Readings<\/strong><\/span><\/p>\n<ul>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/free-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201cfree\u201d Command in Linux [8 Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/getent-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201cgetent\u201d Command in Linux [11 Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/groupadd-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201cgroupadd\u201d Command in Linux [7 Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/addgroup-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201caddgroup\u201d Command in Linux [7 Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/groups-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201cgroups\u201d Command in Linux [6 Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/firewall-cmd-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201cfirewall-cmd\u201d Command in Linux [7 Practical Examples]<\/a><\/strong><\/li>\n<\/ul>\n<hr \/>\n<h3><span class=\"ez-toc-section\" id=\"Example_4_Finding_Real_ID_Using_the_%E2%80%9Cid%E2%80%9D_Command_in_Linux\"><\/span>Example 4: Finding Real ID Using the \u201cid\u201d Command in Linux<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>You can find a specific user&#8217;s real <strong>ID <\/strong>using the <strong>id<\/strong> command with the option <strong>-r<\/strong>. You will be able to apply this option for displaying both <strong>user<\/strong> and <strong>group<\/strong> <strong>ID<\/strong>s. Follow the examples below to learn about the different applications.<\/p>\n<h4><span class=\"ez-toc-section\" id=\"Case_A_Displaying_a_Specific_Uses_Real_ID\"><\/span>Case A: Displaying a Specific Use\u2019s Real ID<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>Follow the steps below to print a specific user\u2019s real <strong>ID<\/strong>.<\/p>\n<p><span style=\"color: #800080;\"><strong>Steps to Follow &gt;<br \/>\n<\/strong><\/span><\/p>\n<p>\u278a At first go to the <strong>Ubuntu Terminal<\/strong>.<\/p>\n<p>\u278b Type the following command in the command prompt:<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">id -r -u anonnya<\/code><\/pre>\n<p>\u278c Hit the <strong>ENTER<\/strong> button.<\/p>\n<p><span style=\"color: #0000ff;\"><strong><span style=\"color: #800080;\">Output &gt;<\/span> <\/strong><\/span><\/p>\n<p>In this image, you can see that I have printed the real <strong>UID <\/strong>of the user \u201c<strong>anonnya<\/strong>\u201d.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3673\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-4.png\" alt=\"Displaying users real ID using the id command in Linux. \" width=\"456\" height=\"56\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-4.png 456w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-4-300x37.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-4-1024x126.png 1024w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-4-765x94.png 765w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-4-1536x189.png 1536w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-4-2048x252.png 2048w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-4-1221x150.png 1221w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-4-100x12.png 100w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-4-788x96.png 788w\" sizes=\"(max-width: 456px) 100vw, 456px\" \/><\/p>\n<h4><span class=\"ez-toc-section\" id=\"Case_B_Displaying_a_Specific_Groups_Real_ID\"><\/span>Case B: Displaying a Specific Group\u2019s Real ID<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>Follow the steps below to print a specific group\u2019s real <strong>ID<\/strong>.<\/p>\n<p><span style=\"color: #800080;\"><strong>Steps to Follow &gt;<br \/>\n<\/strong><\/span><\/p>\n<p>\u278a At first go to the <strong>Ubuntu Terminal<\/strong>.<\/p>\n<p>\u278b Type the following command in the command prompt:<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">id -r -g anonnya<\/code><\/pre>\n<p>\u278c Hit the <strong>ENTER<\/strong> button.<\/p>\n<p><span style=\"color: #0000ff;\"><strong><span style=\"color: #800080;\">Output &gt;<\/span> <\/strong><\/span><\/p>\n<p>In this snapshot, you can see that I have printed the real <strong>GID <\/strong>of the group \u201c<strong>anonnya<\/strong>\u201d.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3674\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-5.png\" alt=\"Displaying groups real ID using the id command in Linux.\" width=\"456\" height=\"57\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-5.png 456w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-5-300x38.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-5-1024x128.png 1024w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-5-768x96.png 768w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-5-1536x192.png 1536w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-5-2048x256.png 2048w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-5-1200x150.png 1200w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-5-100x13.png 100w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-5-788x98.png 788w\" sizes=\"(max-width: 456px) 100vw, 456px\" \/><\/p>\n<div class=\"su-note\"  style=\"border-color:#cedfe2;\"><div class=\"su-note-inner su-u-clearfix su-u-trim\" style=\"background-color:#E8F9FC;border-color:#ffffff;color:#333333;\"><strong>Note: <\/strong>While working in <strong>Linux<\/strong> distribution you may temporarily need to use another <strong>ID<\/strong> apart from your current user <strong>ID<\/strong>. For example, sometimes you run commands as the <strong>root<\/strong> user. The root is not a <strong>real ID<\/strong>. In fact, it is an <strong>effective ID<\/strong> that gives you permission to perform changes on your system. On the other hand, the <strong>real ID<\/strong> is the one under which you own the process.<\/div><\/div>\n<h3><span class=\"ez-toc-section\" id=\"Example_5_Displaying_All_GIDs_Belonging_to_the_Current_User_Using_the_%E2%80%9Cid%E2%80%9D_Command_in_Linux\"><\/span>Example 5: Displaying All GIDs Belonging to the Current User Using the \u201cid\u201d Command in Linux<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>You can display all the <strong>group IDs<\/strong> of the current user using the <strong>id<\/strong> command in <strong>Linux<\/strong>. To do so you will have to use option <strong>-G<\/strong>. In this example, I will show you all the <strong>GID<\/strong>s of my active user \u201c<strong>anonnya<\/strong>\u201d. You can follow the steps below to perform a similar task.<\/p>\n<p><span style=\"color: #800080;\"><strong>Steps to Follow &gt;<br \/>\n<\/strong><\/span><\/p>\n<p>\u278a Open the <strong>Ubuntu Terminal<\/strong>.<\/p>\n<p>\u278b Type the following command in the command line:<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">id -G<\/code><\/pre>\n<p>\u278c Press the <strong>ENTER<\/strong> button.<\/p>\n<p><span style=\"color: #0000ff;\"><strong><span style=\"color: #800080;\">Output &gt;<\/span> <\/strong><\/span><\/p>\n<p>In the given image, you can see that I have displayed all the <strong>group<\/strong> <strong>ID<\/strong>s of the current user using the <strong>id<\/strong> command in <strong>Linux<\/strong>.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3675\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-6.png\" alt=\"Sowing all available group IDs using the id command in Linux.\" width=\"407\" height=\"56\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-6.png 407w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-6-300x41.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-6-1024x141.png 1024w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-6-763x105.png 763w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-6-1536x211.png 1536w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-6-2048x282.png 2048w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-6-1090x150.png 1090w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-6-100x14.png 100w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-6-788x108.png 788w\" sizes=\"(max-width: 407px) 100vw, 407px\" \/><\/p>\n<hr \/>\n<p><span style=\"color: #000080; font-size: 18pt;\"><strong>Similar Readings<\/strong><\/span><\/p>\n<ul>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/groupmod-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201cgroupmod\u201d Command in Linux [5+ Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/passwd-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The &#8220;passwd&#8221; Command in Linux [7 Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/service-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201cservice\u201d Command in Linux [6 Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/sestatus-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201csestatus\u201d Command in Linux [4 Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/shutdown-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201cshutdown\u201d Command in Linux [7 Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/finger-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201cfinger\u201d Command in Linux [6 Practical Examples]<\/a><\/strong><\/li>\n<\/ul>\n<hr \/>\n<h3><span class=\"ez-toc-section\" id=\"Example_6_Displaying_Only_Names_Using_the_%E2%80%9Cid%E2%80%9D_Command_in_Linux\"><\/span>Example 6: Displaying Only Names Using the \u201cid\u201d Command in Linux<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Using the <strong>id<\/strong> command you can find out the names of the users and groups. Typing the command with the <strong>option -n<\/strong> results in names. You can find the name of a group or a user or all the groups according to other associated options. Below are the cases of using the<strong> -n<\/strong> option.<\/p>\n<h4><span class=\"ez-toc-section\" id=\"Case_A_Displaying_Only_Current_Username\"><\/span>Case A: Displaying Only Current Username<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>Go through the given process to print the name of the current user.<\/p>\n<p><span style=\"color: #800080;\"><strong>Steps to Follow &gt;<br \/>\n<\/strong><\/span><\/p>\n<p>\u278a At first open the <strong>Ubuntu Terminal<\/strong>.<\/p>\n<p>\u278b Type the following command in the command prompt:<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">id -nu<\/code><\/pre>\n<p>\u278c Now, press the <strong>ENTER<\/strong> button.<\/p>\n<p><span style=\"color: #0000ff;\"><strong><span style=\"color: #800080;\">Output &gt;<\/span> <\/strong><\/span><\/p>\n<p>In this 1st case, you can see that I have displayed the current user name.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3676\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-7.png\" alt=\"Displaying current user name using the id command in Linux.\" width=\"326\" height=\"54\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-7.png 326w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-7-300x50.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-7-1024x170.png 1024w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-7-767x127.png 767w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-7-1536x254.png 1536w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-7-2048x339.png 2048w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-7-906x150.png 906w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-7-100x17.png 100w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-7-788x130.png 788w\" sizes=\"(max-width: 326px) 100vw, 326px\" \/><\/p>\n<h4><span class=\"ez-toc-section\" id=\"Case_B_Displaying_Current_Group_Name\"><\/span>Case B: Displaying Current Group Name<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>Follow the given process to print the name of the current group of the current user.<\/p>\n<p><span style=\"color: #800080;\"><strong>Steps to Follow &gt;<br \/>\n<\/strong><\/span><\/p>\n<p>\u278a At first open the <strong>Ubuntu Terminal<\/strong>.<\/p>\n<p>\u278b Type the following command in the command prompt:<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">id -ng<\/code><\/pre>\n<p>\u278c Now, press the <strong>ENTER<\/strong> button.<\/p>\n<p><span style=\"color: #0000ff;\"><strong><span style=\"color: #800080;\">Output &gt;<\/span> <\/strong><\/span><\/p>\n<p>In this 2nd case, you can see that I have displayed the current group name.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3677\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-8.png\" alt=\"Displaying current group name using the id command in Linux.\" width=\"326\" height=\"57\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-8.png 326w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-8-300x52.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-8-1024x179.png 1024w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-8-766x134.png 766w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-8-1536x269.png 1536w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-8-2048x358.png 2048w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-8-858x150.png 858w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-8-100x17.png 100w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-8-2002x350.png 2002w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-8-788x137.png 788w\" sizes=\"(max-width: 326px) 100vw, 326px\" \/><\/p>\n<h4><span class=\"ez-toc-section\" id=\"Case_C_Displaying_All_Group_Names\"><\/span>Case C: Displaying All Group Names<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>You can print all the group names by following the given steps.<\/p>\n<p><span style=\"color: #800080;\"><strong>Steps to Follow &gt;<br \/>\n<\/strong><\/span><\/p>\n<p>\u278a At first open the <strong>Ubuntu Terminal<\/strong>.<\/p>\n<p>\u278b Type the following command in the command prompt:<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">id -nG<\/code><\/pre>\n<p>\u278c Now, press the <strong>ENTER<\/strong> button<\/p>\n<p><span style=\"color: #0000ff;\"><strong><span style=\"color: #800080;\">Output &gt;<\/span> <\/strong><\/span><\/p>\n<p>In this 3rd case, you can see that I have printed all the available group names.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3681\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-11.png\" alt=\"Displaying all group names using the id command in Linux.\" width=\"700\" height=\"49\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-11.png 700w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-11-300x21.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-11-1024x72.png 1024w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-11-757x53.png 757w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-11-1536x108.png 1536w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-11-2048x143.png 2048w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-11-100x7.png 100w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-11-788x55.png 788w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><\/p>\n<hr \/>\n<p><span style=\"color: #000080; font-size: 18pt;\"><strong>Similar Readings<\/strong><\/span><\/p>\n<ul>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/dmesg-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201cdmesg\u201d Command in Linux [7+ Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/install-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201cinstall\u201d Command in Linux [6+ Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/reboot-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201creboot\u201d Command in Linux [3 Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/sync-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201csync\u201d Command in Linux [8 Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/chage-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201cchage\u201d Command in Linux [7 Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/env-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201cenv \u201d Command in Linux [9 Practical Examples]<\/a><\/strong><\/li>\n<\/ul>\n<hr \/>\n<h3><span class=\"ez-toc-section\" id=\"Example_7_Delimiterizing_Entries_with_Null_Character_Using_the_%E2%80%9Cid%E2%80%9D_Command_in_Linux\"><\/span>Example 7: Delimiterizing Entries with Null Character Using the \u201cid\u201d Command in Linux<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">You can delimit the output with a <strong>NULL<\/strong> character using the <strong>id<\/strong> command with the option <strong>-z<\/strong>. In this example, I will print all the available group names and use <strong>NULL<\/strong> as a separator. Using a <strong>NULL<\/strong> character will merge the names.<\/p>\n<p><span style=\"color: #800080;\"><strong>Steps to Follow &gt;<br \/>\n<\/strong><\/span><\/p>\n<p>\u278a At first launch the <strong>Ubuntu Terminal<\/strong>.<\/p>\n<p>\u278b Type the following command in the command prompt:<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">id -nzG<\/code><\/pre>\n<div class=\"su-box su-box-style-default\" id=\"\" style=\"border-color:#aeb0b3;border-radius:0px;max-width:none\"><div class=\"su-box-title\" style=\"background-color:#E1E3E6;color:#000000;border-top-left-radius:0px;border-top-right-radius:0px\"> EXPLANATION<\/div><div class=\"su-box-content su-u-clearfix su-u-trim\" style=\"border-bottom-left-radius:0px;border-bottom-right-radius:0px\"> Here, the <strong>-z<\/strong> option is combined with the <strong>-n<\/strong> and <strong>-G<\/strong> options. The <strong>-G<\/strong> returns all the <strong>group users<\/strong> and <strong>-n<\/strong> extracts only the names of the <strong>group user<\/strong>.<\/div><\/div>\n<p>\u278c Press the <strong>ENTER<\/strong> button.<\/p>\n<p><span style=\"color: #0000ff;\"><strong><span style=\"color: #800080;\">Output &gt;<\/span> <\/strong><\/span><\/p>\n<p>In the following image, you can see that I have printed all the group names and there are <strong>NULL<\/strong> characters between each name.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3679\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-10.png\" alt=\"Using NULL character as delimiter with entries using the id command in Linux. \" width=\"641\" height=\"53\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-10.png 641w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-10-300x25.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-10-1024x85.png 1024w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-10-762x63.png 762w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-10-1536x127.png 1536w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-10-2048x169.png 2048w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-10-1814x150.png 1814w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-10-100x8.png 100w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux-10-788x65.png 788w\" sizes=\"(max-width: 641px) 100vw, 641px\" \/><\/p>\n<h2><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>In this article, I have tried to show you the frequent uses of the <strong>id<\/strong> command in <strong>Linux<\/strong>. You can always combine one or more options demonstrated here to get a full experience. I hope these practical examples will help you through your journey with the <strong>LINUX <\/strong>distribution.<\/p>\n<hr \/>\n<p><span style=\"color: #000080; font-size: 18pt;\"><strong>Similar Readings<\/strong><\/span><\/p>\n<ul>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/sudo-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201csudo\u201d Command in Linux [8 Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/df-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201cdf\u201d Command in Linux [11 Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/apt-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201capt\u201d Command in Linux [13+ Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/top-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The &#8220;top&#8221; Command in Linux [8 Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/htop-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The &#8220;htop&#8221; Command in Linux [7 Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/enable-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201cenable\u201d Command in Linux [6 Practical Examples]<\/a><\/strong><\/li>\n<\/ul>\n\n\n<div class=\"kk-star-ratings kksr-auto kksr-align-center kksr-valign-bottom\"\n    data-payload='{&quot;align&quot;:&quot;center&quot;,&quot;id&quot;:&quot;3662&quot;,&quot;slug&quot;:&quot;default&quot;,&quot;valign&quot;:&quot;bottom&quot;,&quot;ignore&quot;:&quot;&quot;,&quot;reference&quot;:&quot;auto&quot;,&quot;class&quot;:&quot;&quot;,&quot;count&quot;:&quot;0&quot;,&quot;legendonly&quot;:&quot;&quot;,&quot;readonly&quot;:&quot;&quot;,&quot;score&quot;:&quot;0&quot;,&quot;starsonly&quot;:&quot;&quot;,&quot;best&quot;:&quot;5&quot;,&quot;gap&quot;:&quot;5&quot;,&quot;greet&quot;:&quot;Rate this post&quot;,&quot;legend&quot;:&quot;0\\\/5 - (0 votes)&quot;,&quot;size&quot;:&quot;24&quot;,&quot;title&quot;:&quot;The \u201cid\u201d Command in Linux [7+ Practical Examples]&quot;,&quot;width&quot;:&quot;0&quot;,&quot;_legend&quot;:&quot;{score}\\\/{best} - ({count} {votes})&quot;,&quot;font_factor&quot;:&quot;1.25&quot;}'>\n            \n<div class=\"kksr-stars\">\n    \n<div class=\"kksr-stars-inactive\">\n            <div class=\"kksr-star\" data-star=\"1\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"2\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"3\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"4\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"5\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n    <\/div>\n    \n<div class=\"kksr-stars-active\" style=\"width: 0px;\">\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n    <\/div>\n<\/div>\n                \n\n<div class=\"kksr-legend\" style=\"font-size: 19.2px;\">\n            <span class=\"kksr-muted\">Rate this post<\/span>\n    <\/div>\n    <\/div>\n","protected":false},"excerpt":{"rendered":"<p>The basic use of the id command in Linux includes finding out information about users\u2019 IDs and names. Advanced options &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"The \u201cid\u201d Command in Linux [7+ Practical Examples]\" class=\"read-more button\" href=\"https:\/\/linuxsimply.com\/id-command-in-linux\/#more-3662\" aria-label=\"Read more about The \u201cid\u201d Command in Linux [7+ Practical Examples]\">Read more<\/a><\/p>\n","protected":false},"author":314896,"featured_media":3683,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[51],"class_list":["post-3662","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux-commands","tag-system-commands","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-33"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>The \u201cid\u201d Command in Linux [7+ Practical Examples] - LinuxSimply<\/title>\n<meta name=\"description\" content=\"The id command in Linux is used to print out the user and group IDs. It can also be used to display user\/group names and security context.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/linuxsimply.com\/id-command-in-linux\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"The \u201cid\u201d Command in Linux [7+ Practical Examples] - LinuxSimply\" \/>\n<meta property=\"og:description\" content=\"The id command in Linux is used to print out the user and group IDs. It can also be used to display user\/group names and security context.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/linuxsimply.com\/id-command-in-linux\/\" \/>\n<meta property=\"og:site_name\" content=\"LinuxSimply\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/profile.php?id=100005994046772&amp;mibextid=ZbWKwL\" \/>\n<meta property=\"article:published_time\" content=\"2023-01-15T04:10:32+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-08-31T07:08:38+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux.png\" \/>\n\t<meta property=\"og:image:width\" content=\"400\" \/>\n\t<meta property=\"og:image:height\" content=\"400\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Anonnya Ghosh\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Anonnya Ghosh\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"10 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/id-command-in-linux\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/id-command-in-linux\\\/\"},\"author\":{\"name\":\"Anonnya Ghosh\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#\\\/schema\\\/person\\\/b53a69b64755f081b3c5951d72ba9c7c\"},\"headline\":\"The \u201cid\u201d Command in Linux [7+ Practical Examples]\",\"datePublished\":\"2023-01-15T04:10:32+00:00\",\"dateModified\":\"2023-08-31T07:08:38+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/id-command-in-linux\\\/\"},\"wordCount\":1648,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/id-command-in-linux\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/01\\\/id-command-in-linux.png\",\"keywords\":[\"system commands\"],\"articleSection\":[\"Linux Commands\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/linuxsimply.com\\\/id-command-in-linux\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/id-command-in-linux\\\/\",\"url\":\"https:\\\/\\\/linuxsimply.com\\\/id-command-in-linux\\\/\",\"name\":\"The \u201cid\u201d Command in Linux [7+ Practical Examples] - LinuxSimply\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/id-command-in-linux\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/id-command-in-linux\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/01\\\/id-command-in-linux.png\",\"datePublished\":\"2023-01-15T04:10:32+00:00\",\"dateModified\":\"2023-08-31T07:08:38+00:00\",\"description\":\"The id command in Linux is used to print out the user and group IDs. It can also be used to display user\\\/group names and security context.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/id-command-in-linux\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/linuxsimply.com\\\/id-command-in-linux\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/id-command-in-linux\\\/#primaryimage\",\"url\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/01\\\/id-command-in-linux.png\",\"contentUrl\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/01\\\/id-command-in-linux.png\",\"width\":400,\"height\":400,\"caption\":\"id command in linux.\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/id-command-in-linux\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/linuxsimply.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"The \u201cid\u201d Command in Linux [7+ Practical Examples]\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#website\",\"url\":\"https:\\\/\\\/linuxsimply.com\\\/\",\"name\":\"LinuxSimply\",\"description\":\"All About Linux\",\"publisher\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/linuxsimply.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#organization\",\"name\":\"LinuxSimply\",\"url\":\"https:\\\/\\\/linuxsimply.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/LinuxSimply-New-Logo-Without-Icon.png\",\"contentUrl\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/LinuxSimply-New-Logo-Without-Icon.png\",\"width\":355,\"height\":48,\"caption\":\"LinuxSimply\"},\"image\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#\\\/schema\\\/person\\\/b53a69b64755f081b3c5951d72ba9c7c\",\"name\":\"Anonnya Ghosh\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/Anonnya-Ghosh-II-96x96.png\",\"url\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/Anonnya-Ghosh-II-96x96.png\",\"contentUrl\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/Anonnya-Ghosh-II-96x96.png\",\"caption\":\"Anonnya Ghosh\"},\"description\":\"Hello there! I am Anonnya Ghosh, a Computer Science and Engineering graduate from Ahsanullah University of Science and Technology (AUST). Currently, I am working as a Linux Content Developer Executive at SOFTEKO. The strong bond between Linux and cybersecurity drives me to explore this world of open-source architecture. I aspire to learn new things further and contribute to the field of CS with my experience. Read Full Bio\",\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/profile.php?id=100005994046772&mibextid=ZbWKwL\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/anonnya-ghosh-6a934b211\"],\"url\":\"https:\\\/\\\/linuxsimply.com\\\/author\\\/anonya\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"The \u201cid\u201d Command in Linux [7+ Practical Examples] - LinuxSimply","description":"The id command in Linux is used to print out the user and group IDs. It can also be used to display user\/group names and security context.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/linuxsimply.com\/id-command-in-linux\/","og_locale":"en_US","og_type":"article","og_title":"The \u201cid\u201d Command in Linux [7+ Practical Examples] - LinuxSimply","og_description":"The id command in Linux is used to print out the user and group IDs. It can also be used to display user\/group names and security context.","og_url":"https:\/\/linuxsimply.com\/id-command-in-linux\/","og_site_name":"LinuxSimply","article_author":"https:\/\/www.facebook.com\/profile.php?id=100005994046772&mibextid=ZbWKwL","article_published_time":"2023-01-15T04:10:32+00:00","article_modified_time":"2023-08-31T07:08:38+00:00","og_image":[{"width":400,"height":400,"url":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux.png","type":"image\/png"}],"author":"Anonnya Ghosh","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Anonnya Ghosh","Est. reading time":"10 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/linuxsimply.com\/id-command-in-linux\/#article","isPartOf":{"@id":"https:\/\/linuxsimply.com\/id-command-in-linux\/"},"author":{"name":"Anonnya Ghosh","@id":"https:\/\/linuxsimply.com\/#\/schema\/person\/b53a69b64755f081b3c5951d72ba9c7c"},"headline":"The \u201cid\u201d Command in Linux [7+ Practical Examples]","datePublished":"2023-01-15T04:10:32+00:00","dateModified":"2023-08-31T07:08:38+00:00","mainEntityOfPage":{"@id":"https:\/\/linuxsimply.com\/id-command-in-linux\/"},"wordCount":1648,"commentCount":0,"publisher":{"@id":"https:\/\/linuxsimply.com\/#organization"},"image":{"@id":"https:\/\/linuxsimply.com\/id-command-in-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux.png","keywords":["system commands"],"articleSection":["Linux Commands"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/linuxsimply.com\/id-command-in-linux\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/linuxsimply.com\/id-command-in-linux\/","url":"https:\/\/linuxsimply.com\/id-command-in-linux\/","name":"The \u201cid\u201d Command in Linux [7+ Practical Examples] - LinuxSimply","isPartOf":{"@id":"https:\/\/linuxsimply.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/linuxsimply.com\/id-command-in-linux\/#primaryimage"},"image":{"@id":"https:\/\/linuxsimply.com\/id-command-in-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux.png","datePublished":"2023-01-15T04:10:32+00:00","dateModified":"2023-08-31T07:08:38+00:00","description":"The id command in Linux is used to print out the user and group IDs. It can also be used to display user\/group names and security context.","breadcrumb":{"@id":"https:\/\/linuxsimply.com\/id-command-in-linux\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/linuxsimply.com\/id-command-in-linux\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/linuxsimply.com\/id-command-in-linux\/#primaryimage","url":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux.png","contentUrl":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/id-command-in-linux.png","width":400,"height":400,"caption":"id command in linux."},{"@type":"BreadcrumbList","@id":"https:\/\/linuxsimply.com\/id-command-in-linux\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/linuxsimply.com\/"},{"@type":"ListItem","position":2,"name":"The \u201cid\u201d Command in Linux [7+ Practical Examples]"}]},{"@type":"WebSite","@id":"https:\/\/linuxsimply.com\/#website","url":"https:\/\/linuxsimply.com\/","name":"LinuxSimply","description":"All About Linux","publisher":{"@id":"https:\/\/linuxsimply.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/linuxsimply.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/linuxsimply.com\/#organization","name":"LinuxSimply","url":"https:\/\/linuxsimply.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/linuxsimply.com\/#\/schema\/logo\/image\/","url":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/09\/LinuxSimply-New-Logo-Without-Icon.png","contentUrl":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/09\/LinuxSimply-New-Logo-Without-Icon.png","width":355,"height":48,"caption":"LinuxSimply"},"image":{"@id":"https:\/\/linuxsimply.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/linuxsimply.com\/#\/schema\/person\/b53a69b64755f081b3c5951d72ba9c7c","name":"Anonnya Ghosh","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/09\/Anonnya-Ghosh-II-96x96.png","url":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/09\/Anonnya-Ghosh-II-96x96.png","contentUrl":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/09\/Anonnya-Ghosh-II-96x96.png","caption":"Anonnya Ghosh"},"description":"Hello there! I am Anonnya Ghosh, a Computer Science and Engineering graduate from Ahsanullah University of Science and Technology (AUST). Currently, I am working as a Linux Content Developer Executive at SOFTEKO. The strong bond between Linux and cybersecurity drives me to explore this world of open-source architecture. I aspire to learn new things further and contribute to the field of CS with my experience. Read Full Bio","sameAs":["https:\/\/www.facebook.com\/profile.php?id=100005994046772&mibextid=ZbWKwL","https:\/\/www.linkedin.com\/in\/anonnya-ghosh-6a934b211"],"url":"https:\/\/linuxsimply.com\/author\/anonya\/"}]}},"_links":{"self":[{"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/posts\/3662","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/users\/314896"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/comments?post=3662"}],"version-history":[{"count":0,"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/posts\/3662\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/media\/3683"}],"wp:attachment":[{"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/media?parent=3662"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/categories?post=3662"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/tags?post=3662"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}