Archive for January, 2010

Unix VIM Editor - Tutorial

Unix vim editor can be useful for file processing and editing.
Escape Mode Commands:

A -> will append the upcoming text at the end of the file
i -> Will change the vim editor into insert mode to enter content.
o -> Insert new line (below)
O-> Insert new line (above)
w -> move by word (forward)
b -> move by word [...]

Unix File Commands

Few file related commands in Unix Operating System.

The “wc” can be used to count the number of lines, words and characters in a file.

Example:
wc filename -> will list the number of lines, words and characters.
wc -l filename -> will list the number of lines.
wc -w filename -> will list the number of words
wc -c filename [...]

Some Basic UNIX Commands

File Copying in UNIX:
We can copy the files by using the unix command “cp”, The “cp” command requires “source” & “destination”.
Example:
cp “mysourcefile.extension” “destinationpath/destinationfile.extension”.
Creating a Folder or Directory in Unix:
We can create the directory using the “mkdir” command.
Example: mkdir “foldername”.