{"id":6398,"date":"2018-04-07T10:17:00","date_gmt":"2018-04-07T15:17:00","guid":{"rendered":"http:\/\/www.carnaghan.com\/?post_type=epkb_post_type_1&p=6398"},"modified":"2018-04-07T10:17:00","modified_gmt":"2018-04-07T15:17:00","slug":"how-to-find-your-uiduserid-and-gidgroupid-in-linux-via-the-command-line","status":"publish","type":"epkb_post_type_1","link":"https:\/\/www.carnaghan.com\/knowledge-base\/how-to-find-your-uiduserid-and-gidgroupid-in-linux-via-the-command-line\/","title":{"rendered":"How to find your uid(userid) and gid(groupid) in Linux via the command line"},"content":{"rendered":"
    \n
  1. Open a new\u00a0Terminal Window<\/strong>\u00a0(Command Line<\/em>) if in GUI mode<\/li>\n
  2. Find your\u00a0username<\/strong>\u00a0by typing the command:\u00a0\u00a0whoami<\/span><\/li>\n
  3. Type in the command\u00a0id username\u00a0<\/span>to find your\u00a0gid<\/strong>\u00a0and\u00a0uid<\/strong>
    \nEXAMPLE of results<\/strong>:\u00a0uid=1000(username) gid=1000(username) groups=1000(username) ,4(adm),20(dialout),24(cdrom), 46(plugdev),106(lpadmin),121(admin),122(sambashare)<\/em><\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"

    Open a new\u00a0Terminal Window\u00a0(Command Line) if in GUI mode Find your\u00a0username\u00a0by typing the command:\u00a0\u00a0whoami Type in the command\u00a0id username\u00a0to find your\u00a0gid\u00a0and\u00a0uid EXAMPLE of results:\u00a0uid=1000(username) gid=1000(username) groups=1000(username) ,4(adm),20(dialout),24(cdrom), 46(plugdev),106(lpadmin),121(admin),122(sambashare)<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"epkb_post_type_1_category":[4412],"epkb_post_type_1_tag":[],"yoast_head":"\nHow to find your uid(userid) and gid(groupid) in Linux via the command line - Ian Carnaghan<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.carnaghan.com\/knowledge-base\/how-to-find-your-uiduserid-and-gidgroupid-in-linux-via-the-command-line\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to find your uid(userid) and gid(groupid) in Linux via the command line - Ian Carnaghan\" \/>\n<meta property=\"og:description\" content=\"Open a new\u00a0Terminal Window\u00a0(Command Line) if in GUI mode Find your\u00a0username\u00a0by typing the command:\u00a0\u00a0whoami Type in the command\u00a0id username\u00a0to find your\u00a0gid\u00a0and\u00a0uid EXAMPLE of results:\u00a0uid=1000(username) gid=1000(username) groups=1000(username) ,4(adm),20(dialout),24(cdrom), 46(plugdev),106(lpadmin),121(admin),122(sambashare)\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.carnaghan.com\/knowledge-base\/how-to-find-your-uiduserid-and-gidgroupid-in-linux-via-the-command-line\/\" \/>\n<meta property=\"og:site_name\" content=\"Ian Carnaghan\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@icarnaghan\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.carnaghan.com\/knowledge-base\/how-to-find-your-uiduserid-and-gidgroupid-in-linux-via-the-command-line\/\",\"url\":\"https:\/\/www.carnaghan.com\/knowledge-base\/how-to-find-your-uiduserid-and-gidgroupid-in-linux-via-the-command-line\/\",\"name\":\"How to find your uid(userid) and gid(groupid) in Linux via the command line - Ian Carnaghan\",\"isPartOf\":{\"@id\":\"https:\/\/www.carnaghan.com\/#website\"},\"datePublished\":\"2018-04-07T15:17:00+00:00\",\"dateModified\":\"2018-04-07T15:17:00+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.carnaghan.com\/knowledge-base\/how-to-find-your-uiduserid-and-gidgroupid-in-linux-via-the-command-line\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.carnaghan.com\/knowledge-base\/how-to-find-your-uiduserid-and-gidgroupid-in-linux-via-the-command-line\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.carnaghan.com\/knowledge-base\/how-to-find-your-uiduserid-and-gidgroupid-in-linux-via-the-command-line\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.carnaghan.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to find your uid(userid) and gid(groupid) in Linux via the command line\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.carnaghan.com\/#website\",\"url\":\"https:\/\/www.carnaghan.com\/\",\"name\":\"Ian Carnaghan\",\"description\":\"Software Developer, Blogger, Educator\",\"publisher\":{\"@id\":\"https:\/\/www.carnaghan.com\/#\/schema\/person\/c689c24d516c51968a88b628860740a5\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.carnaghan.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/www.carnaghan.com\/#\/schema\/person\/c689c24d516c51968a88b628860740a5\",\"name\":\"Ian Carnaghan\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.carnaghan.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/f2aa5baca80c2be728de43a975185d91?s=96&d=retro&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/f2aa5baca80c2be728de43a975185d91?s=96&d=retro&r=g\",\"caption\":\"Ian Carnaghan\"},\"logo\":{\"@id\":\"https:\/\/www.carnaghan.com\/#\/schema\/person\/image\/\"},\"description\":\"I am a software developer and online educator who likes to keep up with all the latest in technology. I also manage cloud infrastructure, continuous monitoring, DevOps processes, security, and continuous integration and deployment.\",\"sameAs\":[\"http:\/\/www.carnaghan.com\",\"https:\/\/x.com\/icarnaghan\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to find your uid(userid) and gid(groupid) in Linux via the command line - Ian Carnaghan","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:\/\/www.carnaghan.com\/knowledge-base\/how-to-find-your-uiduserid-and-gidgroupid-in-linux-via-the-command-line\/","og_locale":"en_US","og_type":"article","og_title":"How to find your uid(userid) and gid(groupid) in Linux via the command line - Ian Carnaghan","og_description":"Open a new\u00a0Terminal Window\u00a0(Command Line) if in GUI mode Find your\u00a0username\u00a0by typing the command:\u00a0\u00a0whoami Type in the command\u00a0id username\u00a0to find your\u00a0gid\u00a0and\u00a0uid EXAMPLE of results:\u00a0uid=1000(username) gid=1000(username) groups=1000(username) ,4(adm),20(dialout),24(cdrom), 46(plugdev),106(lpadmin),121(admin),122(sambashare)","og_url":"https:\/\/www.carnaghan.com\/knowledge-base\/how-to-find-your-uiduserid-and-gidgroupid-in-linux-via-the-command-line\/","og_site_name":"Ian Carnaghan","twitter_card":"summary_large_image","twitter_site":"@icarnaghan","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.carnaghan.com\/knowledge-base\/how-to-find-your-uiduserid-and-gidgroupid-in-linux-via-the-command-line\/","url":"https:\/\/www.carnaghan.com\/knowledge-base\/how-to-find-your-uiduserid-and-gidgroupid-in-linux-via-the-command-line\/","name":"How to find your uid(userid) and gid(groupid) in Linux via the command line - Ian Carnaghan","isPartOf":{"@id":"https:\/\/www.carnaghan.com\/#website"},"datePublished":"2018-04-07T15:17:00+00:00","dateModified":"2018-04-07T15:17:00+00:00","breadcrumb":{"@id":"https:\/\/www.carnaghan.com\/knowledge-base\/how-to-find-your-uiduserid-and-gidgroupid-in-linux-via-the-command-line\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.carnaghan.com\/knowledge-base\/how-to-find-your-uiduserid-and-gidgroupid-in-linux-via-the-command-line\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.carnaghan.com\/knowledge-base\/how-to-find-your-uiduserid-and-gidgroupid-in-linux-via-the-command-line\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.carnaghan.com\/"},{"@type":"ListItem","position":2,"name":"How to find your uid(userid) and gid(groupid) in Linux via the command line"}]},{"@type":"WebSite","@id":"https:\/\/www.carnaghan.com\/#website","url":"https:\/\/www.carnaghan.com\/","name":"Ian Carnaghan","description":"Software Developer, Blogger, Educator","publisher":{"@id":"https:\/\/www.carnaghan.com\/#\/schema\/person\/c689c24d516c51968a88b628860740a5"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.carnaghan.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.carnaghan.com\/#\/schema\/person\/c689c24d516c51968a88b628860740a5","name":"Ian Carnaghan","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.carnaghan.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/f2aa5baca80c2be728de43a975185d91?s=96&d=retro&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f2aa5baca80c2be728de43a975185d91?s=96&d=retro&r=g","caption":"Ian Carnaghan"},"logo":{"@id":"https:\/\/www.carnaghan.com\/#\/schema\/person\/image\/"},"description":"I am a software developer and online educator who likes to keep up with all the latest in technology. I also manage cloud infrastructure, continuous monitoring, DevOps processes, security, and continuous integration and deployment.","sameAs":["http:\/\/www.carnaghan.com","https:\/\/x.com\/icarnaghan"]}]}},"_links":{"self":[{"href":"https:\/\/www.carnaghan.com\/wp-json\/wp\/v2\/epkb_post_type_1\/6398"}],"collection":[{"href":"https:\/\/www.carnaghan.com\/wp-json\/wp\/v2\/epkb_post_type_1"}],"about":[{"href":"https:\/\/www.carnaghan.com\/wp-json\/wp\/v2\/types\/epkb_post_type_1"}],"author":[{"embeddable":true,"href":"https:\/\/www.carnaghan.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.carnaghan.com\/wp-json\/wp\/v2\/comments?post=6398"}],"version-history":[{"count":0,"href":"https:\/\/www.carnaghan.com\/wp-json\/wp\/v2\/epkb_post_type_1\/6398\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.carnaghan.com\/wp-json\/wp\/v2\/media?parent=6398"}],"wp:term":[{"taxonomy":"epkb_post_type_1_category","embeddable":true,"href":"https:\/\/www.carnaghan.com\/wp-json\/wp\/v2\/epkb_post_type_1_category?post=6398"},{"taxonomy":"epkb_post_type_1_tag","embeddable":true,"href":"https:\/\/www.carnaghan.com\/wp-json\/wp\/v2\/epkb_post_type_1_tag?post=6398"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}