Skip to main content

Posts

Showing posts with the label tips

A Few Unix/Linux Tips

Some Basic Linux And Unix Commands Common Unix Commands [vi/vim] Save on Exit Copy/Paste the block of text in vi/vim How to get CPU utilization for Unix OS?

[Vista] Change or Modify the Drive Letter and Paths

In Windows Vista, if for whatever reason the drive letter or paths assignment to a disk-drive, CD/DVD drive, USB flash memory disk drive, or external hard disk drive needed to be changed or modified, users can use Disk Management console to manage the volumes and drives on the computer, including changing the drive letter and paths. To change the drive letter or paths in Windows Vista, just follow these simple steps: 1. Right click on Computer and select Manage to open and access Computer Management Console. Navigate to and expand the Storage section, and click on Disk Management to access Disk Management Console. Disk Management Console display the details of all available volumes and disk drives in the computer configuration in the right pane. Right click on the volume or disk drive that you want to change the drive letter, and select 'Change Drive Letter and Paths'. Then click on 'Change' button. Use the drop down list to select the new and your desired drive let...

How to get CPU utilization for Unix OS?

You may use top and ps commands. Display the process utilizing the most cpu and quits to sh:  top -b -n -1 Display CPU Utilization:  sar -u And use ps to display processes with the highest CPU utilization:  ps -eo pid,pcpu,args | sort +1n Read man pages of each of the above commands to get more details and supported options.

Copy/Paste the block of text in vi/vim

Mark the location of the first character of the block of text you want to copy by pressing mx This marks the begining of the text to be copied into a buffer 'x'. Move the cursor over the last character of the block of text you want to copy and press (shift)+x By pressing shift you are moving all the characters from mark to the current position into a buffer. To copy (or, in vi terminology, to yank the buffered text) press y'x This will yank everything from the buffer x. ('tick' character ' is command in vi to read from the named buffer) Now move the cursor above the location where you want to paste the yanked text and press p p (for paste) will insert the copied (yanked) text at the line below the cursor.

How to make WSAD ask for workspace location?

When WSAD starts-up, it ask for the workspace location to open. In the same dialog box, there is a checkbox below the workspace location and it reads like - Use this workspace as the default and donot show this dialog box again. Accidently, I checked the checkbox, and alas, I was unable to change my workspace. So, what to do now? How to get the dialog box prompt back? Right click on the WSAD icon and go to Properties -> Shortcut -> Target. Add -setworkspace to Target, and we are ready to go. After making the changes, Target should read like the below- "C:\tools\IBM\WebSphere Studio\Application Developer\v5.1.2\wsappdev.exe" -setworkspace Next time, you open WSAD, you will be prompted to select your workspace!

[Windows Vista] Have you found the snipper yet?

If you use Windows Vista OS, this tip may come handy for you as there is a hidden snipper tool available in Vista. All you need is to 'uncover' it. Goto Start -> Control Panel -> Programs Click on "Turn Windows Features on or off" Scroll down to "Table PC Optional Components" and check it if unchecked. Now, hit the start menu and type in " snip " to find and run the snipping tool . You can use Snipping Tool to capture a screen shot, or snip, of any object on your screen, and then annotate, save, or share the image. Simply use a mouse or tablet pen to capture any of the following types of snips: • Free-form Snip. Draw an irregular line, such as a circle or a triangle, around an object. • Rectangular Snip. Draw a precise line by dragging the cursor around an object to form a rectangle. • Window Snip. Select a window, such as a browser window or dialog box, that you want to capture. • Full-screen Snip. Capture the entire screen when you sele...