Tuesday, May 22, 2012

How come cp still in interactive mode when overiding

When you use the command cp -f -r /somedirectory. Somehow there is still a prompt when you overide. Theoretically, cp -f will overide the interactive mode but somehow it did not.

When it happened, do look at your .bashrc where you have a line
alias cp='cp -i'
This may have caused interactive mode not to be over-written by "cp -f"

Friday, May 18, 2012

Logging out other users in Linux

If you wish to logout other users on your Linux Box, use the command the pkill

Step 1: Check the list of users that are logged on the Linux Box, you can use the following command
# w

OR
# who
Once you know the users, you the command pkill

# pkill -KILL -u userid

Wednesday, May 16, 2012

Using tar to archive and compress a file or directory

Tar is one of my main tools to archive and compress file. It cannot be any easier

To create,compress and archive a new file, you can just simply use the command
$ tar cvzf foo.tgz *.c *.out
where c = create, v = verbose, z = compress, f = specifies the file name 

To archive a directory testdir, the
$ tar cvzf testdir.tgz testdir

Monday, May 14, 2012

Article - Intel® Solid-State Drive 910 Series Delivers High Performance, Endurance and Reliability for Data Center Tiering and Caching

An interesting article by Intel to address high-performning SSD.......

Intel® Solid-State Drive 910 Series Delivers High Performance, Endurance and Reliability for Data Center Tiering and Caching (Intel NewsRoom)

Another similar article can be found at Intel's PCI-E 910-Series SSD reviewed: blazing fast, even under pressure (Engadget)

Some of the hightlights:
  1. PCIe-based 400GB and 800GB Intel SSD 910 Series provides extreme performance, endurance and reliability for rigorous data center demands.
  2. Intel SSD 910 Series offers easy-to-install, seamless post-deployment server storage upgrade with no changes to existing server design.
  3. Using Intel High Endurance Technology, Intel SSD 910 offers 10 full drive writes a day for 5 years for 30x endurance.*

Thursday, May 10, 2012

Identifying the vendor and device id using lspci

Devices are mainly identified using a pair of hexadecimal numbers, like 1425:4801
The 4 first hexadecimal digits represent are the Vendor ID (1425)
The 4 last hexadecimal digits represent the Device ID (4801)


To find the vendor and device id, you can use the lspci command
lspci -n

OR
lspci -nn
Output for lspci -nn

10:00.0 Ethernet controller [0200]: Chelsio Communications Inc T420-CR Unified Wire Ethernet Controller [1425:4001]
10:00.1 Ethernet controller [0200]: Chelsio Communications Inc T420-CR Unified Wire Ethernet Controller [1425:4001]
10:00.2 Ethernet controller [0200]: Chelsio Communications Inc T420-CR Unified Wire Ethernet Controller [1425:4001]
10:00.3 Ethernet controller [0200]: Chelsio Communications Inc T420-CR Unified Wire Ethernet Controller [1425:4001]
10:00.4 Ethernet controller [0200]: Chelsio Communications Inc T420-CR Unified Wire Ethernet Controller [1425:4401]
10:00.5 SCSI storage controller [0100]: Chelsio Communications Inc T420-CR Unified Wire Storage Controller [1425:4501]
10:00.6 Fibre Channel [0c04]: Chelsio Communications Inc T420-CR Unified Wire Storage Controller [1425:4601]
10:00.7 Ethernet controller [0200]: Chelsio Communications Inc Device [1425:0000]
10:01.0 Ethernet controller [0200]: Chelsio Communications Inc T420-CR Unified Wire Ethernet Controller [1425:4801]
10:01.4 Ethernet controller [0200]: Chelsio Communications Inc T420-CR Unified Wire Ethernet Controller [1425:4801]