A coulple of GNU/Linux commands

Many of these command have options to give more specific details but use the man or info command to get more details…

$ man id
ID(1)                   User Commands                            ID(1)

NAME
       id - print real and effective user and group IDs

SYNOPSIS
       id [OPTION]... [USERNAME]

DESCRIPTION
       Print user and group information for the specified USERNAME,
       or (when USERNAME omitted) for the current user.

       -a     ignore, for compatibility with other versions
...

If you need to know your user id (uid) or group id(gid) then the command id will help you:

$ id
uid=1003(abbas) gid=544(users) groups=544(users)
,29(audio),44(video),125(vboxusers),130(mythtv),512(Domain Admins),
513(Domain Users)

If you need to know which dusk systems you have on your compuer then the command fdisk can help you

$ sudo fdisk -l
 [sudo] password for abbas: 

Disk /dev/sda: 1999.3 GB, 1999307276288 bytes
255 heads, 63 sectors/track, 243068 cylinders, total 3904897024 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0005c6c8   
Device Boot      Start         End      Blocks   Id  System
/dev/sda1         2048  1413574655   706786304   83  Linux
/dev/sda2   1413574656  3904897023  1245661184   83  Linux
WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! 
The util fdisk doesn't support GPT. Use GNU Parted.

The command lsusb will show all connected devices on the usb bus:

$ lsusb
Bus 003 Device 002: ID 045e:006d Microsoft Corp. eHome Remote Control
 Keyboard keys
Bus 003 Device 003: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 009 Device 002: ID 046d:0b06 Logitech, Inc. 
Bus 009 Device 003: ID 1a40:0101 Terminus Technology Inc. 4-Port HUB
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 009 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 009 Device 004: ID 046d:c71b Logitech, Inc. 
Bus 009 Device 005: ID 046d:c71c Logitech, Inc. 
Bus 009 Device 006: ID 046d:08c1 Logitech, Inc. QuickCam Fusion
Bus 009 Device 007: ID 056a:00bc Wacom Co., Ltd 
Bus 009 Device 008: ID 1a40:0101 Terminus Technology Inc. 4-Port HUB
Bus 009 Device 009: ID 1a40:0101 Terminus Technology Inc. 4-Port HUB
Bus 010 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 009 Device 014: ID 0424:4060 Standard Microsystems Corp. Ultra 
Fast Media Reader
Bus 009 Device 013: ID 0424:2640 Standard Microsystems Corp. USB 2.0 
Hub
Bus 009 Device 010: ID 085c:0400 ColorVision, Inc. 
Bus 009 Device 011: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 009 Device 012: ID 0424:2514 Standard Microsystems Corp. USB 2.0 
Hub

Install RMP package on ubuntu

Install alien and other necessary packages:

$ sudo apt-get install alien dpkg-dev debhelper build-essential

Run the alien command.

$ sudo alien packagename.rpm

Install the package,

$ sudo dpkg -i packagename.deb

The package is installed, if it’s compatible with your system 😉

More will come as I go 🙂

Leave a Reply