{"id":3156,"date":"2023-01-08T04:48:57","date_gmt":"2023-01-08T04:48:57","guid":{"rendered":"https:\/\/linuxsimply.com\/?p=3156"},"modified":"2024-04-28T10:54:40","modified_gmt":"2024-04-28T10:54:40","slug":"getent-command-in-linux","status":"publish","type":"post","link":"https:\/\/linuxsimply.com\/getent-command-in-linux\/","title":{"rendered":"The \u201cgetent\u201d Command in Linux [11 Practical Examples]"},"content":{"rendered":"<p style=\"text-align: justify;\">There are many <strong>command-line<\/strong> tools in <strong>Linux<\/strong> that can be used to access <strong>user<\/strong> information stored in a <strong>database<\/strong>. One such tool is called <strong>&#8220;getent<\/strong>,&#8221; which stands for &#8220;<strong>get ent<\/strong>ries from the administrative database.&#8221; In this article, I will describe all the features and uses of the<strong> getent<\/strong> command in<strong> Linux<\/strong> with multiple examples.<\/p>\n<div class=\"su-youtube su-u-responsive-media-yes\"><iframe width=\"600\" height=\"400\" src=\"https:\/\/www.youtube.com\/embed\/NDKszREq8Ho?\" frameborder=\"0\" allowfullscreen allow=\"autoplay; encrypted-media; picture-in-picture\" title=\"\"><\/iframe><\/div>\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\/getent-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\/getent-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\/getent-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\/getent-command-in-linux\/#Practical_Examples_of_the_%E2%80%9Cgetent%E2%80%9D_Command_in_Linux\" >Practical Examples of the \u201cgetent\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\/getent-command-in-linux\/#Example_1_List_All_the_User_Accounts_on_a_Linux_System\" >Example 1: List All the User Accounts on a Linux System<\/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\/getent-command-in-linux\/#Example_2_Fetch_Details_for_a_Particular_User\" >Example 2: Fetch Details for a Particular User<\/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\/getent-command-in-linux\/#Example_3_List_All_the_Groups_on_a_Linux_System\" >Example 3: List All the Groups on a Linux System<\/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\/getent-command-in-linux\/#Example_4_Fetch_Details_of_a_Particular_Group_With_the_%E2%80%9Cgetent%E2%80%9D_Command_in_Linux\" >Example 4: Fetch Details of a Particular Group With the \u201cgetent\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-9\" href=\"https:\/\/linuxsimply.com\/getent-command-in-linux\/#Example_5_List_All_the_Services_on_a_Linux_System\" >Example 5: List All the Services on a Linux System<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/linuxsimply.com\/getent-command-in-linux\/#Example_6_Fetch_Details_for_a_Particular_Service_With_the_%E2%80%9Cgetent%E2%80%9D_Command_in_Linux\" >Example 6: Fetch Details for a Particular Service With the \u201cgetent\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-11\" href=\"https:\/\/linuxsimply.com\/getent-command-in-linux\/#Example_7_List_All_Hostnames_and_Their_IP_Addresses_on_a_Linux_System\" >Example 7: List All Hostnames and Their IP Addresses on a Linux System<\/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\/getent-command-in-linux\/#Example_8_List_All_Networks_and_IP_addresses_on_a_Linux_System\" >Example 8: List All Networks and IP addresses on a Linux System<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/linuxsimply.com\/getent-command-in-linux\/#Example_9_Get_the_Short_Usage_Summary_of_the_%E2%80%9Cgetent%E2%80%9D_Command_in_Linux\" >Example 9: Get the Short Usage Summary of the \u201cgetent\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-14\" href=\"https:\/\/linuxsimply.com\/getent-command-in-linux\/#Example_10_Get_the_Version_of_the_%E2%80%9Cgetent%E2%80%9D_Command_in_Linux\" >Example 10: Get the Version of the \u201cgetent\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-15\" href=\"https:\/\/linuxsimply.com\/getent-command-in-linux\/#Example_11_Get_Help_About_the_%E2%80%9Cgetent%E2%80%9D_Command_in_Linux\" >Example 11: Get Help About the \u201cgetent\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-16\" href=\"https:\/\/linuxsimply.com\/getent-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 style=\"text-align: justify;\">The <strong>getent<\/strong> command in <strong>Linux<\/strong> is a tool that enables the retrieval of data from <strong>system databases<\/strong> such as <strong>passwd<\/strong>, <strong>group<\/strong>, and <strong>services<\/strong>. It can be utilized to either list all entries in a <strong>database<\/strong> or obtain information about a <strong>specific entry<\/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 style=\"text-align: justify;\">The syntax of the<strong> getent<\/strong> command in <strong>Linux<\/strong> is pretty simple, as shown below.<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">getent [OPTION]... database key...<\/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 syntax above, the <strong>OPTION<\/strong> enclosed by the square bracket means it is not mandatory and three dots after the square bracket mean multiple <strong>OPTIONS <\/strong>can be used after the <strong>getent <\/strong>command. Again, if specific keys are given as arguments, only the entries corresponding to those keys will be shown. If no keys are provided, all entries will be displayed<\/p>\n<\/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;\">There are numerous <strong>options<\/strong> available for the <strong>getent<\/strong> command. I have listed a few of them. You can learn more about the <strong>getent <\/strong>command, its <strong>options<\/strong> and their uses by checking the <strong>man<\/strong> page.<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">man getent<\/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>-s,&#8211;service<\/strong>: Used to specify the service.<\/li>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>-i,&#8211;no-idn<\/strong>: Used to disable IDN encoding in lookups.<\/li>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>-?, &#8211;help<\/strong>: Show user help page.<\/li>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>&#8211;usage<\/strong>: Display usage information.<\/li>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>-V, &#8211;version<\/strong>: Display the version number, license, and disclaimer for getent.<\/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>Commands and their <strong>options<\/strong> are <strong>case-sensitive <\/strong>in <strong>Linux<\/strong>. So, be careful while using them. <\/div><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Practical_Examples_of_the_%E2%80%9Cgetent%E2%80%9D_Command_in_Linux\"><\/span>Practical Examples of the \u201cgetent\u201d Command in Linux<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p style=\"text-align: justify;\">The <strong>getent<\/strong> command in<strong> Linux<\/strong> retrieves entries from various databases, such as passwd, group, and shadow, by specifying the <strong>database<\/strong> and a <strong>key<\/strong>. In the section below, I will show you some of the most useful applications for the <strong>getent<\/strong> command in <strong>Linux<\/strong>.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Example_1_List_All_the_User_Accounts_on_a_Linux_System\"><\/span>Example 1: List All the User Accounts on a Linux System<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">The <strong>getent<\/strong> command in <strong>Linux<\/strong> allows you to see the list of <strong>all users<\/strong> by using the <strong>passwd argument<\/strong> with the command. You can retrieve information about the <strong>users<\/strong> in your system, including their <strong>usernames<\/strong>,<strong> user IDs<\/strong>, and home <strong>directories<\/strong>. Here, I will display a list of all users in my system on the <strong>terminal<\/strong> with the <strong>getent<\/strong> command. You can do the same by following the steps below.<\/p>\n<p><span style=\"color: #800080;\"><strong>Steps to Follow &gt;<\/strong><\/span><\/p>\n<p>\u278a At first, open the <a href=\"https:\/\/linuxsimply.com\/what-is-terminal-in-linux\/\" target=\"_blank\" rel=\"noopener\"><strong>Ubuntu Terminal<\/strong><\/a>.<\/p>\n<p>\u278b Type the following command into the command prompt:<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">getent passwd<\/code><\/pre>\n<p>\u278c Now, press the <strong>ENTER<\/strong> button.<\/p>\n<p style=\"text-align: justify;\"><span style=\"color: #800080;\"><strong>Output &gt;<\/strong><\/span><\/p>\n<p style=\"text-align: justify;\">In the following image, you can see that I have displayed the <strong>list <\/strong>of <strong>all users<\/strong> in my <strong>system<\/strong> using the <strong>getent<\/strong> command.<img fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter size-full wp-image-3159\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-1.png\" alt=\"Showing the list of all users in my system using the getent command in Linux.\" width=\"825\" height=\"564\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-1.png 825w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-1-300x205.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-1-1024x700.png 1024w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-1-768x525.png 768w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-1-1536x1050.png 1536w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-1-2048x1400.png 2048w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-1-219x150.png 219w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-1-100x68.png 100w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-1-512x350.png 512w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-1-788x538.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\/apt-get-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201capt-get\u201d Command in Linux [10 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<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<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<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<hr \/>\n<h3><span class=\"ez-toc-section\" id=\"Example_2_Fetch_Details_for_a_Particular_User\"><\/span>Example 2: Fetch Details for a Particular User<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">You can see the details of a specific <strong>user<\/strong> on your<strong> Linux<\/strong> machine using the <strong>getent<\/strong> command followed by the <strong>argument <\/strong>\u00a0<strong>passwd <\/strong>and then the <strong>user_name. <\/strong>You will get information about the <strong>user<\/strong>, including his <strong>username<\/strong>,<strong> user ID<\/strong>, and home <strong>directory<\/strong>. Here, I will display the information of a specific user named \u201c<strong>jack\u201d<\/strong> in my system on the <strong>terminal<\/strong> with the <strong>getent<\/strong> command. You can do the same by following the steps below.<\/p>\n<p><span style=\"color: #800080;\"><strong>Steps to Follow &gt;<\/strong><\/span><\/p>\n<p>\u278a At first, open the <strong>Ubuntu Terminal<\/strong>.<\/p>\n<p>\u278b Type the following command into the command prompt:<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">getent passwd jack<\/code><\/pre>\n<p>\u278c Now, press the <strong>ENTER<\/strong> button.<\/p>\n<p><span style=\"color: #800080;\"><strong>Output &gt;<\/strong><\/span><\/p>\n<p style=\"text-align: justify;\">In the following image, you can see that I have displayed the information about user <strong>jack<\/strong> in the terminal using the <strong>getent<\/strong> command.<img decoding=\"async\" class=\"aligncenter size-full wp-image-3160\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-2.png\" alt=\"Showing the information about user &quot;jack&quot; in the terminal using the getent command in Linux.\" width=\"650\" height=\"99\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-2.png 650w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-2-300x46.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-2-1024x156.png 1024w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-2-762x116.png 762w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-2-1536x234.png 1536w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-2-2048x312.png 2048w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-2-985x150.png 985w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-2-100x15.png 100w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-2-788x120.png 788w\" sizes=\"(max-width: 650px) 100vw, 650px\" \/><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Example_3_List_All_the_Groups_on_a_Linux_System\"><\/span>Example 3: List All the Groups on a Linux System<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">The <strong>getent<\/strong> command in <strong>Linux<\/strong> allows you to see the list of <strong>all groups<\/strong> by using the <strong>group argument<\/strong> with the command. You can retrieve information about the <strong>groups<\/strong> in your system, including their <strong>names<\/strong>,<strong> GIDs<\/strong>, and some <strong>additional information<\/strong>. Here, I will display a list of all <strong>groups<\/strong> in my system on the <strong>terminal<\/strong> with the <strong>getent<\/strong> command. You can do the same by following the steps below.<\/p>\n<p><span style=\"color: #800080;\"><strong>Steps to Follow &gt;<\/strong><\/span><\/p>\n<p>\u278a At first, open the <strong>Ubuntu Terminal<\/strong>.<\/p>\n<p>\u278b Type the following command into the command prompt:<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">getent group<\/code><\/pre>\n<p>\u278c Now, press the <strong>ENTER<\/strong> button.<\/p>\n<p><span style=\"color: #800080;\"><strong>Output &gt;<\/strong><\/span><\/p>\n<p style=\"text-align: justify;\">In the following image, you can see that I have displayed the <strong>list <\/strong>of <strong>all groups<\/strong> in my <strong>system<\/strong> using the <strong>getent<\/strong> command.<img decoding=\"async\" class=\"aligncenter size-full wp-image-3161\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-3.png\" alt=\"Showing the list of all groups in my system using the getent command in Linux.\" width=\"637\" height=\"835\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-3.png 637w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-3-229x300.png 229w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-3-781x1024.png 781w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-3-767x1006.png 767w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-3-1172x1536.png 1172w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-3-1562x2048.png 1562w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-3-114x150.png 114w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-3-100x131.png 100w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-3-267x350.png 267w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-3-788x1032.png 788w\" sizes=\"(max-width: 637px) 100vw, 637px\" \/><\/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<\/ul>\n<hr \/>\n<h3><span class=\"ez-toc-section\" id=\"Example_4_Fetch_Details_of_a_Particular_Group_With_the_%E2%80%9Cgetent%E2%80%9D_Command_in_Linux\"><\/span>Example 4: Fetch Details of a Particular Group With the \u201cgetent\u201d Command in Linux<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">You can see the details of a specific <strong>group<\/strong> on your<strong> Linux<\/strong> machine using the <strong>getent<\/strong> command followed by the <strong>argument group <\/strong>and then the <strong>group_name. <\/strong>You will get information about the <strong>group<\/strong>, including his <strong>group name<\/strong>,<strong> GID<\/strong> and some additional information like member names(if stored in the database). Here, I will display the information of a specific<strong> group<\/strong> named <strong>lpadmin<\/strong> in my system on the <strong>terminal<\/strong> with the <strong>getent<\/strong> command. You can do the same by following the steps below.<\/p>\n<p><span style=\"color: #800080;\"><strong>Steps to Follow &gt;<\/strong><\/span><\/p>\n<p>\u278a At first, open the <strong>Ubuntu Terminal<\/strong>.<\/p>\n<p>\u278b Type the following command into the command prompt:<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">getent group lpadmin<\/code><\/pre>\n<p>\u278c Now, press the <strong>ENTER<\/strong> button.<\/p>\n<p><span style=\"color: #800080;\"><strong>Output &gt;<\/strong><\/span><\/p>\n<p style=\"text-align: justify;\">In the following image, you can see that I have displayed the information about the group named <strong>lpadmin<\/strong> in the terminal using the <strong>getent<\/strong> command.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3162\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-4.png\" alt=\"Showing the information about the group named &quot;lpadmin&quot; in the terminal using the getent command in Linux.\" width=\"600\" height=\"97\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-4.png 600w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-4-300x49.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-4-1024x166.png 1024w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-4-767x124.png 767w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-4-1536x248.png 1536w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-4-2048x331.png 2048w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-4-928x150.png 928w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-4-100x16.png 100w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-4-788x127.png 788w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Example_5_List_All_the_Services_on_a_Linux_System\"><\/span>Example 5: List All the Services on a Linux System<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">The <strong>getent<\/strong> command in <strong>Linux<\/strong> allows you to see the list of <strong>all services<\/strong> by using the <strong>services argument<\/strong> with the command. You can retrieve information about the <strong>services<\/strong> in your system, their associated<strong> port numbers<\/strong> and <strong>protocol types<\/strong>. Here, I will display a list of all <strong>services<\/strong> in my system on the <strong>terminal<\/strong> with the <strong>getent<\/strong> command. You can do the same by following the steps below.<\/p>\n<p><span style=\"color: #800080;\"><strong>Steps to Follow &gt;<\/strong><\/span><\/p>\n<p>\u278a At first, open the <strong>Ubuntu Terminal<\/strong>.<\/p>\n<p>\u278b Type the following command into the command prompt:<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">getent services<\/code><\/pre>\n<p>\u278c Now, press the <strong>ENTER<\/strong> button.<\/p>\n<p><span style=\"color: #800080;\"><strong>Output &gt;<\/strong><\/span><\/p>\n<p style=\"text-align: justify;\">In the following image, you can see that I have displayed the <strong>list <\/strong>of <strong>all services <\/strong>in my <strong>system<\/strong> using the <strong>getent<\/strong> command.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3163\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-5.png\" alt=\"Showing the list of all services in my system using the getent command in Linux.\" width=\"644\" height=\"839\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-5.png 644w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-5-230x300.png 230w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-5-786x1024.png 786w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-5-768x1000.png 768w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-5-1179x1536.png 1179w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-5-1572x2048.png 1572w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-5-115x150.png 115w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-5-100x130.png 100w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-5-269x350.png 269w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-5-788x1026.png 788w\" sizes=\"(max-width: 644px) 100vw, 644px\" \/><\/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\/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\/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<\/ul>\n<hr \/>\n<h3><span class=\"ez-toc-section\" id=\"Example_6_Fetch_Details_for_a_Particular_Service_With_the_%E2%80%9Cgetent%E2%80%9D_Command_in_Linux\"><\/span>Example 6: Fetch Details for a Particular Service With the \u201cgetent\u201d Command in Linux<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">You can see the details of a specific <strong>service<\/strong> on your<strong> Linux<\/strong> machine using the <strong>getent<\/strong> command, followed by the argument<strong> services <\/strong>and then the <strong>service_name. <\/strong>You will get information about the <strong>service<\/strong>, its associated <strong>port number<\/strong> and <strong>protocol type<\/strong>. Here, I will display the information of a specific service named <strong>kpasswd <\/strong>(this service is used while changing the user password) in my system on the <strong>terminal<\/strong> with the <strong>getent<\/strong> command. You can do the same by following the steps below.<\/p>\n<p><span style=\"color: #800080;\"><strong>Steps to Follow &gt;<\/strong><\/span><\/p>\n<p>\u278a At first, open the <strong>Ubuntu Terminal<\/strong>.<\/p>\n<p>\u278b Type the following command into the command prompt:<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">getent services kpasswd<\/code><\/pre>\n<p>\u278c Now, press the <strong>ENTER<\/strong> button.<\/p>\n<p><span style=\"color: #800080;\"><strong>Output &gt;<\/strong><\/span><\/p>\n<p style=\"text-align: justify;\">In the following image, you can see that I have displayed the information about the service named <strong>kpasswd<\/strong> in the terminal using the <strong>getent<\/strong> command.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3164\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-6.png\" alt=\"Showing the information about the service named kpasswd in the terminal using the getent command in Linux.\" width=\"591\" height=\"91\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-6.png 591w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-6-300x46.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-6-1024x158.png 1024w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-6-766x118.png 766w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-6-1536x237.png 1536w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-6-2048x315.png 2048w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-6-974x150.png 974w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-6-100x15.png 100w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-6-788x121.png 788w\" sizes=\"(max-width: 591px) 100vw, 591px\" \/><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Example_7_List_All_Hostnames_and_Their_IP_Addresses_on_a_Linux_System\"><\/span>Example 7: List All Hostnames and Their IP Addresses on a Linux System<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">You can see the list of <strong>all services<\/strong> by using the <strong>hosts argument<\/strong> with the <strong>getent <\/strong>command in <strong>Linux<\/strong>. You can retrieve information about the <strong>hosts<\/strong> in your system along with their <strong>IP<\/strong> addresses. Here, I will display a list of all <strong>hosts<\/strong> in my system on the <strong>terminal<\/strong> with the <strong>getent<\/strong> command. You can do the same by following the steps below.<\/p>\n<p><span style=\"color: #800080;\"><strong>Steps to Follow &gt;<\/strong><\/span><\/p>\n<p>\u278a At first, open the <strong>Ubuntu Terminal<\/strong>.<\/p>\n<p>\u278b Type the following command into the command prompt:<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">getent hosts<\/code><\/pre>\n<p>\u278c Now, press the <strong>ENTER<\/strong> button.<\/p>\n<p><span style=\"color: #800080;\"><strong>Output &gt;<\/strong><\/span><\/p>\n<p style=\"text-align: justify;\">In the following image, you can see that I have displayed the <strong>list <\/strong>of <strong>all hosts <\/strong>in my <strong>system<\/strong> using the <strong>getent<\/strong> command.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3165\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-7.png\" alt=\"Showing the list of all hosts in my system using the getent command.\" width=\"650\" height=\"153\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-7.png 650w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-7-300x71.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-7-1024x241.png 1024w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-7-765x180.png 765w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-7-1536x362.png 1536w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-7-2048x482.png 2048w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-7-637x150.png 637w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-7-100x24.png 100w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-7-1487x350.png 1487w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-7-788x185.png 788w\" sizes=\"(max-width: 650px) 100vw, 650px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2086 size-full\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/df-command-in-linux-7.png\" alt=\"Showing file system excluding a file system type\" width=\"825\" height=\"109\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/df-command-in-linux-7.png 825w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/df-command-in-linux-7-300x40.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/df-command-in-linux-7-1024x135.png 1024w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/df-command-in-linux-7-764x101.png 764w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/df-command-in-linux-7-1536x203.png 1536w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/df-command-in-linux-7-2048x271.png 2048w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/df-command-in-linux-7-1135x150.png 1135w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/df-command-in-linux-7-100x13.png 100w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/df-command-in-linux-7-788x104.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\/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\/id-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201cid\u201d 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<\/ul>\n<hr \/>\n<h3><span class=\"ez-toc-section\" id=\"Example_8_List_All_Networks_and_IP_addresses_on_a_Linux_System\"><\/span>Example 8: List All Networks and IP addresses on a Linux System<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">The <strong>getent<\/strong> command in <strong>Linux<\/strong> allows you to see the list of <strong>all networks<\/strong> by using the <strong>networks argument<\/strong> with the command. You can retrieve information about the <strong>networks<\/strong> in your system along with their <strong>addresses<\/strong>. Here, I will display a list of all <strong>networks<\/strong> in my system on the <strong>terminal<\/strong> with the <strong>getent<\/strong> command. You can do the same by following the steps below.<\/p>\n<p><span style=\"color: #800080;\"><strong>Steps to Follow &gt;<\/strong><\/span><\/p>\n<p>\u278a At first, open the <strong>Ubuntu Terminal<\/strong>.<\/p>\n<p>\u278b Type the following command into the command prompt:<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">getent networks<\/code><\/pre>\n<p>\u278c Now, press the <strong>ENTER<\/strong> button.<\/p>\n<p><span style=\"color: #800080;\"><strong>Output &gt;<\/strong><\/span><\/p>\n<p style=\"text-align: justify;\">In the following image, you can see that I have displayed the <strong>list <\/strong>of <strong>all networks <\/strong>in my <strong>system<\/strong> using the <strong>getent<\/strong> command.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3166\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-8.png\" alt=\"Showing the list of all networks in my system using the getent command.\" width=\"603\" height=\"101\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-8.png 603w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-8-300x50.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-8-1024x172.png 1024w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-8-764x128.png 764w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-8-1536x257.png 1536w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-8-2048x343.png 2048w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-8-896x150.png 896w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-8-100x17.png 100w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-8-788x131.png 788w\" sizes=\"(max-width: 603px) 100vw, 603px\" \/><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Example_9_Get_the_Short_Usage_Summary_of_the_%E2%80%9Cgetent%E2%80%9D_Command_in_Linux\"><\/span>Example 9: Get the Short Usage Summary of the \u201cgetent\u201d Command in Linux<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">To view a list of the available <strong>options<\/strong> for using the <strong>getent<\/strong> command in <strong>Linux<\/strong>, you can simply add the <strong>&#8211;usage option<\/strong> after the command. Here, I will display a short list of all <strong>usages <\/strong>of the <strong>getent<\/strong> command. You can do the same by following the steps below.<\/p>\n<p><span style=\"color: #800080;\"><strong>Steps to Follow &gt;<\/strong><\/span><\/p>\n<p>\u278a At first, open the <strong>Ubuntu Terminal<\/strong>.<\/p>\n<p>\u278b Type the following command into the command prompt:<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">getent --usage<\/code><\/pre>\n<p>\u278c Now, press the <strong>ENTER<\/strong> button.<\/p>\n<p><span style=\"color: #800080;\"><strong>Output &gt;<\/strong><\/span><\/p>\n<p style=\"text-align: justify;\">In the following image, you can see that I have displayed the short <strong>list <\/strong>of <strong>all usages <\/strong>of the <strong>getent<\/strong> command.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3167\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-9.png\" alt=\"Showing the short list of all usages of the getent command.\" width=\"825\" height=\"95\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-9.png 825w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-9-300x35.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-9-1024x118.png 1024w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-9-764x88.png 764w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-9-1536x177.png 1536w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-9-2048x236.png 2048w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-9-1303x150.png 1303w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-9-100x12.png 100w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-9-788x90.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\/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<\/ul>\n<hr \/>\n<h3><span class=\"ez-toc-section\" id=\"Example_10_Get_the_Version_of_the_%E2%80%9Cgetent%E2%80%9D_Command_in_Linux\"><\/span>Example 10: Get the Version of the \u201cgetent\u201d Command in Linux<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">You can see the current <strong>version <\/strong>of the <strong>getent <\/strong>command in your <strong>Linux<\/strong> machine. Here, I will show you the version of the <strong>getent <\/strong>command of my machine on the <strong>terminal<\/strong>. You can do the same by following the steps below.<\/p>\n<p><span style=\"color: #800080;\"><strong>Steps to Follow &gt;<\/strong><\/span><\/p>\n<p>\u278a At first, open the <strong>Ubuntu Terminal<\/strong>.<\/p>\n<p>\u278b Type the following command into the command prompt:<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">getent --version<\/code><\/pre>\n<p>\u278c Now, press the <strong>ENTER<\/strong> button.<\/p>\n<p><span style=\"color: #800080;\"><strong>Output &gt;<\/strong><\/span><\/p>\n<p style=\"text-align: justify;\">In the following image, you can see that I have displayed the <strong>version<\/strong> of the <strong>getent <\/strong>command in <strong>Linux<\/strong>.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3168\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-10.png\" alt=\"displaying the version of the getent command in Linux.\" width=\"825\" height=\"157\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-10.png 825w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-10-300x57.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-10-1024x195.png 1024w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-10-767x146.png 767w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-10-1536x292.png 1536w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-10-2048x390.png 2048w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-10-788x149.png 788w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-10-100x19.png 100w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-10-1839x350.png 1839w\" sizes=\"(max-width: 825px) 100vw, 825px\" \/><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Example_11_Get_Help_About_the_%E2%80%9Cgetent%E2%80%9D_Command_in_Linux\"><\/span>Example 11: Get Help About the \u201cgetent\u201d Command in Linux<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">In <strong>Linux<\/strong>, the <strong>help page<\/strong> for the <strong>getent<\/strong> command contains a brief description of the command. You can see the <strong>help<\/strong> page by following the steps that I mentioned below.<\/p>\n<p><span style=\"color: #800080;\"><strong>Steps to Follow &gt;<\/strong><\/span><\/p>\n<p>\u278a At first, open the <strong>Ubuntu Terminal<\/strong>.<\/p>\n<p>\u278b Type the following command into the command prompt:<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">getent --help<\/code><\/pre>\n<p>\u278c Now, press the <strong>ENTER<\/strong> button.<\/p>\n<p><span style=\"color: #800080;\"><strong>Output &gt;<\/strong><\/span><\/p>\n<p style=\"text-align: justify;\">In the following image, you can see the <strong>help<\/strong> page of the <strong>getent <\/strong>command in <strong>Linux<\/strong>.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3171\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-11.png\" alt=\"Showing the help page of the getent command in Linux. \" width=\"825\" height=\"429\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-11.png 825w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-11-300x156.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-11-1024x532.png 1024w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-11-767x399.png 767w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-11-1536x799.png 1536w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-11-2048x1065.png 2048w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-11-288x150.png 288w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-11-100x52.png 100w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-11-673x350.png 673w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent-command-in-linux-11-788x409.png 788w\" sizes=\"(max-width: 825px) 100vw, 825px\" \/><\/p>\n<h2><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p style=\"text-align: justify;\">In this article, I&#8217;ve illustrated a few of the useful operations of the <strong>getent<\/strong> command. I&#8217;ve also provided some relevant examples. You should be able to use the <strong>getent<\/strong> command effectively on your own if you properly read this article and follow the above-mentioned guidelines. I hope these examples will help you on your journey to be a power user of the<strong> Linux<\/strong> command line.<\/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\/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\/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\/apt-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201capt\u201d Command in Linux [13+ Practical Examples]<\/a><\/strong><\/li>\n<li><a href=\"https:\/\/linuxsimply.com\/top-command-in-linux\/\" target=\"_blank\" rel=\"noopener\"><strong>The &#8220;top&#8221; Command in Linux [8 Practical Examples]<\/strong><\/a><\/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<\/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;3156&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;1&quot;,&quot;legendonly&quot;:&quot;&quot;,&quot;readonly&quot;:&quot;&quot;,&quot;score&quot;:&quot;1&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;1\\\/5 - (1 vote)&quot;,&quot;size&quot;:&quot;24&quot;,&quot;title&quot;:&quot;The \u201cgetent\u201d Command in Linux [11 Practical Examples]&quot;,&quot;width&quot;:&quot;26.5&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: 26.5px;\">\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            1\/5 - (1 vote)    <\/div>\n    <\/div>\n","protected":false},"excerpt":{"rendered":"<p>There are many command-line tools in Linux that can be used to access user information stored in a database. One &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"The \u201cgetent\u201d Command in Linux [11 Practical Examples]\" class=\"read-more button\" href=\"https:\/\/linuxsimply.com\/getent-command-in-linux\/#more-3156\" aria-label=\"Read more about The \u201cgetent\u201d Command in Linux [11 Practical Examples]\">Read more<\/a><\/p>\n","protected":false},"author":314892,"featured_media":3172,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[51],"class_list":["post-3156","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 \u201cgetent\u201d Command in Linux [11 Practical Examples]<\/title>\n<meta name=\"description\" content=\"The getent command in Linux is a tool that facilitates retrieving data from system databases including passwd, groups, and services.\" \/>\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\/getent-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 \u201cgetent\u201d Command in Linux [11 Practical Examples]\" \/>\n<meta property=\"og:description\" content=\"The getent command in Linux is a tool that facilitates retrieving data from system databases including passwd, groups, and services.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/linuxsimply.com\/getent-command-in-linux\/\" \/>\n<meta property=\"og:site_name\" content=\"LinuxSimply\" \/>\n<meta property=\"article:published_time\" content=\"2023-01-08T04:48:57+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-28T10:54:40+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent.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=\"S. M. Amdadul Islam\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"S. M. Amdadul Islam\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"12 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/getent-command-in-linux\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/getent-command-in-linux\\\/\"},\"author\":{\"name\":\"S. M. Amdadul Islam\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#\\\/schema\\\/person\\\/d0ccfa2e6c3bddb8ae34898f9d45b4ee\"},\"headline\":\"The \u201cgetent\u201d Command in Linux [11 Practical Examples]\",\"datePublished\":\"2023-01-08T04:48:57+00:00\",\"dateModified\":\"2024-04-28T10:54:40+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/getent-command-in-linux\\\/\"},\"wordCount\":1979,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/getent-command-in-linux\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/01\\\/getent.png\",\"keywords\":[\"system commands\"],\"articleSection\":[\"Linux Commands\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/linuxsimply.com\\\/getent-command-in-linux\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/getent-command-in-linux\\\/\",\"url\":\"https:\\\/\\\/linuxsimply.com\\\/getent-command-in-linux\\\/\",\"name\":\"The \u201cgetent\u201d Command in Linux [11 Practical Examples]\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/getent-command-in-linux\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/getent-command-in-linux\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/01\\\/getent.png\",\"datePublished\":\"2023-01-08T04:48:57+00:00\",\"dateModified\":\"2024-04-28T10:54:40+00:00\",\"description\":\"The getent command in Linux is a tool that facilitates retrieving data from system databases including passwd, groups, and services.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/getent-command-in-linux\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/linuxsimply.com\\\/getent-command-in-linux\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/getent-command-in-linux\\\/#primaryimage\",\"url\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/01\\\/getent.png\",\"contentUrl\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/01\\\/getent.png\",\"width\":400,\"height\":400,\"caption\":\"getent command in linux\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/getent-command-in-linux\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/linuxsimply.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"The \u201cgetent\u201d Command in Linux [11 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\\\/d0ccfa2e6c3bddb8ae34898f9d45b4ee\",\"name\":\"S. M. Amdadul Islam\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/S.-M.-Amdadul-Islam-II-96x96.png\",\"url\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/S.-M.-Amdadul-Islam-II-96x96.png\",\"contentUrl\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/S.-M.-Amdadul-Islam-II-96x96.png\",\"caption\":\"S. M. Amdadul Islam\"},\"description\":\"Hello everyone. I am S. M. Amdadul Islam, currently working as a Linux Content Developer Executive at SOFTEKO. I am a Naval Architecture and Marine Engineering (NAME) graduate from the Bangladesh University of Engineering and Technology. In addition to my regular work, I enjoy watching Youtube, discovering new things, gossiping with friends, visiting new places, and taking photos of landscapes. Read Full Bio\",\"sameAs\":[\"https:\\\/\\\/www.linkedin.com\\\/in\\\/amdadul-islam\"],\"url\":\"https:\\\/\\\/linuxsimply.com\\\/author\\\/amdad\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"The \u201cgetent\u201d Command in Linux [11 Practical Examples]","description":"The getent command in Linux is a tool that facilitates retrieving data from system databases including passwd, groups, and services.","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\/getent-command-in-linux\/","og_locale":"en_US","og_type":"article","og_title":"The \u201cgetent\u201d Command in Linux [11 Practical Examples]","og_description":"The getent command in Linux is a tool that facilitates retrieving data from system databases including passwd, groups, and services.","og_url":"https:\/\/linuxsimply.com\/getent-command-in-linux\/","og_site_name":"LinuxSimply","article_published_time":"2023-01-08T04:48:57+00:00","article_modified_time":"2024-04-28T10:54:40+00:00","og_image":[{"width":400,"height":400,"url":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent.png","type":"image\/png"}],"author":"S. M. Amdadul Islam","twitter_card":"summary_large_image","twitter_misc":{"Written by":"S. M. Amdadul Islam","Est. reading time":"12 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/linuxsimply.com\/getent-command-in-linux\/#article","isPartOf":{"@id":"https:\/\/linuxsimply.com\/getent-command-in-linux\/"},"author":{"name":"S. M. Amdadul Islam","@id":"https:\/\/linuxsimply.com\/#\/schema\/person\/d0ccfa2e6c3bddb8ae34898f9d45b4ee"},"headline":"The \u201cgetent\u201d Command in Linux [11 Practical Examples]","datePublished":"2023-01-08T04:48:57+00:00","dateModified":"2024-04-28T10:54:40+00:00","mainEntityOfPage":{"@id":"https:\/\/linuxsimply.com\/getent-command-in-linux\/"},"wordCount":1979,"commentCount":0,"publisher":{"@id":"https:\/\/linuxsimply.com\/#organization"},"image":{"@id":"https:\/\/linuxsimply.com\/getent-command-in-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent.png","keywords":["system commands"],"articleSection":["Linux Commands"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/linuxsimply.com\/getent-command-in-linux\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/linuxsimply.com\/getent-command-in-linux\/","url":"https:\/\/linuxsimply.com\/getent-command-in-linux\/","name":"The \u201cgetent\u201d Command in Linux [11 Practical Examples]","isPartOf":{"@id":"https:\/\/linuxsimply.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/linuxsimply.com\/getent-command-in-linux\/#primaryimage"},"image":{"@id":"https:\/\/linuxsimply.com\/getent-command-in-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent.png","datePublished":"2023-01-08T04:48:57+00:00","dateModified":"2024-04-28T10:54:40+00:00","description":"The getent command in Linux is a tool that facilitates retrieving data from system databases including passwd, groups, and services.","breadcrumb":{"@id":"https:\/\/linuxsimply.com\/getent-command-in-linux\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/linuxsimply.com\/getent-command-in-linux\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/linuxsimply.com\/getent-command-in-linux\/#primaryimage","url":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent.png","contentUrl":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/getent.png","width":400,"height":400,"caption":"getent command in linux"},{"@type":"BreadcrumbList","@id":"https:\/\/linuxsimply.com\/getent-command-in-linux\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/linuxsimply.com\/"},{"@type":"ListItem","position":2,"name":"The \u201cgetent\u201d Command in Linux [11 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\/d0ccfa2e6c3bddb8ae34898f9d45b4ee","name":"S. M. Amdadul Islam","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/09\/S.-M.-Amdadul-Islam-II-96x96.png","url":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/09\/S.-M.-Amdadul-Islam-II-96x96.png","contentUrl":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/09\/S.-M.-Amdadul-Islam-II-96x96.png","caption":"S. M. Amdadul Islam"},"description":"Hello everyone. I am S. M. Amdadul Islam, currently working as a Linux Content Developer Executive at SOFTEKO. I am a Naval Architecture and Marine Engineering (NAME) graduate from the Bangladesh University of Engineering and Technology. In addition to my regular work, I enjoy watching Youtube, discovering new things, gossiping with friends, visiting new places, and taking photos of landscapes. Read Full Bio","sameAs":["https:\/\/www.linkedin.com\/in\/amdadul-islam"],"url":"https:\/\/linuxsimply.com\/author\/amdad\/"}]}},"_links":{"self":[{"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/posts\/3156","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\/314892"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/comments?post=3156"}],"version-history":[{"count":0,"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/posts\/3156\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/media\/3172"}],"wp:attachment":[{"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/media?parent=3156"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/categories?post=3156"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/tags?post=3156"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}