{"id":587,"date":"2013-10-12T09:23:23","date_gmt":"2013-10-12T08:23:23","guid":{"rendered":"http:\/\/blog.thogersens.net\/?p=587"},"modified":"2013-10-15T10:35:19","modified_gmt":"2013-10-15T09:35:19","slug":"a-coulple-of-gnulinux-commands","status":"publish","type":"post","link":"https:\/\/jakobsens.net\/?p=587","title":{"rendered":"A coulple of GNU\/Linux commands"},"content":{"rendered":"<h2>Many of these command have options to give more specific details but use the <strong>man<\/strong> or <strong>info<\/strong> command to get more details&#8230;<\/h2>\n<pre>$ <strong>man id\r\n<\/strong>ID(1)\u00a0       \u00a0\u00a0\u00a0\u00a0     \u00a0 User Commands\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 ID(1)\r\n\r\nNAME\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 id - print real and effective user and group IDs\r\n\r\nSYNOPSIS\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 id [OPTION]... [USERNAME]\r\n\r\nDESCRIPTION\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Print user and group information for the specified USERNAME,\r\n       or (when USERNAME omitted) for the current user.\r\n\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 -a\u00a0\u00a0\u00a0\u00a0 ignore, for compatibility with other versions\r\n...<\/pre>\n<h2>If you need to know your user id (uid) or group id(gid) then the command <strong>id<\/strong> will help you:<\/h2>\n<pre>$ <strong>id<\/strong>\r\nuid=1003(abbas) gid=544(users) groups=544(users)\r\n,29(audio),44(video),125(vboxusers),130(mythtv),512(Domain Admins),\r\n513(Domain Users)<\/pre>\n<p>If you need to know which dusk systems you have on your compuer then the command <strong>fdisk<\/strong> can help you<\/p>\n<pre>$ <strong>sudo fdisk -l\r\n<\/strong> [sudo] password for abbas: \r\n\r\nDisk \/dev\/sda: 1999.3 GB, 1999307276288 bytes\r\n255 heads, 63 sectors\/track, 243068 cylinders, total 3904897024 sectors\r\nUnits = sectors of 1 * 512 = 512 bytes\r\nSector size (logical\/physical): 512 bytes \/ 512 bytes\r\nI\/O size (minimum\/optimal): 512 bytes \/ 512 bytes\r\nDisk identifier: 0x0005c6c8\u00a0\u00a0 \r\nDevice Boot\u00a0\u00a0\u00a0\u00a0\u00a0 Start\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 End\u00a0\u00a0\u00a0\u00a0\u00a0 Blocks\u00a0\u00a0 Id\u00a0 System\r\n\/dev\/sda1\u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0\u00a0 2048  1413574655\u00a0\u00a0 706786304\u00a0\u00a0 83\u00a0 Linux\r\n\/dev\/sda2\u00a0  1413574656\u00a0 3904897023\u00a0 1245661184\u00a0\u00a0 83\u00a0 Linux\r\nWARNING: GPT (GUID Partition Table) detected on '\/dev\/sdb'! \r\nThe util fdisk doesn't support GPT. Use GNU Parted.<\/pre>\n<h2>The command <strong>lsusb<\/strong> will show all connected devices on the usb bus:<\/h2>\n<pre>$ <strong>lsusb<\/strong>\r\nBus 003 Device 002: ID 045e:006d Microsoft Corp. eHome Remote Control\r\n Keyboard keys\r\nBus 003 Device 003: ID 046d:c52b Logitech, Inc. Unifying Receiver\r\nBus 009 Device 002: ID 046d:0b06 Logitech, Inc. \r\nBus 009 Device 003: ID 1a40:0101 Terminus Technology Inc. 4-Port HUB\r\nBus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub\r\nBus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub\r\nBus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub\r\nBus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub\r\nBus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub\r\nBus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub\r\nBus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub\r\nBus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub\r\nBus 009 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub\r\nBus 009 Device 004: ID 046d:c71b Logitech, Inc. \r\nBus 009 Device 005: ID 046d:c71c Logitech, Inc. \r\nBus 009 Device 006: ID 046d:08c1 Logitech, Inc. QuickCam Fusion\r\nBus 009 Device 007: ID 056a:00bc Wacom Co., Ltd \r\nBus 009 Device 008: ID 1a40:0101 Terminus Technology Inc. 4-Port HUB\r\nBus 009 Device 009: ID 1a40:0101 Terminus Technology Inc. 4-Port HUB\r\nBus 010 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub\r\nBus 009 Device 014: ID 0424:4060 Standard Microsystems Corp. Ultra \r\nFast Media Reader\r\nBus 009 Device 013: ID 0424:2640 Standard Microsystems Corp. USB 2.0 \r\nHub\r\nBus 009 Device 010: ID 085c:0400 ColorVision, Inc. \r\nBus 009 Device 011: ID 046d:c52b Logitech, Inc. Unifying Receiver\r\nBus 009 Device 012: ID 0424:2514 Standard Microsystems Corp. USB 2.0 \r\nHub<\/pre>\n<h2>Install RMP package on ubuntu<\/h2>\n<p>Install alien and other necessary packages:<\/p>\n<pre>$ sudo <strong>apt-get<\/strong> install alien dpkg-dev debhelper build-essential<\/pre>\n<p>Run the alien command.<\/p>\n<pre>$ sudo <strong>alien<\/strong> packagename.rpm<\/pre>\n<p>Install the package,<\/p>\n<pre>$ sudo <strong>dpkg<\/strong> -i packagename.deb<\/pre>\n<p>The package is installed, if it\u2019s compatible with your system \ud83d\ude09<\/p>\n<p>More will come as I go \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Many of these command have options to give more specific details but use the man or info command to get more details&#8230; $ man id ID(1)\u00a0 \u00a0\u00a0\u00a0\u00a0 \u00a0 User Commands\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 ID(1) NAME \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 id &#8211; print real and effective user and group IDs SYNOPSIS \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 id [OPTION]&#8230; [USERNAME] DESCRIPTION \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Print user and group information [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-587","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/jakobsens.net\/index.php?rest_route=\/wp\/v2\/posts\/587","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jakobsens.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jakobsens.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jakobsens.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/jakobsens.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=587"}],"version-history":[{"count":7,"href":"https:\/\/jakobsens.net\/index.php?rest_route=\/wp\/v2\/posts\/587\/revisions"}],"predecessor-version":[{"id":591,"href":"https:\/\/jakobsens.net\/index.php?rest_route=\/wp\/v2\/posts\/587\/revisions\/591"}],"wp:attachment":[{"href":"https:\/\/jakobsens.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=587"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jakobsens.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=587"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jakobsens.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=587"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}