The Design Company.

You can change this area in header.php

Special Sidebar

You can add any content in this area by go to
Admin->Design->Widgets->Sidebar4

Archive for March 27th, 2008

Basic visual editor Command

These are the basic of vi editing, you will find quite helpful;

Editing commands

Moving around the file:

h — cursor left

i — cursor right

k — cursor up

j — cursor down

^ & B — Beginning of line

$ — end of line

) — Next sentence

( — Previous sentence

} — Next Paragraph

{ — Previous Paragraph

:$ — end of file

w — one character forward

W — one word forward

:20 — go to Line no 20 or whatever number you give

Displaying file info:

^g — give name of the file, current line and total lines of a file at the bottom.

Inserting and appending text :

i — inserts text to the left of cursor

I — inserts in the beginning of line

a — appends text to right of cursor

A — appends to the end of line

Adding new line:

o — add a new line below the current line

O — adds a new line above the current line.

Deleting the text:

x — deletes text above the cursor

X — deletes text character on the right of cursor

20dd — deletes 20

dd — deletes current line

D — delete till end of current line.

d# — delete to where the # (j,k,l,h) specifies.

d/ — delete till pattern is found (forward).

d? — delete till pattern is found (backward).

d’ — delete till mark ‘char’.

Replacing a character & word:

r — replace the character above the cursor.

R — replces characters until Esc is pressed.

cw — replaces the word from cursor to the end indicated by $ sign.

C — replaces till end of line.

Substitute:

s — subistutes current charcater.

S — substitutes entire line.

Repeating last command:

. — repeats the last text.

Undo the last change:

u — undo last change.
U — undo changes to the current line.

Copy and pasting lines:

yy — copies the current line into buffer.
5yy — copies 5 lines from the current line.
p — pastes the current buffer.

Recovering an unsaved vi file:

vi -r — restores a unsaved / crashed file from buffer.

Searching:

:/name — & return searches for the word name in the file

n — continues search forward.

N — searches backwards.

Substitution:

:s///g

Saving:

:w — saves the text does not quit.

:wq — saves & quit the editor.

ZZ — save & quit the editor.

:q! — Quit without saving.

Miscellaneous:

m — mark this location and name it char.

‘ — (quote character) return to “line” named char.

` — (back-quote character) return to “place” named char.

‘’ or “ — (quote quote) return from last movement.

These commands allow the vi editor screen (or window) to move up or down several lines and to be refreshed.
^f move forward one screen
^b move backward one screen
^d move down (forward) one half screen
^u move up (back) one half screen
^l redraws the screen
^r redraws the screen, removing deleted lines

Window Comp Command- Part- V

Window computer command-contd..

Regional Settings- intl.cpl

Registry Editor- regedit

Registry Editor- regedit32

Remote Desktop- mstsc

Removable Storage- ntmsmgr.msc

Removable Storage Operator Requests- ntmsoprq.msc

Resultant Set of Policy (XP Prof)- rsop.msc

Scanners and Cameras- sticpl.cpl

Scheduled Tasks- control schedtasks

Security Center- wscui.cpl

Services- services.msc

Shared Folders- fsmgmt.msc

Shuts Down Windows- shutdown

Sounds and Audio- mmsys.cpl

Spider Solitare Card Game- spider

SQL Client Configuration- cliconfg

System Configuration Editor- sysedit

System Configuration Utility- msconfig

System File Checker Utility (Scan Immediately)- sfc /sc

Run Line Commands

 

BCKGZM.EXE – Backgammon

CHKRZM.EXE – Checkers

CONF.EXE – NetMeeting

DIALER.EXE – Phone Dialer

HELPCTR.EXE – Help and Support

HRTZZM.EXE – Internet Hearts

HYPERTRM.EXE – HyperTerminal

ICWCONN1.EXE – Internet Connection Wizard

IEXPLORE.EXE – Internet Explorer

INETWIZ.EXE – Setup Your Internet Connection

INSTALL.EXE – User’s Folder

MIGWIZ.EXE – File and Settings Transfer Wizard

MOVIEMK.EXE – Windows Movie Maker

MPLAYER2.EXE – Windows Media Player Version 6.4.09.1120

MSCONFIG.EXE – System Configuration Utility

MSIMN.EXE – Outlook Express

MSINFO32.EXE – System Information

MSMSGS.EXE – Windows Messenger

MSN6.EXE – MSN Explorer

PBRUSH.EXE – Paint

PINBALL.EXE – Pinball

RVSEZM.EXE – Reversi

SHVLZM.EXE – Spades

TABLE30.EXE – User’s Folder

WAB.EXE – Windows Address Book

WABMIG.EXE – Address Book Import Tool

WINNT32.EXE – User’s Folder

WMPLAYER.EXE – Windows Media Player

WRITE.EXE – Wordpad

 

ACCWIZ.EXE – Accessibility Wizard

CALC.EXE – Calculator

CHARMAP.EXE – Character Map

CLEANMGR.EXE – Disk Space Cleanup Manager

CLICONFG.EXE – SQL Client Configuration Utility

CLIPBRD.EXE – Clipbook Viewer

CLSPACK.EXE – Class Package Export Tool

CMD.EXE – Command Line

CMSTP.EXE – Connection Manager Profile Installer

CONTROL.EXE – Control Panel

Recover data from the crash disk

If you’ve Linux based OS installed and your disk  is crashed,  you can retrieve data from ddrescue commands in following easy steps.
Ddrescue is data recovery tool that copy data from one file or block device (hard disc, cdrom etc),it is a tool to help out you to save data from crashed partition. It has capability to read the data and if it fails it will go on with the next sectors, where tools like dd will fail. If the copying process is interrupted by the user it is possible to continue at any position later. It can copy backwards too.

Install first the dd_rescue or ddrescue

If you are using RedHat/Fedora Core Linux, type the following command:

# yum -y install ddrescue

If you are using Debian Linux:# apt-get install ddrescue
Or directly download ddrescue from official GNU Web site. http://www.gnu.org/software/ddrescue/ddrescue.html

Make sure that Debian install ddrescue binary as /bin/dd_rescue and other distribution as /usr/bin/ddrescue

To make exact copy of /dev/sda (damaged) to /dev/sdb (make sure sdb is empty) you need to type following command:

# ddrescue /dev/hda /dev/hdb

Your further step is to run fsck on /dev/sdb partition to recover/save data. Remember do not touch originally damaged /dev/sda. If this procedure fails you can send your disk to professional data recovery service. For example if /home (user data) is on /dev/sda2, you need to run a command on /dev/sdb2:
# fsck /dev/sdb2
Once fsck run, mount /dev/sdb2 somewhere and see if you can access data:
# mount /dev/sdb2 /mnt/data
Now it is time to take backup using tar command.
ddrescue command supports many options. Just to remind you, Don’t forget to read man page:
# man ddrescue OR # man dd_rescue

Proudly Hosted by BODHost Ltd

VPS Hosting