
{"id":6739,"date":"2012-02-20T15:19:44","date_gmt":"2012-02-20T15:19:44","guid":{"rendered":"http:\/\/www.beautifulwork.org\/?p=6739"},"modified":"2012-02-20T15:19:44","modified_gmt":"2012-02-20T15:19:44","slug":"ls-n-option","status":"publish","type":"post","link":"https:\/\/www.trueangle.org\/index.php\/2012\/02\/20\/ls-n-option\/","title":{"rendered":"How to  list numeric user and group IDs  ?"},"content":{"rendered":"<pre style=\"width:60%;border-color:#ffb502;border-radius:3%;\">\n<h4>UNIX Command<\/h4>\n\n$ls\na1.txt\ta2.txt\n$ls -n\ntotal 4\n-rw-r--r-- 1 1000 1000 0 Feb 19 22:30 a1.txt\n-rw-r--r-- 1 1000 1000 2 Feb 19 22:31 a2.txt\n$id a1.txt\nid: a1.txt: No such user\n$id jeffrin\nuid=1000(jeffrin) gid=1000(jeffrin) groups=1000(jeffrin),29(audio),33(www-data),1001(wireshark),119(mysql)\n$\n\n<h4>Unix Explanation<\/h4>\n-n, --numeric-uid-gid\n              like -l, but list numeric user and group IDs\n\n<h4>Theory Drop<\/h4>\n\nUnix-like operating systems identify  users within the kernel by an\nunsigned integer value called  a user identifier, often abbreviated\nto UID or User ID. The range of UID values varies amongst different\nsystems;  at the  very least,  a UID  represents a  15-bit integer,\nranging between 0 and 32767, with the following restrictions:\n\nThe superuser must always have a UID of zero (0).\n\nThe user  \"nobody\" traditionally got  the largest possible  UID (as\nthe opposite of the  superuser): 32767. More recently, systems have\nassigned the user  a UID in the system range  (1-100, see below) or\nin the range 100530-100535.\n\nConvention reserves UIDs from 1 to 100 for system use; some manuals\nrecommend reserving  UIDs from  101 up to  499 (Red  Hat Enterprise\nLinux) or even up to 999 (Debian) as well.\n\nsource : http:\/\/en.wikipedia.org\/wiki\/User_identifier\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>UNIX Command $ls a1.txt a2.txt $ls -n total 4 -rw-r&#8211;r&#8211; 1 1000 1000 0 Feb 19 22:30 a1.txt -rw-r&#8211;r&#8211; 1 1000 1000 2 Feb 19 22:31 a2.txt $id a1.txt id: a1.txt: No such user $id jeffrin uid=1000(jeffrin) gid=1000(jeffrin) groups=1000(jeffrin),29(audio),33(www-data),1001(wireshark),119(mysql) $ Unix Explanation -n, &#8211;numeric-uid-gid like -l, but list numeric user and group IDs Theory Drop &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.trueangle.org\/index.php\/2012\/02\/20\/ls-n-option\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How to  list numeric user and group IDs  ?&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/6739"}],"collection":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/comments?post=6739"}],"version-history":[{"count":0,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/6739\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/media?parent=6739"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/categories?post=6739"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/tags?post=6739"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}