

{"id":110804,"date":"2022-10-10T11:00:40","date_gmt":"2022-10-10T05:30:40","guid":{"rendered":"https:\/\/data-flair.training\/blogs\/?p=110804"},"modified":"2022-10-10T11:09:14","modified_gmt":"2022-10-10T05:39:14","slug":"how-to-list-users-in-linux","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/how-to-list-users-in-linux\/","title":{"rendered":"How to List Users in Linux?"},"content":{"rendered":"<p>In this article, you will learn how to list the users in Linux-based operating systems. We will learn more about users, what happens when we create them and then will we see how to list the users using various commands like awk, cut, cat, and getent.<\/p>\n<p>We will also look at some bonus tips like displaying the number of users, UID range, printing only the usernames, searching for a particular user name, and more. Apart from all of this, we will also understand the format of the output that is printed on the screen. So buckle up and read till the end!<\/p>\n<h3>What is a user in Linux?<\/h3>\n<p>We all know what a user is, but let us take a look at what a user is in the intimidating words of computer science language. A user is an entity in an operating system that can manipulate files and perform several other applications like running, writing, and reading programs.<\/p>\n<p>We know by now that Linux is a multiuser platform. To keep the system productive, organized, and functional we must manage these users properly. The system administrator must know all the users to manage users and their permissions.<\/p>\n<p>Tracking all the users is a very crucial job. We can make use of multiple tools to do so, which we will look at in this article. We also know that everything in Linux is a file, all the information regarding users is stored in the \u201c\/etc\/passwd\u201d file, and the hash passwords are stored in \u201c\/etc\/shadow\u201d file.<\/p>\n<p>Each user is identified by a unique UID, which is a \u201cUser Identification number\u201d. When the operating system is installed, the UID 0 is given to the root user and the UID 1 to 199 are reserved for the system users. Meaning that as and when a new user is created they will be assigned a sequential number from 1 to 199. The UIDs for the local users begin from 1000.<\/p>\n<h3>Creating a user in Linux<\/h3>\n<p>Before we even learn how to manage the user and get information regarding them, let us first look at what the system does when creating a new user.<\/p>\n<p>When we are creating a user In Linux, the system does the following:<\/p>\n<p>1. It assigns a UID to the new user.<br \/>\n2. It creates another new \/home directory for the new user.<br \/>\n3. Sets the default shell as \/bin\/sh for the new user<br \/>\n4. Creates a private user group named after the user name you entered.<br \/>\n5. Contents of the directory \u201c\/etc\/skel\u201d are copied to the home directory of the new user.<br \/>\n6. It copies files containing environmental variables for the user\u2019s session like .bashrc, .bash_profile, and .bash_logout to the new user&#8217;s home directory.<\/p>\n<h3>Listing all the users in the \/etc\/passwd file in Linux<\/h3>\n<p>There are many ways to list the users in the \/etc\/passwd file, let us look at some of them.<\/p>\n<p>1. The first method is to list all of the data in the file, to do so, use the following command:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">less \/etc\/passwd<\/pre>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/08\/listing-all-the-users-in-the-passwd-file-by-using-the-less-command.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-110885\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/08\/listing-all-the-users-in-the-passwd-file-by-using-the-less-command.webp\" alt=\"listing all the users in the passwd file by using the less command\" width=\"780\" height=\"792\" \/><\/a><\/p>\n<p>Before we look into other methods, let us first understand the output of the above screenshot. The data is printed in the format shown below:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">&lt;username&gt;:&lt;password&gt;:&lt;UID&gt;:&lt;GID&gt;:&lt;GECOS&gt;:&lt;home_dir&gt;:&lt;shell_path&gt;<\/pre>\n<p>Let us take a closer look at what each field is for.<\/p>\n<h4>a. &lt;username&gt;<\/h4>\n<p>This field specifies the name of the use you want to create.<\/p>\n<h4>b. &lt;password&gt;<\/h4>\n<p>This field specifies the value of an encrypted password. An \u201cx\u201d in this field denotes that the encrypted password is stored in the \/etc\/shadow file.<\/p>\n<h4>c. &lt;UID&gt;<\/h4>\n<p>This field specifies the value of the user identity number.<\/p>\n<h4>d. &lt;GID&gt;<\/h4>\n<p>This field takes in the value of the<\/p>\n<h4>e. &lt;GECOS&gt;<\/h4>\n<p>This field specifies the additional information like the full name of the user or comment (GECOS)<\/p>\n<h4>f. &lt;home_dir&gt;<\/h4>\n<p>This field specifies the absolute path of the user\u2019s home directory<\/p>\n<h4>g. &lt;shell_path&gt;<\/h4>\n<p>This field specifies the login shell of the user<\/p>\n<p>2. If you want to print out only the usernames and not the remaining data, we can either use the awk command or the cut command, let us look at both:<\/p>\n<p>a. You can use the awk command as follows to print only the usernames:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">awk -F: \u2018{ print $1 }\u2019 \/etc passwd<\/pre>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/08\/listing-all-the-users-in-the-passwd-file-by-using-the-awk-command.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-110886\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/08\/listing-all-the-users-in-the-passwd-file-by-using-the-awk-command.webp\" alt=\"listing all the users in the passwd file by using the awk command\" width=\"652\" height=\"614\" \/><\/a><\/p>\n<p>b. You can use the cut command as follows to print only the usernames:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">cut -d: -f1 \/etc\/passwd<\/pre>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/08\/listing-all-the-users-in-the-passwd-file-by-using-the-cut-command.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-110887\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/08\/listing-all-the-users-in-the-passwd-file-by-using-the-cut-command.webp\" alt=\"listing all the users in the passwd file by using the cut command\" width=\"612\" height=\"661\" \/><\/a><\/p>\n<p>c. the third method to display all of the information regarding the users is using the \u201cgetent\u201d command. Use the getent command as shown below to print all the information regarding the users in the system:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">getent passwd<\/pre>\n<h3><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/08\/listing-all-the-users-in-the-passwd-file-by-using-the-getent-command.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-110888\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/08\/listing-all-the-users-in-the-passwd-file-by-using-the-getent-command.webp\" alt=\"listing all the users in the passwd file by using the getent command\" width=\"780\" height=\"585\" \/><\/a><\/h3>\n<h3>Checking if a user exists or not<\/h3>\n<p>Hopefully, by now we all know that if we want to search for something we make use of the \u201cgrep\u201d command. Similarly to check if a user exists or not, we pipe the grep command to the getent command as shown below:<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/08\/checking-if-a-user-exists-or-not-by-piping-the-grep-command-with-the-getent-command.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-110889\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/08\/checking-if-a-user-exists-or-not-by-piping-the-grep-command-with-the-getent-command.webp\" alt=\"checking if a user exists or not by piping the grep command with the getent command\" width=\"758\" height=\"130\" \/><\/a><\/p>\n<p>However, we can also check if a user exists or not without the grep command also, we can simply specify the string we are searching for after the getent command as shown:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">getent passwd &lt;username&gt;<\/pre>\n<h3><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/08\/checking-if-a-user-exists-or-not-by-using-the-getent-command.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-110890\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/08\/checking-if-a-user-exists-or-not-by-using-the-getent-command.webp\" alt=\"checking if a user exists or not by using the getent command\" width=\"758\" height=\"132\" \/><\/a><\/h3>\n<h3>Counting the number of users<\/h3>\n<p>We also know by now that if we want to count something, we need to use the \u201cwc\u201d command. Therefore if we want to count the number of users in the passwd file, we simply pipe the getent command with the wc command along with the option \u201c-l\u201d to print out the number of lines.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/08\/counting-the-number-of-users.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-110891\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/08\/counting-the-number-of-users.webp\" alt=\"counting the number of users\" width=\"542\" height=\"80\" \/><\/a><\/p>\n<h3>Printing the contents of the \/etc\/shadow file<\/h3>\n<p>We saw earlier that the hash passwords are stored in the file \u201c\/etc\/shadow\u201d. We can print out its contents by using the following command:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">less \/etc\/shadow<\/pre>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/08\/printing-the-contents-of-the-shadow-file.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-110892\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/08\/printing-the-contents-of-the-shadow-file.webp\" alt=\"printing the contents of the shadow file\" width=\"410\" height=\"900\" \/><\/a><\/p>\n<p>Before we head further, let us understand the output shown in the above screenshots. The output is in the following format:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">[username]:[enc_pwd]:[last_pwd_change]:[pwd_validity]:[warn_date]:[acc_validity]:[acc_disablity]<\/pre>\n<p>Let us take a closer look at what each field is for.<\/p>\n<h4>1. [username]<\/h4>\n<p>This field specifies the name of the user<\/p>\n<h4>2. [enc_pwd]<\/h4>\n<p>This field specifies the encrypted password. A black entry {::} denotes that a password is not required to login into that user\u2019s account and an asterisk, {:*:}, denotes the account has been disabled.<\/p>\n<h4>3. [last_pwd_change]<\/h4>\n<p>This field gives information about when the password was last changed<\/p>\n<h4>4. [pwd_validity]<\/h4>\n<p>This file specifies the number of days after which the password will expire<\/p>\n<h4>5. [warn_date]<\/h4>\n<p>The warning period specifies the number of days before the password expiry date, from which the user will start receiving a warning notification for password change.<\/p>\n<h4>6. [acc_validity]<\/h4>\n<p>The account validity field specifies the number of days after which the account will be disabled, once the password is expired<\/p>\n<h4>7. [acc_disablity]<\/h4>\n<p>The account disability field specifies the number of days since which the account had been disabled.<\/p>\n<h3>Types of users in Linux<\/h3>\n<p>Now that we know how to list all the users in the system, let us discuss the types of users in an operating system. Generally speaking, there are 2 types of users in Linux:<\/p>\n<h4>1. System user<\/h4>\n<p>The system user is the one that creates normal users. In other words, the system user is the root. The system user is automatically created when you first install the operating system. Moreover, you can also create system users for particular applications and programs.<\/p>\n<h4>2. Normal user<\/h4>\n<p>The normal users are the ones that are created by the system or root user, actually, we even users with sudo privileges can create normal users<\/p>\n<h3>Checking UID_MINand UID_MAX<\/h3>\n<p>We saw earlier how the user identification number is allotted to each user, If you want to check what the UID range is for the normal users, use the following command:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">grep -E '^UID_MIN|^UID_MAX' \/etc\/login.defs<\/pre>\n<h3><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/08\/checking-uid-minand-uid-max.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-110893\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/08\/checking-uid-minand-uid-max.webp\" alt=\"checking uid min and uid max\" width=\"772\" height=\"100\" \/><\/a><\/h3>\n<h3>Listing normal users only<\/h3>\n<p>Now that we have the UID range of the normal user, we can use this to print all the normal users in the system by using the following command:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">getent passwd {1000..6000}<\/pre>\n<h3><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/08\/listing-normal-users-only.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-110894\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/08\/listing-normal-users-only.webp\" alt=\"listing normal users only\" width=\"770\" height=\"85\" \/><\/a><\/h3>\n<h3>Using the cat command to list users<\/h3>\n<p>Just before we finish, here is a bonus method for printing the user information &#8211; using the cat command. Just like the gentent command, we use the following command:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">cat \/etc\/passwd<\/pre>\n<h3><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/08\/listing-all-the-users-in-the-passwd-file-by-using-the-cat-command.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-110895\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/08\/listing-all-the-users-in-the-passwd-file-by-using-the-cat-command.webp\" alt=\"listing all the users in the passwd file by using the cat command\" width=\"780\" height=\"352\" \/><\/a><\/h3>\n<h3>Summary<\/h3>\n<p>As you have seen, listing users can be done by many commands like cut, cat, awk, getent, and many more. You have now learned what users are, what happens when we create them, and different ways to list the users using various commands like awk, cut, cat and getent.<\/p>\n<p>You have also learned some bonus commands like displaying the number of users, UID range, printing only the usernames, searching for a particular user name, printing only normal users, and more. Apart from all of this, you also understood the format of the output that is printed on the screen.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this article, you will learn how to list the users in Linux-based operating systems. We will learn more about users, what happens when we create them and then will we see how to&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":110812,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[35],"tags":[27096,27097],"class_list":["post-110804","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","tag-how-to-list-users-in-linux","tag-listing-users-in-linux"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to List Users in Linux? - DataFlair<\/title>\n<meta name=\"description\" content=\"Learn what are users in Linux, what happens when we create them &amp; how to list them using various commands like awk, cut, cat, and getent.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/data-flair.training\/blogs\/how-to-list-users-in-linux\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to List Users in Linux? - DataFlair\" \/>\n<meta property=\"og:description\" content=\"Learn what are users in Linux, what happens when we create them &amp; how to list them using various commands like awk, cut, cat, and getent.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/how-to-list-users-in-linux\/\" \/>\n<meta property=\"og:site_name\" content=\"DataFlair\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/DataFlairWS\/\" \/>\n<meta property=\"article:published_time\" content=\"2022-10-10T05:30:40+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-10-10T05:39:14+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/06\/listing-users-in-linux.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"DataFlair Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:site\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"DataFlair Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"9 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to List Users in Linux? - DataFlair","description":"Learn what are users in Linux, what happens when we create them & how to list them using various commands like awk, cut, cat, and getent.","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:\/\/data-flair.training\/blogs\/how-to-list-users-in-linux\/","og_locale":"en_US","og_type":"article","og_title":"How to List Users in Linux? - DataFlair","og_description":"Learn what are users in Linux, what happens when we create them & how to list them using various commands like awk, cut, cat, and getent.","og_url":"https:\/\/data-flair.training\/blogs\/how-to-list-users-in-linux\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2022-10-10T05:30:40+00:00","article_modified_time":"2022-10-10T05:39:14+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/06\/listing-users-in-linux.webp","type":"image\/webp"}],"author":"DataFlair Team","twitter_card":"summary_large_image","twitter_creator":"@DataFlairWS","twitter_site":"@DataFlairWS","twitter_misc":{"Written by":"DataFlair Team","Est. reading time":"9 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/how-to-list-users-in-linux\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/how-to-list-users-in-linux\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/b49855299264df5e27e3ec6c2cd9fde9"},"headline":"How to List Users in Linux?","datePublished":"2022-10-10T05:30:40+00:00","dateModified":"2022-10-10T05:39:14+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/how-to-list-users-in-linux\/"},"wordCount":1424,"commentCount":0,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/how-to-list-users-in-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/06\/listing-users-in-linux.webp","keywords":["how to list users in linux","listing users in linux"],"articleSection":["Linux Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/how-to-list-users-in-linux\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/how-to-list-users-in-linux\/","url":"https:\/\/data-flair.training\/blogs\/how-to-list-users-in-linux\/","name":"How to List Users in Linux? - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/how-to-list-users-in-linux\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/how-to-list-users-in-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/06\/listing-users-in-linux.webp","datePublished":"2022-10-10T05:30:40+00:00","dateModified":"2022-10-10T05:39:14+00:00","description":"Learn what are users in Linux, what happens when we create them & how to list them using various commands like awk, cut, cat, and getent.","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/how-to-list-users-in-linux\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/how-to-list-users-in-linux\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/how-to-list-users-in-linux\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/06\/listing-users-in-linux.webp","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/06\/listing-users-in-linux.webp","width":1200,"height":628,"caption":"listing users in linux"},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/how-to-list-users-in-linux\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog Home","item":"https:\/\/data-flair.training\/blogs\/"},{"@type":"ListItem","position":2,"name":"Linux Tutorials","item":"https:\/\/data-flair.training\/blogs\/category\/linux\/"},{"@type":"ListItem","position":3,"name":"How to List Users in Linux?"}]},{"@type":"WebSite","@id":"https:\/\/data-flair.training\/blogs\/#website","url":"https:\/\/data-flair.training\/blogs\/","name":"DataFlair","description":"Learn Today. Lead Tomorrow.","publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/data-flair.training\/blogs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/data-flair.training\/blogs\/#organization","name":"DataFlair","url":"https:\/\/data-flair.training\/blogs\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","width":106,"height":48,"caption":"DataFlair"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/DataFlairWS\/","https:\/\/x.com\/DataFlairWS","https:\/\/www.linkedin.com\/company\/dataflair-web-services-pvt-ltd\/","https:\/\/www.youtube.com\/user\/DataFlairWS"]},{"@type":"Person","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/b49855299264df5e27e3ec6c2cd9fde9","name":"DataFlair Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/ef46b745ddad2fad690af626c6ef29b91809ad0a9f5ef398d07817d8cad042f5?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/ef46b745ddad2fad690af626c6ef29b91809ad0a9f5ef398d07817d8cad042f5?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ef46b745ddad2fad690af626c6ef29b91809ad0a9f5ef398d07817d8cad042f5?s=96&d=mm&r=g","caption":"DataFlair Team"},"description":"DataFlair Team is a group of passionate educators and industry experts dedicated to providing high-quality online learning resources on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. With years of experience in the field, the team aims to simplify complex topics and help learners advance their careers. At DataFlair, we believe in empowering students and professionals with the knowledge and skills needed to thrive in today\u2019s fast-paced tech industry. Follow us for Free courses, expert insights, tutorials, and practical tips to boost your learning journey.","url":"https:\/\/data-flair.training\/blogs\/author\/datafbdad\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/110804","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/comments?post=110804"}],"version-history":[{"count":8,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/110804\/revisions"}],"predecessor-version":[{"id":110896,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/110804\/revisions\/110896"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/110812"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=110804"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=110804"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=110804"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}