Gang's Tech Stuff

Archive for the ‘Unix Commands’ Category

Command to display Processors and System Conf

Posted by: Gangadhar on: August 20, 2009

Have you even wondered how many physical/virtual processors your machine is having? Well, you psrinfo is the command which can display that information. psrinfo – displays information about processors. prtconf – print system configuration. dmesg – collect system diagnostic messages to form error log. Ex: (My machine is having 4 physical processors which are divided [...]

Converting lowercase to uppercase in Shell scripts

Posted by: Gangadhar on: March 26, 2009

Have you ever wondered why there is no toUpper() kind of function in shell script? Well, i think the reason is typeset command. What does it do exactly? A lot: * Set a parameter as an integer by using -i option so as to fasten the arithmetic operations on that variable. * Convert to lower [...]

Renaming a Clearcase View

Posted by: Gangadhar on: March 12, 2009

How do one can rename a Clearcase View on Unix/Linux/Solaris? Very simple, use rename command. :-p Just kiddin, never mind. Well, renaming a Clearcase View requires the renaming of both the storage and the tag. Here are the basic steps for the same but you are recomended to refer the Product Documentation if it doesn’t [...]

ipcs & ipcrm

Posted by: Gangadhar on: December 8, 2008

ipcs: To display the shared memory and semaphores. ipcrm: To remove the shared memory and semaphores present in the memory. Background: When we will be using large database, there is a tendency to use shared memory concept to speed up the response time. After updating the database, if the new item didn’t reflect in the [...]


Follow

Get every new post delivered to your Inbox.