Tuesday, October 26, 2010

802.11 Frames





Current 802.11 standards define "frame" types for use in transmission of data as well as management and control of wireless links.

Frames are divided into very specific and standardized sections. Each frame has a MAC header, payload and FCS. Some frames may not have payload portion. First 2 bytes of MAC header is a frame control field that provides detailed information about the frame. The sub fields of the frame control field is presented in order.

* Protocol Version: It is two bits in size and represents the protocol version. Currently used protocol version is zero. Other values are reserved for future use.

* Type: It is two bits in size and helps to identify the type of WLAN frame. Control, Data and Management are various frame types defined in IEEE 802.11.
* Sub Type: It is four bits in size. Type and Sub type are combined together to identify the exact frame.

* ToDS and FromDS: Each is one bit in size. They indicate whether a data frame is headed for a distributed system. Control and management frames set these values to zero. All the data frames will have one of these bits set. However communication within an IBSS network always set these bits to zero.

* More Fragment: The More Fragmentation bit is set most notably when higher level packets have been partitioned and will be set for all non-final sections. Some management frames may require partitioning as well.

* Retry: Sometimes frames require retransmission, and for this there is a Retry bit which is set to one when a frame is resent. This aids in the elimination of duplicate frames.

* Power Management: The Power Management bit indicates the power management state of the sender after the completion of a frame exchange. Access points are required to manage the connection and will never set the power saver bit.

* More Data: The More Data bit is used to buffer frames received in a distributed system. The access point uses this bit to facilitate stations in power saver mode. It indicates that at least one frame is available and addresses all stations connected.

* WEP: The WEP bit is modified after processing a frame. It is toggled to one after a frame has been decrypted or if no encryption is set it will have already been one.

* Order: This bit is only set when the "strict ordering" delivery method is employed. Frames and fragments are not always sent in order as it causes a transmission performance penalty.

The next two bytes are reserved for the Duration ID field. This field can take one of three forms: Duration, Contention-Free Period (CFP), and Association ID (AID).

An 802.11 frame can have up to four address fields. Each field can carry a MAC address. Address 1 is the receiver, Address 2 is the transmitter, Address 3 is used for filtering purposes by the receiver.

* The Sequence Control field is a two-byte section used for identifying message order as well as eliminating duplicate frames. The first 4 bits are used for the fragmentation number and the last 12 bits are the sequence number.
* An optional two-byte Quality of Service control field which was added with 802.11e.
* The Frame Body field is variable in size, from 0 to 2304 bytes plus any overhead from security encapsulation and contains information from higher layers.
* The Frame Check Sequence (FCS) is the last four bytes in the standard 802.11 frame. Often referred to as the Cyclic Redundancy Check (CRC), it allows for integrity check of retrieved frames. As frames are about to be sent the FCS is calculated and appended. When a station receives a frame it can calculate the FCS of the frame and compare it to the one received. If they match, it is assumed that the frame was not distorted during transmission.[18]

Management Frames allow for the maintenance of communication. Some common 802.11 subtypes include:

* Authentication frame: 802.11 authentication begins with the WNIC sending an authentication frame to the access point containing its identity. With an open system authentication the WNIC only sends a single authentication frame and the access point responds with an authentication frame of its own indicating acceptance or rejection. With shared key authentication, after the WNIC sends its initial authentication request it will receive an authentication frame from the access point containing challenge text. The WNIC sends an authentication frame containing the encrypted version of the challenge text to the access point. The access point ensures the text was encrypted with the correct key by decrypting it with its own key. The result of this process determines the WNIC's authentication status.
* Association request frame: sent from a station it enables the access point to allocate resources and synchronize. The frame carries information about the WNIC including supported data rates and the SSID of the network the station wishes to associate with. If the request is accepted, the access point reserves memory and establishes an association ID for the WNIC.
* Association response frame: sent from an access point to a station containing the acceptance or rejection to an association request. If it is an acceptance, the frame will contain information such an association ID and supported data rates.
* Beacon frame: Sent periodically from an access point to announce its presence and provide the SSID, and other parameters for WNICs within range.
* Deauthentication frame: Sent from a station wishing to terminate connection from another station.
* Disassociation frame: Sent from a station wishing to terminate connection. It's an elegant way to allow the access point to relinquish memory allocation and remove the WNIC from the association table.
* Probe request frame: Sent from a station when it requires information from another station.
* Probe response frame: Sent from an access point containing capability information, supported data rates, etc., after receiving a probe request frame.
* Reassociation request frame: A WNIC sends a reassociation request when it drops from range of the currently associated access point and finds another access point with a stronger signal. The new access point coordinates the forwarding of any information that may still be contained in the buffer of the previous access point.
* Reassociation response frame: Sent from an access point containing the acceptance or rejection to a WNIC reassociation request frame. The frame includes information required for association such as the association ID and supported data rates.

Control frames facilitate in the exchange of data frames between stations. Some common 802.11 control frames include:

* Acknowledgement (ACK) frame: After receiving a data frame, the receiving station will send an ACK frame to the sending station if no errors are found. If the sending station doesn't receive an ACK frame within a predetermined period of time, the sending station will resend the frame.
* Request to Send (RTS) frame: The RTS and CTS frames provide an optional collision reduction scheme for access point with hidden stations. A station sends a RTS frame to as the first step in a two-way handshake required before sending data frames.
* Clear to Send (CTS) frame: A station responds to an RTS frame with a CTS frame. It provides clearance for the requesting station to send a data frame. The CTS provides collision control management by including a time value for which all other stations are to hold off transmission while the requesting stations transmits.

----------------------

Management Frames

Management frames establish communications between stations and access points. They support Power Management and Contention Free modes. MAC management frames are also called MAC Management Protocol Data Units (MMPDUs). Management frames provide such services as authentication, association, and reassociation. Management frame bodies are never relayed through an access point. Instead they are “sourced” (generated) and sunk (read and disposed of) at the MAC layer, and therefore are never passed to the distribution system service or LLC. The Address 4 field is never used in an MMPDU. Unicast MMPDUs may be acknowledged, retransmitted, and fragmented[1]. Figure 6.1 depicts the common format of all management frames.

Click To expand Figure 6.1: MMPDU Frame Structure

Association Request Frame

A station will send an Association Request frame to an access point if it wants to associate with that access point. This frame exchange sequence ends successfully with an acknowledgement. A station becomes associated with an access point after the access point responds with an acceptance.

Click To expand Figure 6.2: Association Request Frame Body Contents

Association Response Frame

After an access point receives an Association Request frame and acknowledges it, the access point will send an Association Response frame to indicate whether or not it is accepting the association with the requesting station. This second frame exchange sequence ends successfully with an acknowledgment. The Association Response frame provides the status (acceptance or rejection) and an AID (if the association was accepted).

Click To expand Figure 6.3: Association Response Frame Body Contents

Reassociation Request Frame

A station will send a Reassociation Request frame to an access point if it already associated to the ESS and wants to reassociate to the ESS through another access point. This frame exchange sequence is ended successfully with an acknowledgment. A reassociation may occur if a station moves out of range from one access point and within range of another access point. The station will need to reassociate (not merely associate) with the new access point so that the new access point knows that it will need to negotiate the forwarding of data frames from the old access point and update its association table. Notice in Figure 6.4 that the Current AP Address (old AP address) fixed field is part of the Reassociation Frame.

Click To expand Figure 6.4: Reassociation Request Frame Body Contents

Reassociation Response Frame

After an access point receives a Reassociation Request frame, the access point will send a Reassociation Response frame to indicate whether or not it is accepting the reassociation with the sending station. This frame exchange sequence is ended successfully with an acknowledgment. Reassociation is dependent on authentication with/through the new access point. If the reassociation is successful, the new access point will indicate this status in the status code element and include a unique AID for this station to use if operating in Power Save Poll mode.

Click To expand Figure 6.5: Reassociation Response Frame Body Contents

Probe Request Frame

A station sends a Probe Request frame to obtain information from another station or access point. For example, a station may send a Probe Request frame to determine whether a certain access point is available. Mobile stations use Probe Request frames as part of the active scanning process.

Click To expand Figure 6.6: Probe Request Frame Body Contents

Probe Response Frame

If a station or access point receives a Probe Request frame, the station will respond to the requesting station with a Probe Response frame containing specific parameters about itself. All access points and the station which last generated the beacon frame (if operating as an IBSS) can respond to probe requests with Probe Response frames.

Click To expand Figure 6.7: Probe Response Frame Body Contents

Beacon Frame

An access point (or mobile station in an Ad Hoc network) periodically sends a beacon frame at a rate based on the aBeaconPeriod parameter in the MIB. The beacon provides synchronization among stations of a BSS, and includes a timestamp that all stations within its BSS use to update what 802.11 defines as a timing synchronization function (TSF) timer. The TSF is basically a station’s internal 802.11 clock. The Probe Response frame and beacon frame are identical, except that the beacon also carries the traffic indication map (TIM) information element.

If the access point supports the Point Coordination Function, then it uses a beacon frame to announce the beginning of a contention-free period. If the network is an independent BSS (that is, it has no access points), all stations periodically send beacons for synchronization purposes.

Click To expand Figure 6.8: Beacon Frame Body Contents

ATIM Frame

In an IBSS a station with frames buffered for other stations sends an Announcement Traffic Indication Message (ATIM) frame to each of these stations during the ATIM window, which immediately follows a beacon transmission in Ad Hoc mode. The station that sent the ATIM then transmits the buffered frames to the applicable recipients during a data window. The transmission of the ATIM frame alerts stations in powersave mode to stay awake long enough to solicit and receive their respective frames. The ATIM frame body is null.

Disassociation Frame

If a station or access point wants to terminate an association, it will send a Disassociation frame to the other station that is part of the association. A single Disassociation frame sent to the broadcast address by an access point can terminate associations with more than one station at a time.

Click To expand Figure 6.9: Disassociation Frame Body

Authentication Frame

A station sends an Authentication frame to an access point that it wants to authenticate with. The authentication process consists of the transmission of two or four authentication frames, depending on the type of authentication being implemented, Open System or Shared Key respectively. If Shared Key, the third authentication frame of the four is WEP encrypted. Each authentication frame requires an acknowledgment.

Click To expand Figure 6.10: Authentication Frame Body

Deauthentication Frame

A station sends a Deauthentication frame to a station or access point with which it wants to terminate communications.

Click To expand Figure 6.11: Deauthentication Frame Structure

Management Frame Summary

The chart below provides a quick reference to the contents and sizes (in octets) of each management frame type per the 802.11 series of standards).

Click To expand Figure 6.12: Management Frame Quick Reference Chart


Thanks to :
http://www.sss-mag.com/pdf/802_11tut.pdf
http://en.wikipedia.org/wiki/IEEE_802.11
http://www.wireless-net.org/McGraw.Hill-CWAP.Certified.Wir/8156final/LiB0061.html

Friday, October 22, 2010

shell script for enabling sniffer mode in wire shark

shell script for enabling sniffer mode in wire shark
--------------------------------------------
#! /bin/sh
sudo ifconfig wlan8 down
sudo iwconfig wlan8 mode monitor
echo "Enter Ch no. "
read ch_no
sudo iwconfig wlan8 ch $ch_no
#echo $ch_no
sudo ifconfig wlan8 up
sudo wireshark
----------------------------------------------

Tuesday, October 12, 2010

For personal customization of .emacs file

Missing .emacs file
Missing emacs init file

you can't find your .emacs file anywhere in your system. You've already looked in you home directory and it's nowhere to be found. Could somebody help me out?

So the solution is here.

There are two main versions of emacs - emacs and Xemacs and I don't think that either of them creates a .emacs file automatically - you have to create your own.

So what do you put in your .emacs? There are lots of examples of .emacs's that you can google for on the net, but here's one to start you off...
http://www.dotemacs.de/dotfiles/sample.emacs.html
...just save it to .emacs in your home directory.

If you have Xemacs installed, they don't use a file called .emacs but create a directory called .xemacs. Inside that directory you create a file called custom.el and that functions as your .emacs.

location of .emacs file :
/home/yourname/.emacs

eg: /home/siva/.emacs

Then add according to your need of your choice in emacs and save the file

sample .emacs file
;--------------------------

;displays the time in the status bar
(display-time)

;show paren, brace, and curly brace "partners" at all times
(show-paren-mode t)

;displays the battery power of laptop
(display-battery-mode)

;menu bar mode disable
(menu-bar-mode)

;status bar
(set-face-foreground 'modeline "blue")

;status bar
(set-face-background 'modeline "white")

;-------------------

Monday, October 11, 2010

ADB shell

What is ADB

ADB (Android Debug Bridge) is a tool that comes with the Android SDK that allows you to control and interface with your Android device. It is located in the tools folder when you unpack the SDK.

Source: ADB
Commands

Adb has many built in commands. Some are interactive (meaning they keep running until you stop them) and some just perform a simple task. Below is a list of the commands in the 1.0 SDK version of adb.

Android Debug Bridge version 1.0.20

-d - directs command to the only connected USB device
returns an error if more than one USB device is present.
-e - directs command to the only running emulator.
returns an error if more than one emulator is running.
-s - directs command to the USB device or emulator with
the given serial number
-p - simple product name like 'sooner', or
a relative/absolute path to a product
out directory like 'out/target/product/sooner'.
If -p is not specified, the ANDROID_PRODUCT_OUT
environment variable is used, which must
be an absolute path.
devices - list all connected devices

device commands:
adb push - copy file/dir to device
adb pull - copy file/dir from device
adb sync [ ] - copy host->device only if changed
(see 'adb help all')
adb shell - run remote shell interactively
adb shell - run remote shell command
adb emu - run emulator console command
adb logcat [ ] - View device log
adb forward - forward socket connections
forward specs are one of:
tcp:
localabstract:
localreserved:
localfilesystem:
dev:
jdwp: (remote only)
adb jdwp - list PIDs of processes hosting a JDWP transport
adb install [-l] [-r] - push this package file to the device and install it
('-l' means forward-lock the app)
('-r' means reinstall the app, keeping its data)
adb uninstall [-k] - remove this app package from the device
('-k' means keep the data and cache directories)
adb bugreport - return all information from the device
that should be included in a bug report.

adb help - show this help message
adb version - show version num

DATAOPTS:
(no option) - don't touch the data partition
-w - wipe the data partition
-d - flash the data partition

scripting:
adb wait-for-device - block until device is online
adb start-server - ensure that there is a server running
adb kill-server - kill the server if it is running
adb get-state - prints: offline | bootloader | device
adb get-product - prints:
adb get-serialno - prints:
adb status-window - continuously print device status for a specified device
adb remount - remounts the /system partition on the device read-write

networking:
adb ppp [parameters] - Run PPP over USB.
Note: you should not automatically start a PDP connection.
refers to the tty for PPP stream. Eg. dev:/dev/omap_csmi_tty1
[parameters] - Eg. defaultroute debug dump local notty usepeerdns

adb sync notes: adb sync [ ]
can be interpreted in several ways:

- If is not specified, both /system and /data partitions will be updated.

- If it is "system" or "data", only the corresponding partition
is updated.

Common Use

Some of the more common commands in adb are push, pull, shell, install, remount, and logcat.

Push sends a file from your desktop computer to your Android device:

adb push test.txt /sdcard/test.txt

Pull pulls a file from your Android device to your desktop computer:

adb pull /sdcard/test.txt test.txt

Shell lets you run an interactive shell (command prompt) on the Android device:

adb shell

Install lets you install an android APK file to your Android device:

adb install myapp.apk

Remount remounts the /system partition as writable (or readonly if it is already writeable):

adb remount

Logcat lets you view the devices debug logs in real time (must press control+c to exit):

adb logcat


----------------

Through ADB

Pull apps off phone onto computer
Code:

adb pull /system/sd/app app
adb pull /system/sd/app-private app-private

Push apps back to phone from the computer
Code:

adb push app /system/sd/app
adb push app-private /system/sd/app-private

Delete existing apps on SD
Code:

adb shell rm -r /system/sd/app
adb shell rm -r /system/sd/app-private


Through Terminal

Partition SD card - This erases everything on your SD card (*size* being the size of the FAT32 partition)
Code:

$ su
# cd /data
# wget http://64.105.21.209/bin/lib/droid/sdsplit
# chmod 555 sdsplit
# /data/sdsplit -fs *size* (add -nc to the end for JFv1.5ADP)


From the Recovery Screen

Sending an update file to your SD card:
Code:

adb shell mount /sdcard
adb shell rm /sdcard/update.zip
adb push *filename* /sdcard/update.zip


From Fastboot

Restoring a nandroid backup - Start command-prompt/terminal cd to the nandroid folder and enter following commands
Code:

fastboot erase boot
fastboot erase recovery
fastboot flash system system.img
fastboot flash boot boot.img
fastboot flash userdata data.img
fastboot flash recovery recovery.img
fastboot reboot

------------

Basic Android Terminal and ADB Shell Command List

1. How to open a cmd in Android Phone
Method 1: “Start” – “”Program”-” “Accessories” – “” Command Prompt ”
Method 2: “Start” – “” Run “, type cmd ENTER

2. How to restart Android Phone
When the phone and Computer is connected to the data cable, you can enter the following command
view source
print?
1 adb shell reboot === ENTER

3. Restart Android into Recovery Mode
With the data cable connected to your phone and computer, enter the following command
view source
print?
1 adb shell reboot recovery === ENTER

4. Convert back to ext2 partition
Restart the phone into Recovery mode, press “Alt + X” into the console. Open cmd and enter the following command
view source
print?
1 adb shell === ENTER
2 tune2fs-O ^ has_journal / dev/block/mmcblk0p2 === carriage return
3 e2fsck / dev/block/mmcblk0p2 === carriage return (optional, can be a problem area in section 2, when used)

5. Pulling applications from Android phone to computer
view source
print?
1 adb pull /system/sd/app app
2 adb pull /system/sd/app-private app-private

6. Pushing applications back to android phone from the computer
view source
print?
1 adb push app /system/sd/app
2 adb push app-private /system/sd/app-private

7. Delete existing apps on Android SD
view source
print?
1 adb shell rm -r /system/sd/app
2 adb shell rm -r /system/sd/app-private

8. Repair gravity System or switch to screen
Sometimes frequent brushing of phone can cause gravity system or switch to screen failure. Just follow the steps below-
Restart the phone into Recovery mode, press “Alt + X” into the console
Open cmd and enter the following command
view source
print?
1 mount / data === carriage return
2 rm / data / misc / akmd * / data / misc / rild * === ENTER

9. Ext2/ext3/ext4 formatted partition
Enter the following command in the cmd
view source
print?
1 adb remount === ENTER
2 adb shell === ENTER
3 rm-r / system / sd / * === carriage return

10. Remove/ system / app under the application
Under normal circumstances / system / app is not under an application. Use the following methods to remove these applications.
Open cmd and enter the following command
view source
print?
1 adb remount === ENTER
2 adb rm / system / app / Stocks.apk === Enter

11. If the start Time is too Long
Just enter the following command in order to view the boot process.
view source
print?
1 adb logcat === ENTER

12. Through Terminal Partition SD card
It will erase everything on your SD card
view source
print?
1 $ su
2 # cd /data
3 # wget http://64.105.21.209/bin/lib/droid/sdsplit
4 # chmod 555 sdsplit
5 # /data/sdsplit -fs *size* (add -nc to the end for JFv1.5ADP)

13. From the Recovery Screen, send an update file to your SD card.
view source
print?
1 adb shell mount /sdcard
2 adb shell rm /sdcard/update.zip
3 adb push *filename* /sdcard/update.zip

14. Restoring a nandroid backup via Fastboot
Start command-prompt/terminal cd to the nandroid folder and enter following commands
view source
print?
1 fastboot erase boot
2 fastboot erase recovery
3 fastboot flash system system.img
4 fastboot flash boot boot.img
5 fastboot flash userdata data.img
6 fastboot flash recovery recovery.img
7 fastboot reboot

15. Clear Search History in Android

Search History is accounted for Mobile Memory. It can also leak your privacy information as well. Just follow the steps below to clear android history.

Steps are as follows:

1. Make sure your mobile phone has Root authority.
2. Open the super-terminal.
3. Enter the following command
view source
print?
1 su
2 rm / data / data / com.android.vending / databases / suggestions.db

4. Exit Hyper Terminal and restart the phone.


Thanks to :
http://forum.xda-developers.com/showthread.php?t=517874
http://www.gadgetsdna.com/android-terminal-adb-shell-command-list/1168/
http://android-dls.com/wiki/index.php?title=ADB

Monday, September 27, 2010

Get familiar with the VIM editor

Get familiar with the VIM editor

This text will provide you information about the Linux / Unix vi text editor and it's options.


SYNTAX

vi [ -| -s ] [-l] [-L] [-R] [ -r [ filename ] ] [-S] [-t tag] [-v] [-V] [-x] [-w] [-n ] [-C] [+command | -c command ] filename

- | -s Suppress all interactive user feedback. This is useful when processing editor scripts.

-l Set up for editing LISP programs.

-L List the name of all files saved as the result of an editor or system crash.

-R Readonly mode; the readonly flag is set, preventing accidental overwriting of the file.

-r filename Edit filename after an editor or system crash. (Recovers the version of filename that was in the buffer when the crash occurred.)

-S This option is used in conjunction with the -t tag option to tell vi that the tags file may not be sorted and that, if the binary search (which relies on a sorted tags file) for tag fails to find it, the much slower linear search should also be done. Since the linear search is slow, users of large tags files should ensure that the tags files are sorted rather than use this flag. Creation of tags files normally produces sorted tags files. See ctags for more information on tags files.

-t tag Edit the file containing the tag, tag, and position the editor at its definition.

-v Start up in display editing state using vi . You can achieve the same effect by simply typing the vi command itself.

-V Verbose. When ex commands are read by means of standard input, the input will be echoed to standard error. This may be useful when processing ex commands within shell scripts.

-x Encryption option; when used, vi simulates the X command of ex and prompts the user for a key. This key is used to encrypt and decrypt text using the algorithm of the crypt command. The X command makes an educated guess to determine whether text read in is encrypted or not. The temporary buffer file is encrypted also, using a transformed version of the key typed in for the -x option. If an empty encryption key is entered (that is, if the return key is pressed right after the prompt), the file will not be encrypted. This is a good way to decrypt a file erroneously encrypted with a mistyped encryption key, such as a backspace or undo key.

-wn Set the default window size to n. This is useful when using the editor over a slow speed line.

-C Encryption option; same as the -x option, except that vi simulates the C command of ex . The C command is like the X command of ex , except that all text read in is assumed to have been encrypted.

+command | -c command Begin editing by executing the specified editor
command (usually a search or positioning command).
filename The file to be edited.


USER COMMANDS

Arrow keys Move cursor

hjkl Same as arrow keys

itextESC Insert text

cwnewESC Change word to new

easESC pluralize word (end of word; append s; escape from input state)

x delete a character

dw delete a word

dd delete a line

3dd deletes 3 lines

u undo previous change

ZZ exit vi , saving changes

:q!CR quit, discarding changes

/textCR search for text

^U ^D scroll up or down

:cmdCR any ex or ed command

ESC end insert or incomplete command

DEL (delete or rubout) interrupts

:wCR write back changes

:w!CR forced write, if permission originally not valid

:qCR quit

:q!CR quit, discard changes

:e nameCR edit file name

:e!CR reedit, discard changes

:e + nameCR edit, starting at end

:e +nCR edit, starting at line n

:e #CR edit alternate file

:e! #CR edit alternate file, discard changes

:w nameCR write file name

:w! nameCR overwrite file name

:shCR run shell, then return

:!cmdCR run cmd, then return

:nCR edit next file in arglist

:n argsCR specify new arglist

^G show current file and line

:ta tagCR position cursor to tag

F forward screen

^B backward screen

^D scroll down half screen

^U scroll up half screen

nG go to the beginning of the specified line (end default), where n is a line number

/pat next line matching pat

?pat previous line matching pat

n repeat last / or ? command

N reverse last / or ? command

/pat/+n nth line after pat

?pat?-n nth line before pat

]] next section/function

[[ previous section/function

( beginning of sentence

) end of sentence

{ beginning of paragraph

} end of paragraph

% find matching ( ) or { }

^L clear and redraw window

^R clear and redraw window if ^L is -> key

zCR redraw screen with current line at top of window

z-CR redraw screen with current line at bottom of window

z.CR redraw screen with current line at center of window

/pat/z-CR move pat line to bottom of window

zn.CR use n-line window

^E scroll window down one line

^Y scroll window up one line

`` move cursor to previous context

\'\' move cursor to first non-white space in line

mx mark current position with the ASCII lower-case letter x

`x move cursor to mark x

\'x move cursor to first non-white space in line marked by x

H top line on screen

L last line on screen

M middle line on screen

+ next line, at first non-white space character

- previous line, at first non-white space character

CR return, same as +

down-arrow or j next line, same column

up-arrow or k previous line, same column

^ first non-white space character

0 beginning of line

$ end of line

l or -> forward

h or <- backward

^H same as <- (backspace)

space same as -> (space bar)

fx find next x

Fx find next x

tx move to character following the next x

Tx move to character following the previous x

; repeat last f, F, t, or T

, repeat inverse of last f, F, t, or T

n| move to column n

% find matching ( ) or { }

w forward a word

b back a word

e end of word

) to next sentence

} to next paragraph

( back a sentence

{ back a paragraph

W forward a blank-delimited word

B back a blank-delimited word

E end of a blank-delimited word

^H erase last character (backspace)

^W erase last word

erase your erase character, same as ^H (backspace)

kill your kill character, erase this line of input

\\ quotes your erase and kill characters

ESC ends insertion, back to command mode

CTRL-C interrupt, suspends insert mode

^D backtab one character; reset left margin of autoindent

^^D caret (^) followed by control-d (^D); backtab to beginning of line; do not reset left margin of autoindent

0^D backtab to beginning of line; reset left margin of autoindent

^V quote non-printable character

a append after cursor

A append at end of line

i insert before cursor

I insert before first non-blank

o open line below

O open line above

rx replace single character with x

RtextESC replace characters

d delete

c change

y yank lines to buffer

> left shift

< right shift

! filter through command

C change rest of line (c$)

D delete rest of line (d$)

s substitute characters (cl)

S substitute lines (cc)

J join lines

x delete characters (dl)

X delete characters before cursor dh)

Y yank lines (yy)

3yy yank 3 lines

3yl yank 3 characters

p put back text after cursor

P put back text before cursor \" .nr )I xp\"n

put from buffer x \" .nr )I xy\"n

yank to buffer x \" .nr )I xd\"n

delete into buffer x

u undo last change

U restore current line

. repeat last change \" .nr )I dp\"n

retrieve d\'th last delete

Linux: How to check the hardware

Linux: How to check the hardware

I've noticed there are no good tutorials on how to check what hardware you have installed on your machine. In Linux there are many ways doing this so it's not an issue but you have to know the needed commands.

I'll start step by step checking different devices on your computer but there is a tool wich shows all so if you don't want to read much just scroll down to the lshw command.

Check on the CPU:

Here is the command that will help you to see what CPU you have installed:

root@Linux ~# cat /proc/cpuinfo

This will print the whole needed information for your CPU. Here is an example:

processor : 0
vendor_id : GenuineIntel
cpu family : 15
model : 2
model name : Intel(R) Celeron(R) CPU 2.40GHz
stepping : 9
cpu MHz : 2400.485
cache size : 128 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe up pebs bts cid xtpr
bogomips : 4805.18
clflush size : 64

Checking VGA, LAN and wireless adapters, chipset etc:

root@Linux ~# lspci

Example result:

00:00.0 Host bridge: Intel Corporation 82865G/PE/P DRAM Controller/Host-Hub Interface (rev 02)
00:02.0 VGA compatible controller: Intel Corporation 82865G Integrated Graphics Controller (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev c2)
00:1f.0 ISA bridge: Intel Corporation 82801EB/ER (ICH5/ICH5R) LPC Interface Bridge (rev 02)
00:1f.1 IDE interface: Intel Corporation 82801EB/ER (ICH5/ICH5R) IDE Controller (rev 02)
00:1f.3 SMBus: Intel Corporation 82801EB/ER (ICH5/ICH5R) SMBus Controller (rev 02)
01:0d.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)

Checking the hard drives:

root@Linux ~# fdisk -l

Example:

isk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x90909090

Device Boot Start End Blocks Id System
/dev/hda1 1 13 104391 83 Linux
/dev/hda2 14 139 1012095 82 Linux swap / Solaris
/dev/hda3 140 9729 77031675 83 Linux

lshw

The easiest way to check all the hardware installed on your box is the lshw command.

Using this command you can see all the hardware. Use the update manager of your distribution to install it if the command line says that the command doesn't exist. The package name is lshw as well.

root@Linux ~# lshw

I won't paste an example for this command since the result is always too huge but it lists everything you need to know.

I hope it was helpful.

How To Check Which Port Is Listening or Open on Linux

How To Check Which Port Is Listening or Open on Linux

For some security reason you may configure SSH or any other protocol using different kind of port number on Linux server. Sometimes it?s important to know which ports are actually listen or open to the system network, it may open for network instruction or hacking.

Basically there are few methods to see which ports are open on Linux.

Option 1:
Check /etc/services file
planetmy:/ # cat /etc/services | grep xxx (xxx = port number)

If the command return no output mean no port configure to listen on the particular port number. For port SSH/22, you should be able to see:
ssh 22/tcp # SSH Remote Login Protocol
ssh 22/udp # SSH Remote Login Protocol

Option 2:
Use netstat command - Print network connections, routing tables, interface statistics, masquerade connections, and multi cast memberships.

planetmy:/ # netstat -nan | grep 22
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 7110/sshd

If the command output return ?LISTEN?, mean the particular port is open or listen on network.

Option 3:
use lsof command - list open files

planetmy:/ # lsof -i -n -P|grep 631
cupsd 17934 lp 0u IPv4 56540196 TCP *:631 (LISTEN)
cupsd 17934 lp 2u IPv4 56540197 UDP *:631

Option 4:
use nmap command - Network exploration tool and security scanner

planetmy:/ # nmap -sS -O 192.168.1.2
Starting nmap 3.50 ( http://www.insecure.org/nmap/ ) at 2008-09-12 10:13 GMT
Interesting ports on 192.168.1.2:
(The 1655 ports scanned but not shown below are in state: closed)
PORT STATE SERVICE
22/tcp open ssh
111/tcp open rpcbind
427/tcp open svrloc
631/tcp open ipp
Device type: general purpose
Running: Linux 2.4.X|2.5.X
OS details: Linux Kernel 2.4.0 - 2.5.20, Linux Kernel 2.4.18 - 2.5.70 (X86)
Nmap run completed ? 1 IP address (1 host up) scanned in 4.146 seconds

The output show the system is running SSH on port 22.

Option 5:
use telnet command - user interface to the TELNET protocol

planetmy:/ # telnet 192.168.1.2 22
Trying 192.168.1.2?
Connected to 192.168.1.2.
Escape character is ?^]?.
SSH-1.99-OpenSSH_4.2

The output show as above mean SSH port 22 is listening on the network

planetmy:/ # telnet 192.168.1.2 122
Trying 192.168.1.2?
telnet: connect to address 192.168.1.2: Connection refused

The output show as above mean port 122 is closed.

Thanks to:
http://www.freecodeclub.com/

Setting Up Your Own Station: A Free Radio Under Linux HowTo

Setting Up Your Own Station: A Free Radio Under Linux HowTo

1. Introduction

So, you want to create your own radio station, don’t you? This manual will help you become a DJ.

2. System Requirements

Minimal requirements for radio broadcasting through your own computer, most of which you are already aware of:

*

150 MHz processor, or better
*

32 MB RAM
*

cable, DSL, or any other kind of broadband internet

and a little free hard disk space for mp3s (which you are going to play).

OS:

*

Some up-to-date Linux distribution, kernel 2.2 or newer.

Software:

*

XMMS 1.2.x http://www.xmms.org/
*

LAME v3.x http://www.sulaco.org/mp3
*

Icecast 1.3.x http://www.icecast.org/
*

Liveice-XMMS. http://star.arm.ac.uk/~spm/software/liveice.html

If using Debian, you can also use:

apt-get install xmms icecast-server

to install xmms and Icecast server. According to LAME, you can use a program called Alien, to convert RPM pack into Debian pack. All you have to do is:

apt-get install alien

and then, as root:

alien package.rpm

to create .deb which you can install, using

dpkg –i

where the name of the Debian package is.

3. Installation

The installation should be rather right-minded. You already should have all packages you need, in order to make things work. If compiling from source, then you should compile and install the software as it is described in its documentation.

If using RedHat, or any of its relative ones you can search for RPM, and download and install it by

rpm –Uvh

where the name of the RPM, which you use is.

If using Debian, just write

apt-get install xmms

icecast-server

to install xmms and Icecast server. According to LAME, you can use a program called Alien, to convert RPM package into Debian package. Install it:

apt-get install alien

then you can use it as root:

alien package.rpm

and the packages can be installed by using

dpkg –i

followed by the package’s name. For example:

dpkg -i .deb

And don’t forget that you should be root to do most of the above. And now, after the installation of all programs you need we have to set them in order to work properly.

4. Configuration

First of all we should configure the Icecast server. Find the directory which contains the Icecast server configuration files (in my case it was /etc/icecast, and I suppose it’s the same if installed by RPM; if you compiled the program on your own, then you are prepared well enough to know where the settings should be) and there you should have many “.dist”-files. Now rename all that files by deleting the “.dist” part. For example if the file name is “icecast.conf.dist” the new one should be “icecast.conf”. If there are no more “.dist”-files then you are doing well.

Now open icecast.conf with your favorite editor. The configuration is rather right-minded and simple, but anyway I’ll guide you through it. Near the beginning of the file you’ll find location/information fields:

location Just west of Mars

rp_email kirk@enterprise.space

server_url http://www.icecast.org/

fill them with the information, that you want people to see, when visiting your web-radio-station.

The next section you have to look at is the one for the server limit:

max_clients 900

max_clients_per_source 900

max_sources 10

max_admins 5

throttle 10.0

For most of the users this is much more than enough. Just set the parameters according to the speed of your Internet connection. Probably you’ll prefer

max_clients

and

max_clients_per_source

to be set at 10, and the rest you can leave the way it is. Now go down the file while you reach:

encoder_password hackme

admin_password hackme

oper_password hackme

If installed the Icecast server under Debian, or support of encrypted passwords enabled, you should crypt the password in this file using program, called mkpasswd (which probably you already have installed on your system). To do this use:

mkpasswd --crypt

Then copy and paste the result in the file. It should look like this:

encoder_passwd --WZKu0fXj3bQ

admin_passwd --WZKu0fXj3bQ

oper_passwd --WZKu0fXj3bQ

No matter which way of installation you made, you should change the password into something else than “hackme”. In the common case the three passwords should be the same. Remember the password you use, because you will use it latter during the configuration of the Liveice-XMMS.

Go down the file again and find:

console_mode 0

change the value at 3, that way the loading will be in text mode.

Usually you don’t have to change the rest of the configuration file. The advanced users can look through the rest of the settings.

Now, let’s configure the Liveice-XMMS:

Restart the XMMS, in order to make it possible to notice that there is another plugin. Make right click on the XMMS and choose Preferences. Go to Effect/General Plugins. In the list under Effect Plugins you should find Liveince. In case you can’t find it check out the Liveice-XMMS installation. After choosing Liveince, click on Configure.

Most of these audio format settings are standard, so you won’t have to change them much. Change the “Encoder type” to ‘Lame’, and the “executable name” to ‘Lame’. If already have any version of Lame on your machine, then set the path to it. Under “Description” you can consider the exact changes by yourself.

Go to Server and change the “Encoder Password” into the one that’s written in the Icecast configuration (and I told you to remember). You shouldn't type the password in encrypted mode if you have encrypted it.

Now everything is set and ready. Click OK. Check “Use Plugins” in the dialog “Preferences”, which should still be in front of you, and click OK again.

In terminal window type ‘icecast’ and press Enter. You should see how it’s getting started and proceeds into text mode.

If you are listening to a song, stop it and play it again.

Nothing went wrong…? There wasn’t big BANG!!! I hope so!

Ask a friend to connect to your IP through XMMS or any other mp3-player at http://yourcomputer:8000 … there should be music playing! If this is not happening, check out the FAQ to solve the problem.

If everything is OK, congratulations – you are now a DJ!

5. FAQ

Make sure that Icecast works. If the problems are still there, go to the conf file, at the place where you changed console_mode to 3, and change it back to 0 (that way you can receive some debug messages). You should be connecting as source, other ways check the Liveice settings. If you are connected as ‘source’, or as ‘encoder’, and your friend is trying to connect, but you don’t receive a message for this, then the problem is not in you!

Linux advanced commands

Linux advanced commands

Command Description

apropos whatis Show commands pertinent to string. See also threadsafe

man -t man | ps2pdf - > man.pdf make a pdf of a manual page

which command Show full path name of command

time command See how long a command takes

time cat Start stopwatch. Ctrl-d to stop. See also sw

nice info Run a low priority command (The "info" reader in this case)

renice 19 -p $$ Make shell (script) low priority. Use for non interactive tasks
dir navigation

cd - Go to previous directory

cd Go to $HOME directory

(cd dir && command) Go to dir, execute command and return to current dir

pushd . Put current dir on stack so you can popd back to it

alias l='ls -l --color=auto' quick dir listing

ls -lrt List files by date. See also newest and find_mm_yyyy

ls /usr/bin | pr -T9 -W$COLUMNS Print in 9 columns to width of terminal

find -name '*.[ch]' | xargs grep -E 'expr' Search 'expr' in this dir and below. See also findrepo

find -type f -print0 | xargs -r0 grep -F 'example' Search all regular files for 'example' in this dir and below

find -maxdepth 1 -type f | xargs grep -F 'example' Search all regular files for 'example' in this dir

find -maxdepth 1 -type d | while read dir; do echo $dir; echo cmd2; done Process each item with multiple commands (in while loop)

find -type f ! -perm -444 Find files not readable by all (useful for web site)

find -type d ! -perm -111 Find dirs not accessible by all (useful for web site)

locate -r 'file[^/]*\.txt' Search cached index for names. This re is like glob *file*.txt

look reference Quickly search (sorted) dictionary for prefix

grep --color reference /usr/share/dict/words Highlight occurances of regular expression in dictionary
archives and compression

gpg -c file Encrypt file

gpg file.gpg Decrypt file

tar -c dir/ | bzip2 > dir.tar.bz2 Make compressed archive of dir/

bzip2 -dc dir.tar.bz2 | tar -x Extract archive (use gzip instead of bzip2 for tar.gz files)

tar -c dir/ | gzip | gpg -c | ssh user@remote 'dd of=dir.tar.gz.gpg' Make encrypted archive of dir/ on remote machine

find dir/ -name '*.txt' | tar -c --files-from=- | bzip2 > dir_txt.tar.bz2 Make archive of subset of dir/ and below

find dir/ -name '*.txt' | xargs cp -a --target-directory=dir_txt/ --parents Make copy of subset of dir/ and below

( tar -c /dir/to/copy ) | ( cd /where/to/ && tar -x -p ) Copy (with permissions) copy/ dir to /where/to/ dir

( cd /dir/to/copy && tar -c . ) | ( cd /where/to/ && tar -x -p ) Copy (with permissions) contents of copy/ dir to /where/to/

( tar -c /dir/to/copy ) | ssh -C user@remote 'cd /where/to/ && tar -x -p' Copy (with permissions) copy/ dir to remote:/where/to/ dir

dd bs=1M if=/dev/sda | gzip | ssh user@remote 'dd of=sda.gz' Backup harddisk to remote machine
rsync (Use the --dry-run option for testing)

rsync -P rsync://rsync.server.com/path/to/file file Only get diffs. Do multiple times for troublesome downloads

rsync --bwlimit=1000 fromfile tofile Locally copy with rate limit. It's like nice for I/O

rsync -az -e ssh --delete ~/public_html/ remote.com:'~/public_html' Mirror web site (using compression and encryption)

rsync -auz -e ssh remote:/dir/ . && rsync -auz -e ssh . remote:/dir/ Synchronize current directory with remote one
ssh (Secure SHell)

ssh $USER@$HOST command Run command on $HOST as $USER (default command=shell)

ssh -f -Y $USER@$HOSTNAME xeyes Run GUI command on $HOSTNAME as $USER

scp -p -r $USER@$HOST: file dir/ Copy with permissions to $USER's home directory on $HOST

ssh -g -L 8080:localhost:80 root@$HOST Forward connections to $HOSTNAME:8080 out to $HOST:80

ssh -R 1434:imap:143 root@$HOST Forward connections from $HOST:1434 in to imap:143
wget (multi purpose download tool)

(cd cmdline && wget -nd -pHEKk http://www.pixelbeat.org/cmdline.html) Store local browsable version of a page to the current dir

wget -c http://www.example.com/large.file Continue downloading a partially downloaded file

wget -r -nd -np -l1 -A '*.jpg' http://www.example.com/dir/ Download a set of files to the current directory

wget ftp://remote/file[1-9].iso/ FTP supports globbing directly

wget -q -O- http://www.pixelbeat.org/timeline.html | grep 'a href' | head Process output directly

echo 'wget url' | at 01:00 Download url at 1AM to current dir

wget --limit-rate=20k url Do a low priority download (limit to 20KB/s in this case)

wget -nv --spider --force-html -i bookmarks.html Check links in a file

wget --mirror http://www.example.com/ Efficiently update a local copy of a site (handy from cron)
networking (Note ifconfig, route, mii-tool, nslookup commands are obsolete)

ethtool eth0 Show status of ethernet interface eth0

ethtool --change eth0 autoneg off speed 100 duplex full Manually set ethernet interface speed

iwconfig eth1 Show status of wireless interface eth1

iwconfig eth1 rate 1Mb/s fixed Manually set wireless interface speed

iwlist scan List wireless networks in range

ip link show List network interfaces

ip link set dev eth0 name wan Rename interface eth0 to wan

ip link set dev eth0 up Bring interface eth0 up (or down)

ip addr show List addresses for interfaces

ip addr add 1.2.3.4/24 brd + dev eth0 Add (or del) ip and mask (255.255.255.0)

ip route show List routing table

ip route add default via 1.2.3.254 Set default gateway to 1.2.3.254

tc qdisc add dev lo root handle 1:0 netem delay 20msec Add 20ms latency to loopback device (for testing)

tc qdisc del dev lo root Remove latency added above

host pixelbeat.org Lookup DNS ip address for name or vice versa

hostname -i Lookup local ip address (equivalent to host `hostname`)

whois pixelbeat.org Lookup whois info for hostname or ip address

netstat -tupl List internet services on a system

netstat -tup List active connections to/from system
windows networking (Note samba is the package that provides all this windows specific networking support)

smbtree Find windows machines. See also findsmb

nmblookup -A 1.2.3.4 Find the windows (netbios) name associated with ip address

smbclient -L windows_box List shares on windows machine or samba server

mount -t smbfs -o fmask=666,guest //windows_box/share /mnt/share Mount a windows share

echo 'message' | smbclient -M windows_box Send popup to windows machine (off by default in XP sp2)
text manipulation (Note sed uses stdin and stdout, so if you want to edit files, append newfile)

sed 's/string1/string2/g' Replace string1 with string2

sed 's/\(.*\)1/\12/g' Modify anystring1 to anystring2

sed '/ *#/d; /^ *$/d' Remove comments and blank lines

sed ':a; /\\$/N; s/\\\n//; ta' Concatenate lines with trailing \

sed 's/[ \t]*$//' Remove trailing spaces from lines

sed 's/\([\\`\\"$\\\\]\)/\\\1/g' Escape shell metacharacters active within double quotes

seq 10 | sed "s/^/ /; s/ *\(.\{7,\}\)/\1/" Right align numbers

sed -n '1000p;1000q' Print 1000th line

sed -n '10,20p;20q' Print lines 10 to 20

sed -n 's/.*\(.*\)<\/title>.*/\1/ip;<acronym title="quit after match">T;q</acronym>'</td> <td>Extract title from HTML web page</td> </tr> <tr> <td> <br /></td> <td class="nw">sort -t. -k1,1n -k2,2n -k3,3n -k4,4n</td> <td>Sort IPV4 ip addresses</td> </tr> <tr> <td> <br /></td> <td class="nw">echo 'Test' | tr '[:lower:]' '[:upper:]'</td> <td>Case conversion</td> </tr> <tr> <td> <br /></td> <td class="nw">tr -dc '[:print:]' < /dev/urandom</td> <td>Filter non printable characters</td> </tr> <tr> <td> <br /></td> <td class="nw">history | wc -l</td> <td>Count lines</td> </tr> <tr id="sets" class="pbtitle"> <td colspan="3"><strong>set operations</strong> (Note you can export LANG=C for speed. Also these assume no duplicate lines within a file)</td> </tr> <tr> <td> <br /></td> <td class="nw">sort file1 file2 | uniq</td> <td><acronym title="Items in either file1 or file2">Union</acronym> of unsorted files</td> </tr> <tr> <td> <br /></td> <td class="nw">sort file1 file2 | uniq -d</td> <td><acronym title="Items both in file1 and file2">Intersection</acronym> of unsorted files</td> </tr> <tr> <td> <br /></td> <td class="nw">sort file1 file1 file2 | uniq -u</td> <td><acronym title="Items in file2 not in file1">Difference</acronym> of unsorted files</td> </tr> <tr> <td> <br /></td> <td class="nw">sort file1 file2 | uniq -u</td> <td><acronym title="Items in only one file">Symmetric Difference</acronym> of unsorted files</td> </tr> <tr> <td> <br /></td> <td class="nw">join -a1 -a2 file1 file2</td> <td>Union of sorted files</td> </tr> <tr> <td> <br /></td> <td class="nw">join file1 file2</td> <td>Intersection of sorted files</td> </tr> <tr> <td> <br /></td> <td class="nw">join -v2 file1 file2</td> <td>Difference of sorted files</td> </tr> <tr> <td> <br /></td> <td class="nw">join -v1 -v2 file1 file2</td> <td>Symmetric Difference of sorted files</td> </tr> <tr id="math" class="pbtitle"> <td colspan="3"><strong>math</strong></td> </tr> <tr> <td> <br /></td> <td class="nw">echo '(1 + sqrt(5))/2' | bc -l</td> <td>Quick math (Calculate f). See also bc</td> </tr> <tr> <td> <br /></td> <td class="nw">echo 'pad=20; min=64; (100*10^6)/((pad+min)*8)' | bc</td> <td>More complex (int) e.g. This shows max FastE packet rate</td> </tr> <tr> <td> <br /></td> <td class="nw">echo 'pad=20; min=64; print (100E6)/((pad+min)*8)' | python</td> <td>Python handles scientific notation</td> </tr> <tr> <td> <br /></td> <td class="nw">echo 'pad=20; plot [64:1518] (100*10**6)/((pad+x)*8)' | gnuplot -persist</td> <td>Plot FastE packet rate vs packet size</td> </tr> <tr> <td> <br /></td> <td class="nw">echo 'obase=16; ibase=10; 64206' | bc</td> <td>Base conversion (decimal to hexadecimal)</td> </tr> <tr> <td> <br /></td> <td class="nw">echo $((0x2dec))</td> <td>Base conversion (hex to dec) ((shell arithmetic expansion))</td> </tr> <tr> <td> <br /></td> <td class="nw">units -t '100m/9.74s' 'miles/hour'</td> <td>Unit conversion (metric to imperial)</td> </tr> <tr> <td> <br /></td> <td class="nw">units -t '500GB' 'GiB'</td> <td>Unit conversion (<acronym title="powers of 10">SI</acronym> to <acronym title="powers of 2">IEC</acronym> prefixes)</td> </tr> <tr> <td> <br /></td> <td class="nw">units -t '1 googol'</td> <td>Definition lookup</td> </tr> <tr> <td> <br /></td> <td class="nw">seq 100 | (tr '\n' +; echo 0) | bc</td> <td>Add a column of numbers. See also add and funcpy</td> </tr> <tr id="dates" class="pbtitle"> <td colspan="3"><strong>calendar</strong></td> </tr> <tr> <td> <br /></td> <td class="nw">cal -3</td> <td>Display a calendar</td> </tr> <tr> <td> <br /></td> <td class="nw">cal 9 1752</td> <td>Display a calendar for a particular month year</td> </tr> <tr> <td> <br /></td> <td class="nw">date -d fri</td> <td>What date is it this friday. See also day</td> </tr> <tr> <td> <br /></td> <td class="nw">date --date='25 Dec' +%A</td> <td>What day does xmas fall on, this year</td> </tr> <tr> <td> <br /></td> <td class="nw">date --date '1970-01-01 UTC 2147483647 seconds'</td> <td>Convert number of seconds since the epoch to a date</td> </tr> <tr> <td> <br /></td> <td class="nw">TZ=':America/Los_Angeles' date</td> <td>What time is it on West coast of US (use tzselect to find TZ)</td> </tr> <tr> <td> <br /></td> <td class="nw">echo "mail -s 'get the train' P@draigBrady.com < /dev/null" | at 17:45</td> <td>Email reminder</td> </tr> <tr> <td> <br /></td> <td class="nw">echo "DISPLAY=$DISPLAY xmessage cooker" | at "NOW + 30 minutes"</td> <td>Popup reminder</td> </tr> <tr id="locale" class="pbtitle"> <td colspan="3"><strong>locales</strong></td> </tr> <tr> <td> <br /></td> <td class="nw">printf "%'d\n" 1234</td> <td>Print number with thousands grouping appropriate to locale</td> </tr> <tr> <td> <br /></td> <td class="nw">BLOCK_SIZE=\'1 ls -l</td> <td>get ls to do thousands grouping appropriate to locale</td> </tr> <tr> <td> <br /></td> <td class="nw">echo "I live in `locale territory`"</td> <td>Extract info from locale database</td> </tr> <tr> <td> <br /></td> <td class="nw">LANG=en_IE.utf8 locale int_prefix</td> <td>Lookup locale info for specific country. See also ccodes</td> </tr> <tr> <td> <br /></td> <td class="nw">locale | cut -d= -f1 | xargs locale -kc | less</td> <td>List fields available in locale database</td> </tr> <tr id="recode" class="pbtitle"> <td colspan="3"><strong>recode</strong> (Obsoletes iconv, dos2unix, unix2dos)</td> </tr> <tr> <td> <br /></td> <td class="nw">recode -l | less</td> <td>Show available conversions (aliases on each line)</td> </tr> <tr> <td> <br /></td> <td class="nw">recode windows-1252.. file_to_change.txt</td> <td>Windows "ansi" to local charset (auto does CRLF conversion)</td> </tr> <tr> <td> <br /></td> <td class="nw">recode utf-8/CRLF.. file_to_change.txt</td> <td>Windows utf8 to local charset</td> </tr> <tr> <td> <br /></td> <td class="nw">recode iso-8859-15..utf8 file_to_change.txt</td> <td>Latin9 (western europe) to utf8</td> </tr> <tr> <td> <br /></td> <td class="nw">recode ../b64 <> file.b64</td> <td>Base64 encode</td> </tr> <tr> <td> <br /></td> <td class="nw">recode /qp.. <> file.qp</td> <td>Quoted printable decode</td> </tr> <tr> <td> <br /></td> <td class="nw">recode ..HTML <> file.html</td> <td>Text to HTML</td> </tr> <tr> <td> <br /></td> <td class="nw">recode -lf windows-1252 | grep euro</td> <td>Lookup table of characters</td> </tr> <tr> <td> <br /></td> <td class="nw">echo -n 0x80 | recode latin-9/x1..dump</td> <td>Show what a code represents in latin-9 charmap</td> </tr> <tr> <td> <br /></td> <td class="nw">echo -n 0x20AC | recode ucs-2/x2..latin-9/x</td> <td>Show latin-9 encoding</td> </tr> <tr> <td> <br /></td> <td class="nw">echo -n 0x20AC | recode ucs-2/x2..utf-8/x</td> <td>Show utf-8 encoding</td> </tr> <tr id="CDs" class="pbtitle"> <td colspan="3"><strong><acronym title="Compact Disks">CDs</acronym></strong></td> </tr> <tr> <td> <br /></td> <td class="nw">gzip < /dev/cdrom > cdrom.iso.gz</td> <td>Save copy of data cdrom</td> </tr> <tr> <td> <br /></td> <td class="nw">mkisofs -V LABEL -r dir | gzip > cdrom.iso.gz</td> <td>Create cdrom image from contents of dir</td> </tr> <tr> <td> <br /></td> <td class="nw">mount -o loop cdrom.iso /mnt/dir</td> <td>Mount the cdrom image at /mnt/dir (read only)</td> </tr> <tr> <td> <br /></td> <td class="nw">cdrecord -v dev=/dev/cdrom blank=fast</td> <td>Clear a CDRW</td> </tr> <tr> <td> <br /></td> <td class="nw">gzip -dc cdrom.iso.gz | cdrecord -v dev=/dev/cdrom -</td> <td>Burn cdrom image (use dev=ATAPI -scanbus to confirm dev)</td> </tr> <tr> <td> <br /></td> <td class="nw">cdparanoia -B</td> <td>Rip audio tracks from CD to wav files in current dir</td> </tr> <tr> <td> <br /></td> <td class="nw">cdrecord -v dev=/dev/cdrom -audio *.wav</td> <td>Make audio CD from all wavs in current dir (see also cdrdao)</td> </tr> <tr> <td> <br /></td> <td class="nw">oggenc --tracknum='track' track.cdda.wav -o 'track.ogg'</td> <td>Make ogg file from wav file</td> </tr> <tr id="disk_space" class="pbtitle"> <td colspan="3"><strong>disk space</strong> (See also FSlint)</td> </tr> <tr> <td> <br /></td> <td class="nw">ls -lSr</td> <td>Show files by size, biggest last</td> </tr> <tr> <td> <br /></td> <td class="nw">du -s * | sort -k1,1rn | head</td> <td>Show top disk users in current dir. See also dutop</td> </tr> <tr> <td> <br /></td> <td class="nw">df -h</td> <td>Show free space on mounted filesystems</td> </tr> <tr> <td> <br /></td> <td class="nw">df -i</td> <td>Show free inodes on mounted filesystems</td> </tr> <tr> <td> <br /></td> <td class="nw"><acronym title="usually in /sbin/">fdisk</acronym> -l</td> <td>Show disks partitions sizes and types (run as root)</td> </tr> <tr> <td> <br /></td> <td class="nw">rpm -q -a --qf '%10{SIZE}\t%{NAME}\n' | sort -k1,1n</td> <td>List all packages by installed size (Bytes) on rpm distros</td> </tr> <tr> <td> <br /></td> <td class="nw">dpkg-query -W -f='${Installed-Size;10}\t${Package}\n' | sort -k1,1n</td> <td>List all packages by installed size (KBytes) on deb distros</td> </tr> <tr> <td> <br /></td> <td class="nw">dd bs=1 seek=2TB if=/dev/null of=ext3.test</td> <td>Create a large test file (taking no space). See also truncate</td> </tr> <tr id="monitor" class="pbtitle"> <td colspan="3"><strong>monitoring/debugging</strong></td> </tr> <tr> <td> <br /></td> <td class="nw">tail -f /var/log/messages</td> <td>Monitor messages in a log file</td> </tr> <tr> <td> <br /></td> <td class="nw">strace -c ls >/dev/null</td> <td>Summarise/profile system calls made by command</td> </tr> <tr> <td> <br /></td> <td class="nw">strace -f -e open ls >/dev/null</td> <td>List system calls made by command</td> </tr> <tr> <td> <br /></td> <td class="nw">ltrace -f -e getenv ls >/dev/null</td> <td>List library calls made by command</td> </tr> <tr> <td> <br /></td> <td class="nw"><acronym title="usually in /usr/sbin/">lsof</acronym> -p <acronym title="process id of current shell">$$</acronym></td> <td>List paths that process id has open</td> </tr> <tr> <td> <br /></td> <td class="nw">lsof ~</td> <td>List processes that have specified path open</td> </tr> <tr> <td> <br /></td> <td class="nw">tcpdump not port 22</td> <td>Show network traffic except ssh. See also tcpdump_not_me</td> </tr> <tr> <td> <br /></td> <td class="nw">ps -e -o pid,args --forest</td> <td>List processes in a hierarchy</td> </tr> <tr> <td> <br /></td> <td class="nw">ps -e -o pcpu,cpu,nice,state,cputime,args --sort pcpu | sed '/^ 0.0 /d'</td> <td>List processes by % cpu usage</td> </tr> <tr> <td> <br /></td> <td class="nw">ps -e -orss=,args= | sort -b -k1,1n | pr -TW$COLUMNS</td> <td>List processes by mem usage. See also ps_mem.py</td> </tr> <tr> <td> <br /></td> <td class="nw">ps -C firefox-bin -L -o pid,tid,pcpu,state</td> <td>List all threads for a particular process</td> </tr> <tr> <td> <br /></td> <td class="nw">ps -p 1,2</td> <td>List info for particular process IDs</td> </tr> <tr> <td> <br /></td> <td class="nw">last reboot</td> <td>Show system reboot history</td> </tr> <tr> <td> <br /></td> <td class="nw">free -m</td> <td>Show amount of (remaining) RAM (-m displays in MB)</td> </tr> <tr> <td> <br /></td> <td class="nw">watch -n1 'cat /proc/interrupts'</td> <td>Watch changeable data continuously</td> </tr> <tr id="sysinfo" class="pbtitle"> <td colspan="3"><strong>system information</strong> (see also sysinfo) ('#' means root access is required)</td> </tr> <tr> <td> <br /></td> <td class="nw">uname -a</td> <td>Show kernel version and system architecture</td> </tr> <tr> <td> <br /></td> <td class="nw">head -n1 /etc/issue</td> <td>Show name and version of distribution</td> </tr> <tr> <td> <br /></td> <td class="nw">cat /proc/partitions</td> <td>Show all partitions registered on the system</td> </tr> <tr> <td> <br /></td> <td class="nw">grep MemTotal /proc/meminfo</td> <td>Show RAM total seen by the system</td> </tr> <tr> <td> <br /></td> <td class="nw">grep "model name" /proc/cpuinfo</td> <td>Show CPU(s) info</td> </tr> <tr> <td> <br /></td> <td class="nw"><acronym title="usually in /sbin/">lspci</acronym> -tv</td> <td>Show PCI info</td> </tr> <tr> <td> <br /></td> <td class="nw"><acronym title="usually in /sbin/">lsusb</acronym> -tv</td> <td>Show USB info</td> </tr> <tr> <td> <br /></td> <td class="nw">mount | column -t</td> <td>List mounted filesystems on the system (and align output)</td> </tr> <tr> <td>#</td> <td class="nw">dmidecode -q | less</td> <td>Display SMBIOS/DMI information</td> </tr> <tr> <td>#</td> <td class="nw">smartctl -A /dev/sda | grep Power_On_Hours</td> <td>How long has this disk (system) been powered on in total</td> </tr> <tr> <td>#</td> <td class="nw">hdparm -i /dev/sda</td> <td>Show info about disk sda</td> </tr> <tr> <td>#</td> <td class="nw">hdparm -tT /dev/sda</td> <td>Do a read speed test on disk sda</td> </tr> <tr> <td>#</td> <td class="nw">badblocks -s /dev/sda</td> <td>Test for unreadable blocks on disk sda</td> </tr> <tr id="interactive" class="pbtitle"> <td colspan="3"><strong>interactive</strong> (see also linux keyboard shortcuts)</td> </tr> <tr> <td> <br /></td> <td class="nw">readline</td> <td>Line editor used by bash, python, bc, gnuplot, ...</td> </tr> <tr> <td> <br /></td> <td class="nw">screen</td> <td>Virtual terminals with detach capability, ...</td> </tr> <tr> <td> <br /></td> <td class="nw">mc</td> <td>Powerful file manager that can browse rpm, tar, ftp, ssh, ...</td> </tr> <tr> <td> <br /></td> <td class="nw">gnuplot</td> <td>Interactive/scriptable graphing</td> </tr> <tr> <td> <br /></td> <td class="nw">links</td> <td>Web browser</td> </tr> <tr id="misc" class="pbtitle"> <td colspan="3"><strong>miscellaneous</strong></td> </tr> <tr> <td> <br /></td> <td class="nw">alias hd='od -Ax -tx1z -v'</td> <td>Handy hexdump. (usage e.g.: hd /proc/self/cmdline | less)</td> </tr> <tr> <td> <br /></td> <td class="nw">alias realpath='readlink -f'</td> <td>Canonicalize path. (usage e.g.: realpath ~/../$USER)</td> </tr> <tr> <td> <br /></td> <td class="nw">set | grep $USER</td> <td>Search current environment</td> </tr> <tr> <td> <br /></td> <td class="nw">touch -c -t 0304050607 file</td> <td>Set file timestamp (YYMMDDhhmm)</td></tr></tbody></table> <br />Thanks to : <br /><span style="color: rgb(255, 0, 0);">http://www.freecodeclub.com/art-Linux_advanced_commands.php</span> <br /> <br /> <br /> <div style='clear: both;'></div> </div> <div class='post-footer'> <div class='post-footer-line post-footer-line-1'> <span class='post-author vcard'> Posted by <span class='fn' itemprop='author' itemscope='itemscope' itemtype='http://schema.org/Person'> <span itemprop='name'>Sivakumar</span> </span> </span> <span class='post-timestamp'> at <meta content='http://sivanihonjin.blogspot.com/2010/09/linux-advanced-commands.html' itemprop='url'/> <a class='timestamp-link' href='https://sivanihonjin.blogspot.com/2010/09/linux-advanced-commands.html' rel='bookmark' title='permanent link'><abbr class='published' itemprop='datePublished' title='2010-09-27T20:40:00-07:00'>9/27/2010 08:40:00 PM</abbr></a> </span> <span class='post-comment-link'> <a class='comment-link' href='https://sivanihonjin.blogspot.com/2010/09/linux-advanced-commands.html#comment-form' onclick=''> No comments: </a> </span> <span class='post-icons'> <span class='item-action'> <a href='https://www.blogger.com/email-post/2916662426460066736/5356671157302713903' title='Email Post'> <img alt='' class='icon-action' height='13' src='https://resources.blogblog.com/img/icon18_email.gif' width='18'/> </a> </span> <span class='item-control blog-admin pid-1067355270'> <a href='https://www.blogger.com/post-edit.g?blogID=2916662426460066736&postID=5356671157302713903&from=pencil' title='Edit Post'> <img alt='' class='icon-action' height='18' src='https://resources.blogblog.com/img/icon18_edit_allbkg.gif' width='18'/> </a> </span> </span> <div class='post-share-buttons goog-inline-block'> </div> </div> <div class='post-footer-line post-footer-line-2'> <span class='post-labels'> </span> </div> <div class='post-footer-line post-footer-line-3'> <span class='post-location'> </span> </div> </div> </div> </div> </div></div> <div class="date-outer"> <h2 class='date-header'><span>Thursday, September 23, 2010</span></h2> <div class="date-posts"> <div class='post-outer'> <div class='post hentry uncustomized-post-template' itemprop='blogPost' itemscope='itemscope' itemtype='http://schema.org/BlogPosting'> <meta content='2916662426460066736' itemprop='blogId'/> <meta content='9030460699697503562' itemprop='postId'/> <a name='9030460699697503562'></a> <h3 class='post-title entry-title' itemprop='name'> <a href='https://sivanihonjin.blogspot.com/2010/09/emacs-shorcuts.html'>Emacs shorcuts</a> </h3> <div class='post-header'> <div class='post-header-line-1'></div> </div> <div class='post-body entry-content' id='post-body-9030460699697503562' itemprop='description articleBody'> C-spacebar start copying a region<br /><br />M-x end copying a region <br />C-w cut a region<br /><br /><br />C-M-\ indent-region<br /><br />Emacs keyboard shortcuts<br />FILE<br />Open Ctrl-X, Ctrl-F <br />Save Ctrl-X, Ctrl-S <br />Save As Ctrl-X, Ctrl-W <br />Save All Ctrl-X, S <br />Revert to File Ctrl-X, Ctrl-V <br />Revert Buffer Meta-X, revert-buffer <br />Close Window/Buffer Ctrl-X, K <br />Quit Ctrl-X, Ctrl-C <br /><br />EDIT<br />Undo Ctrl-_ <br />Begin Selection Ctrl-SPC <br />Cancel Selection Ctrl-G <br />Cut Selection Ctrl-W <br />Cut Line Ctrl-K <br />Paste Ctrl-Y <br />Copy Selection to Numbered Clipboard Ctrl-X R S [#] <br />Paste from Numbered Clipboard Ctrl-X R I [#] <br />Delete DEL <br />Fwd Delete Ctrl-D <br />Delete Word Meta-DEL <br />Fwd Delete Word Meta-D <br />Delete Line Ctrl-K <br /><br /><br />CURSOR MOVEMENT<br /> FORWARD BACKWARD<br />Word Meta-F Meta-B<br />Line Ctrl-A Ctrl-E<br />Paragraph Meta-{ Meta-}<br />Page Ctrl-V Meta-V<br />Document Meta-<><br />C Function Meta-Ctrl-A Meta-Control-E<br /><br /><br />SEARCH<br />Incremental Search Ctrl-S <br />Incremental Search Reverse Ctrl-R <br />Regexp Inc Search Meta-Ctrl-S <br />Regexp Inc Search Reverse Meta-Ctrl-R <br />Interactive Search and Replace Meta-% <br />Goto Line Number Meta-X goto-line <br />Previous Matching Bracket Meta-Ctrl-B (or ESC Ctrl-B) <br />Next Matching Bracket Meta-Ctrl-F (or ESC Ctrl-F) <br /><br /><br />WINDOW<br />Close Ctrl-X, K <br />Next Window Ctrl-X, B <br />Choose Window Ctrl-X, Ctrl-B <br />Maximize Ctrl-X, 1 <br />Split Horizontal Ctrl-X, 2 <br />Split Vertical Ctrl-X, 3 <br />Switch Focus Between Windows Ctrl-X, O <br />Activate Menu Bar Meta-` <br /><br /><br />REGISTERS<br />Copy Selection to Numbered Clipboard Ctrl-X R S [#] <br />Paste from Numbered Clipboard Ctrl-X R I [#] <br />Set Numbered Bookmark Ctrl-X R SPC [#] <br />Jump to Numbered Bookmark Ctrl-X R J [#] <br /><br />FORMATTING<br />Re-flow Paragraph Meta-Q <br />Indent Selection Meta-Control-\ <br />Uppercase Word Meta-U <br />Lowercase Word Meta-L <br />Capitalize Word Meta-C <br />Uppercase Selection Ctrl-X, Ctrl-U <br />Lowercase Selection Ctrl-X, Ctrl-L <br /><br />MACROS<br />Start Recording Ctrl-X, ( <br />Stop Recording Ctrl-X, ) <br />Play Macro Ctrl-X, E <br />Repeat command # times Meta-[#] [command] <br />Repeat command # times Ctrl-U [#] [command] <div style='clear: both;'></div> </div> <div class='post-footer'> <div class='post-footer-line post-footer-line-1'> <span class='post-author vcard'> Posted by <span class='fn' itemprop='author' itemscope='itemscope' itemtype='http://schema.org/Person'> <span itemprop='name'>Sivakumar</span> </span> </span> <span class='post-timestamp'> at <meta content='http://sivanihonjin.blogspot.com/2010/09/emacs-shorcuts.html' itemprop='url'/> <a class='timestamp-link' href='https://sivanihonjin.blogspot.com/2010/09/emacs-shorcuts.html' rel='bookmark' title='permanent link'><abbr class='published' itemprop='datePublished' title='2010-09-23T04:15:00-07:00'>9/23/2010 04:15:00 AM</abbr></a> </span> <span class='post-comment-link'> <a class='comment-link' href='https://sivanihonjin.blogspot.com/2010/09/emacs-shorcuts.html#comment-form' onclick=''> No comments: </a> </span> <span class='post-icons'> <span class='item-action'> <a href='https://www.blogger.com/email-post/2916662426460066736/9030460699697503562' title='Email Post'> <img alt='' class='icon-action' height='13' src='https://resources.blogblog.com/img/icon18_email.gif' width='18'/> </a> </span> <span class='item-control blog-admin pid-1067355270'> <a href='https://www.blogger.com/post-edit.g?blogID=2916662426460066736&postID=9030460699697503562&from=pencil' title='Edit Post'> <img alt='' class='icon-action' height='18' src='https://resources.blogblog.com/img/icon18_edit_allbkg.gif' width='18'/> </a> </span> </span> <div class='post-share-buttons goog-inline-block'> </div> </div> <div class='post-footer-line post-footer-line-2'> <span class='post-labels'> </span> </div> <div class='post-footer-line post-footer-line-3'> <span class='post-location'> </span> </div> </div> </div> </div> </div></div> <div class="date-outer"> <h2 class='date-header'><span>Friday, September 10, 2010</span></h2> <div class="date-posts"> <div class='post-outer'> <div class='post hentry uncustomized-post-template' itemprop='blogPost' itemscope='itemscope' itemtype='http://schema.org/BlogPosting'> <meta content='2916662426460066736' itemprop='blogId'/> <meta content='3547929577463962932' itemprop='postId'/> <a name='3547929577463962932'></a> <h3 class='post-title entry-title' itemprop='name'> <a href='https://sivanihonjin.blogspot.com/2010/09/how-to-write-batch-file.html'>How to Write a Batch File</a> </h3> <div class='post-header'> <div class='post-header-line-1'></div> </div> <div class='post-body entry-content' id='post-body-3547929577463962932' itemprop='description articleBody'> <span style="font-weight: bold; color: rgb(255, 0, 0);">How to Write a Batch File:</span><br />OS used : Windows<br />Writing a batch file is used to automate daily and often mundane tasks. Instead of typing the same commands day after day, you would simply double click the batch file to run said commands. These instructions will show you how to do so.<br />For Windows<br />1. <br />Open up Notepad in Windows. You can do this by navigating to Start > Programs > Accessories > Notepad, or simply by entering notepad under Start > Run.<br />2. <br />Or open up notepad by keying C:\WINDOWS\system32\notepad.exe<br />3. <br />Save your file before anything, so be sure to follow the instructions closely.<br /><br /><br />1. Go to File > Save As... and chose a file name.<br />2. Choose your desktop as the location to save.<br />3. Click on the dropdown box "Save as type:" and select "All files" instead of Text (*.txt).<br />4. Add .bat to the end of your file name before you save. For example, you would type wikihow.bat.<br />5. Click on Save. If you did this correctly, you should see your file name in the title bar of Windows Notepad. Make sure that it reads as wikihow.bat—not wikihow.bat.txt. Now you are ready to create your batch file.<br />4. <br />Type "@echo off" on the first line of your batch file. This will prevent any commands in the batch file to be sent to the screen when executed.<br />5. <br />Enter your commands. The following examples show you how to create a batch file that will automatically load wikiHow.com using Internet Explorer.<br />1. <br />First example:<br />1. <br />o @echo off.<br />o REM The following will open wikiHow.com in a new Internet Explorer window.<br />o start iexplore.exe www.sivab.org<br /> or, second example:<br />1. <br />o @echo off.<br />o REM The following will open wikiHow.com in your default browser, if it is IE and you have another IE window open, then it will hijack that window or open a new tab.<br />o start www.sivab.org<br />2. <br />Save the file.<br />3. <br />Run the file by double clicking the file on your desktop.<br /><br /><span style="color: rgb(153, 0, 0);">Ex1:</span><br />Save the following as “siva.bat” and double click the file.<br /><br /><span style="color: rgb(102, 0, 204);">@echo off</span><br /><span style="color: rgb(102, 0, 204);">start iexplore.exe www.wikihow.com</span><br /><br /><br /><br /><span style="color: rgb(153, 0, 0);">Ex2:</span><br />Save the following as “siva.bat” and double click the file.<br /><br /><span style="color: rgb(102, 0, 204);">@echo off</span><br /><span style="color: rgb(102, 0, 204);">start www.wikihow.com</span><br /><br />Thanks to :<br />http://www.wikihow.com/Write-a-Batch-File <div style='clear: both;'></div> </div> <div class='post-footer'> <div class='post-footer-line post-footer-line-1'> <span class='post-author vcard'> Posted by <span class='fn' itemprop='author' itemscope='itemscope' itemtype='http://schema.org/Person'> <span itemprop='name'>Sivakumar</span> </span> </span> <span class='post-timestamp'> at <meta content='http://sivanihonjin.blogspot.com/2010/09/how-to-write-batch-file.html' itemprop='url'/> <a class='timestamp-link' href='https://sivanihonjin.blogspot.com/2010/09/how-to-write-batch-file.html' rel='bookmark' title='permanent link'><abbr class='published' itemprop='datePublished' title='2010-09-10T00:23:00-07:00'>9/10/2010 12:23:00 AM</abbr></a> </span> <span class='post-comment-link'> <a class='comment-link' href='https://sivanihonjin.blogspot.com/2010/09/how-to-write-batch-file.html#comment-form' onclick=''> No comments: </a> </span> <span class='post-icons'> <span class='item-action'> <a href='https://www.blogger.com/email-post/2916662426460066736/3547929577463962932' title='Email Post'> <img alt='' class='icon-action' height='13' src='https://resources.blogblog.com/img/icon18_email.gif' width='18'/> </a> </span> <span class='item-control blog-admin pid-1067355270'> <a href='https://www.blogger.com/post-edit.g?blogID=2916662426460066736&postID=3547929577463962932&from=pencil' title='Edit Post'> <img alt='' class='icon-action' height='18' src='https://resources.blogblog.com/img/icon18_edit_allbkg.gif' width='18'/> </a> </span> </span> <div class='post-share-buttons goog-inline-block'> </div> </div> <div class='post-footer-line post-footer-line-2'> <span class='post-labels'> </span> </div> <div class='post-footer-line post-footer-line-3'> <span class='post-location'> </span> </div> </div> </div> </div> </div></div> <div class="date-outer"> <h2 class='date-header'><span>Wednesday, July 7, 2010</span></h2> <div class="date-posts"> <div class='post-outer'> <div class='post hentry uncustomized-post-template' itemprop='blogPost' itemscope='itemscope' itemtype='http://schema.org/BlogPosting'> <meta content='2916662426460066736' itemprop='blogId'/> <meta content='8801248166936195677' itemprop='postId'/> <a name='8801248166936195677'></a> <h3 class='post-title entry-title' itemprop='name'> <a href='https://sivanihonjin.blogspot.com/2010/07/command-prompts-for-windows.html'>Command prompts for Windows</a> </h3> <div class='post-header'> <div class='post-header-line-1'></div> </div> <div class='post-body entry-content' id='post-body-8801248166936195677' itemprop='description articleBody'> <span style="color:#cc0000;">Command prompts for Windows</span><br />Some of these command below can cause harmful an undesirable functions, leading to the formatting of your hard disk and data loss, while others will not run under Windows XP. As for Windows Vista the Run Tab is not visible in the start up menu. Windows Vista specific command prompts are not included. Feel free to add any additional information and tips, you think necessary. Here is a list of commands you can use under Microsoft Windows prearranged depending of their functionality :<br /><a href="http://en.kioskea.net/faq/403-command-prompts-for-windows#control-panel">Control Panel</a><br /><a href="http://en.kioskea.net/faq/403-command-prompts-for-windows#windows-utility-and-applications">Windows utility and applications</a><br /><a href="http://en.kioskea.net/faq/403-command-prompts-for-windows#disk-management">Disk management</a><br /><a href="http://en.kioskea.net/faq/403-command-prompts-for-windows#connection-management">Connection management</a><br /><a href="http://en.kioskea.net/faq/403-command-prompts-for-windows#miscellaneous-commands">Miscellaneous commands</a><a name="control-panel"></a><br />Control Panel<br />CONTROL: opens the control panel window<br />CONTROL ADMINTOOLS: opens the administrative tools<br />CONTROL KEYBOARD: opens keyboard properties<br />CONTROL COLOUR: opens display properties.Appearance tab<br />CONTROL FOLDERS: opens folder options<br />CONTROL FONTS: opens font policy management<br />CONTROL INTERNATIONAL or INTL.CPL: opens Regional and Language option<br />CONTROL MOUSE or MAIN.CPL: opens mouse properties<br />CONTROL USERPASSWORDS: opens User Accounts editor<br />CONTROL USERPASSWORDS2 or NETPLWIZ: User account access restrictions<br />CONTROL PRINTERS: opens faxes and printers available<br />APPWIZ.CPL: opens Add or Remove programs utility tool<br />OPTIONALFEATURES: opens Add or Remove Windows component utility<br />DESK.CPL: opens display properties. Themes tab<br />HDWWIZ.CPL: opens add hardware wizard<br />IRPROPS.CPL: infrared utility tool<br />JOY.CP: opens game controllers settings<br />MMSYS.CPL: opens Sound and Audio device Properties. Volume tab<br />SYSDM.CPL: opens System properties<br />TELEPHON.CPL: Opens phone and Modem options<br />TIMEDATE.CPL: Date and Time properties<br />WSCUI.CPL: opens Windows Security Center<br />ACCESS.CPL: opens Accessibility Options<br />WUAUCPL.CPL: opens Automatic Updates<br />POWERCFG.CPL: opens Power Options Properties<br />AZMAN.MSC: opens authorisation management utility tool<br />CERTMGR.MSC: opens certificate management tool<br />COMPMGMT.MSC: opens the Computer management tool<br />COMEXP.MSC or DCOMCNFG: opens the Computer Services management tool<br />DEVMGMT.MSC: opens Device Manager<br />EVENTVWR or EVENTVWR.MSC: opens Event Viewer<br />FSMGMT.MSC: opens Shared Folders<br />NAPCLCFG.MSC: NAP Client configuration utility tool<br />SERVICES.MSC: opens Service manager<br />TASKSCHD.MSC or CONTROL SCHEDTASKS: opens Schedule Tasks manager<br />GPEDIT.MSC: opens Group Policy utility tool<br />LUSRMGR.MSC: opens Local Users and Groups<br />SECPOL.MSC: opens local security settings<br />CIADV.MSC: opens indexing service<br />NTMSMGR.MSC: removable storage manager<br />NTMSOPRQ.MSC: removable storage operator requests<br />WMIMGMT.MSC: opens (WMI) Window Management Instrumentation<br />PERFMON or PERFMON.MSC: opens the Performance monitor<br />MMC: opens empty Console<br />MDSCHED: opens memory diagnostics tools<br />DXDIAG: opens DirectX diagnostics tools<br />ODBCAD32: opens ODBC Data source Administrator<br />REGEDIT or REGEDT32: opens Registry Editor<br />DRWTSN32: opens Dr. Watson<br />VERIFIER: opens Driver Verifier Manager<br />CLICONFG: opens SQL Server Client Network Utility<br />UTILMAN: opens Utility Manager<br />COLORCPL: opens color management<br />CREDWIZ: back up and recovery tool for user passwords<br />MOBSYNC: opens Synchronization center<br />MSCONFIG: opens System Configuration Utility<br />SYSEDIT: opens System Configuration Editor (careful while using this command)<br />SYSKEY: Windows Account Database Security management (careful while using this command)<a name="windows-utility-and-applications"></a><br />Windows utility and applications<br />EPLORER: Opens windows Explorer<br />IEXPLORER: Opens Internet explorer<br />WAB: opens Contacts<br />CHARMAP: opens Character Map<br />WRITE: opens WordPad<br />NOTEPAD: opens Notepad<br />CALC: opens Calculator<br />CLIPBRD: opens Clipbook Viewer<br />WINCHAT: opens Microsoft Chat Interface<br />SOUNDRECORDER: opens sound recording tool<br />DVDPLAY: run CD or DVD<br />WMPLAYER: opens Windows Media Player<br />MOVIEMK: Opens untitled Windows Movie Maker<br />OSK: opens on-screen Keyboard<br />MAGNIFY: opens Magnifier<br />WINCAL: opens Calendar<br />DIALER: opens phone Dialer<br />EUDCEDIT: opens Private Character Editor<br />NDVOL: opens the mixer volume<br />RSTRUI : opens Tool System Restore (For Vista only)<br />%WINDIR%\SYSTEM32\RESTORE\rstrui.exe: opens Tool System Restore (for XP only).<br />MSINFO32: Opens the System Information<br />MRT : launches the utility removal of malware.<br />Taskmgr : Opens the Windows Task Manager<br />CMD: opens a command prompt<br />MIGWIZ: Opens the tool for transferring files and settings from Windows (Vista only)<br />Migwiz.exe: Opens the tool for transferring files and settings from Windows (for XP only)<br />SIDEBAR: Open the Windows (Vista only)<br />Sigverif : Opens the tool for verification of signatures of files<br />Winver : Opens the window for your Windows version<br />FSQUIRT: Bluetooth Transfer Wizard<br />IExpress opens the wizard for creating self-extracting archives. Tutorial HERE<br />MBLCTR: opens the mobility center (Windows Vista only)<br />MSRA : Opens the Windows Remote Assistance<br />Mstsc : opens the tool connection Remote Desktop<br />MSDT: opens the diagnostic tools and support Microsoft<br />WERCON: opens the reporting tool and solutions to problems (for Vista only)<br />WINDOWSANYTIMEUPGRADE: Enables the upgrade of Windows Vista<br />WINWORD : opens Word (if installed)<br />PRINTBRMUI : Opens migration wizard printer (Vista only)<a name="disk-management"></a><br />Disk management<br />DISKMGMT.MSC: opens disk management utility<br />CLEANMGR: opens disk drive clean up utility<br />DFRG.MSC: opens disk defragmenter<br />CHKDSK: complete analysis of disk partition<br />DISKPART: disk partitioning tool<a name="connection-management"></a><br />Connection management<br />IPCONFIG: list the configuration of IP addresses on your PC (for more information type IPCONFIG/? in the CMD menu)<br />INETCPL.CPL: opens internet properties<br />FIREWALL.CPL: opens windows firewall<br />NETSETUP.CPL: opens network setup wizard<a name="miscellaneous-commands"></a><br />Miscellaneous commands<br />JAVAWS: View the cover of JAVA software (if installed)<br />AC3FILTER.CPL: Opens the properties AC3 Filter (if installed)<br />FIREFOX: Mozilla launches Firefox (if installed)<br />NETPROJ: allow or not connecting to a network projector (For Vista only)<br />LOGOFF: closes the current session<br />SHUTDOWN: shut down Windows<br />SHUTDOWN-A: to interrupt Windows shutdown<br />%WINDIR% or %SYSTEMROOT%: opens the Windows installation<br />%PROGRAMFILES%: Opens the folder where you installed other programs (Program Files)<br />%USERPROFILE%: opens the profile of the user currently logged<br />%HOMEDRIVE%: opens the browser on the partition or the operating system is installed<br />%HOMEPATH%: opens the currently logged user C: \ Documents and Settings \ [username]<br />%TEMP%: opens the temporary folder<br />VSP1CLN: deletes the cache for installation of the service pack 1 for Vista<br />System File Checker (Requires Windows CD if the cache is not available):<br />SFC / scannow: immediately scans all system files and repairs damaged files<br />SFC / VERIFYONLY: scans only those files system<br />SFC / Scanfil = "name and file path": scans the specified file, and repaired if damaged<br />SFC / VERIFYFILE = "name and file path": Scans only the file specified<br />SFC / scanonce: scans the system files on the next restart<br />SFC / REVERT: return the initial configuration (For more information, type SFC /? In the command prompt CMD.<br />Thanks to :<br /><a href="http://en.kioskea.net/faq/403-command-prompts-for-windows">http://en.kioskea.net/faq/403-command-prompts-for-windows</a> <div style='clear: both;'></div> </div> <div class='post-footer'> <div class='post-footer-line post-footer-line-1'> <span class='post-author vcard'> Posted by <span class='fn' itemprop='author' itemscope='itemscope' itemtype='http://schema.org/Person'> <span itemprop='name'>Sivakumar</span> </span> </span> <span class='post-timestamp'> at <meta content='http://sivanihonjin.blogspot.com/2010/07/command-prompts-for-windows.html' itemprop='url'/> <a class='timestamp-link' href='https://sivanihonjin.blogspot.com/2010/07/command-prompts-for-windows.html' rel='bookmark' title='permanent link'><abbr class='published' itemprop='datePublished' title='2010-07-07T04:15:00-07:00'>7/07/2010 04:15:00 AM</abbr></a> </span> <span class='post-comment-link'> <a class='comment-link' href='https://sivanihonjin.blogspot.com/2010/07/command-prompts-for-windows.html#comment-form' onclick=''> No comments: </a> </span> <span class='post-icons'> <span class='item-action'> <a href='https://www.blogger.com/email-post/2916662426460066736/8801248166936195677' title='Email Post'> <img alt='' class='icon-action' height='13' src='https://resources.blogblog.com/img/icon18_email.gif' width='18'/> </a> </span> <span class='item-control blog-admin pid-1067355270'> <a href='https://www.blogger.com/post-edit.g?blogID=2916662426460066736&postID=8801248166936195677&from=pencil' title='Edit Post'> <img alt='' class='icon-action' height='18' src='https://resources.blogblog.com/img/icon18_edit_allbkg.gif' width='18'/> </a> </span> </span> <div class='post-share-buttons goog-inline-block'> </div> </div> <div class='post-footer-line post-footer-line-2'> <span class='post-labels'> </span> </div> <div class='post-footer-line post-footer-line-3'> <span class='post-location'> </span> </div> </div> </div> </div> </div></div> </div> <div class='blog-pager' id='blog-pager'> <span id='blog-pager-newer-link'> <a class='blog-pager-newer-link' href='https://sivanihonjin.blogspot.com/search?updated-max=2010-12-01T03:59:00-08:00&max-results=20&reverse-paginate=true' id='Blog1_blog-pager-newer-link' title='Newer Posts'>Newer Posts</a> </span> <span id='blog-pager-older-link'> <a class='blog-pager-older-link' href='https://sivanihonjin.blogspot.com/search?updated-max=2010-07-07T04:15:00-07:00&max-results=20&start=12&by-date=false' id='Blog1_blog-pager-older-link' title='Older Posts'>Older Posts</a> </span> <a class='home-link' href='https://sivanihonjin.blogspot.com/'>Home</a> </div> <div class='clear'></div> <div class='blog-feeds'> <div class='feed-links'> Subscribe to: <a class='feed-link' href='https://sivanihonjin.blogspot.com/feeds/posts/default' target='_blank' type='application/atom+xml'>Posts (Atom)</a> </div> </div> </div></div> </div> </div> <div class='column-left-outer'> <div class='column-left-inner'> <aside> <div class='sidebar section' id='sidebar-left-1'><div class='widget Poll' data-version='1' id='Poll1'> <h2 class='title'>What is the aXb:c refers to in 802.11n protocols specifying the no of antennaes ? for eg: 2x3:2 means </h2> <div class='widget-content'> <iframe allowtransparency='true' frameborder='0' height='260' name='poll-widget-6504448491053621198' style='border:none; width:100%;'></iframe> <div class='clear'></div> </div> </div><div class='widget Image' data-version='1' id='Image1'> <h2>Renault's Twizy - Small Electric car</h2> <div class='widget-content'> <a href='http://www.renault.com/en/innovation/vehicule-electrique/pages/twizy-ze-concept.aspx'> <img alt='Renault's Twizy - Small Electric car' height='149' id='Image1_img' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjS-SGE0it-Pcs3Lq1Zv2_GcO0Q1nVpn-KASSKRhOk0deng_hU7zALghN1EX9JKltkbqnwR5ooyWPFfk8WupccTIfHm20A5fGhbIze2ZuVbpcP1J5RzQROUbhvzGV3IZMmoYEm5mMeU3vk/s250/5048465160_46bde58c51.jpg' width='250'/> </a> <br/> <span class='caption'>Future car</span> </div> <div class='clear'></div> </div><div class='widget Followers' data-version='1' id='Followers1'> <h2 class='title'>Followers</h2> <div class='widget-content'> <div id='Followers1-wrapper'> <div style='margin-right:2px;'> <div><script type="text/javascript" src="https://apis.google.com/js/platform.js"></script> <div id="followers-iframe-container"></div> <script type="text/javascript"> window.followersIframe = null; function followersIframeOpen(url) { gapi.load("gapi.iframes", function() { if (gapi.iframes && gapi.iframes.getContext) { window.followersIframe = gapi.iframes.getContext().openChild({ url: url, where: document.getElementById("followers-iframe-container"), messageHandlersFilter: gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER, messageHandlers: { '_ready': function(obj) { window.followersIframe.getIframeEl().height = obj.height; }, 'reset': function() { window.followersIframe.close(); followersIframeOpen("https://www.blogger.com/followers/frame/2916662426460066736?colors\x3dCgt0cmFuc3BhcmVudBILdHJhbnNwYXJlbnQaByMyMjIyMjIiByMyNDlmYTMqByNmZmZmZmYyByMwMDAwMDA6ByMyMjIyMjJCByMyNDlmYTNKByM5OTk5OTlSByMyNDlmYTNaC3RyYW5zcGFyZW50\x26pageSize\x3d21\x26hl\x3den\x26origin\x3dhttps://sivanihonjin.blogspot.com"); }, 'open': function(url) { window.followersIframe.close(); followersIframeOpen(url); } } }); } }); } followersIframeOpen("https://www.blogger.com/followers/frame/2916662426460066736?colors\x3dCgt0cmFuc3BhcmVudBILdHJhbnNwYXJlbnQaByMyMjIyMjIiByMyNDlmYTMqByNmZmZmZmYyByMwMDAwMDA6ByMyMjIyMjJCByMyNDlmYTNKByM5OTk5OTlSByMyNDlmYTNaC3RyYW5zcGFyZW50\x26pageSize\x3d21\x26hl\x3den\x26origin\x3dhttps://sivanihonjin.blogspot.com"); </script></div> </div> </div> <div class='clear'></div> </div> </div><div class='widget HTML' data-version='1' id='HTML2'> <h2 class='title'>Wireless Car Driving - By Fadii</h2> <div class='widget-content'> <object width="500" height="405"><param name="movie" value="http://www.youtube.com/v/-CmuYCq7lnM&hl=en_US&fs=1&border=1" /><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><embed src="http://www.youtube.com/v/-CmuYCq7lnM&hl=en_US&fs=1&border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="250" height="250"></embed></object> </div> <div class='clear'></div> </div><div class='widget BlogArchive' data-version='1' id='BlogArchive1'> <h2>Blog Archive</h2> <div class='widget-content'> <div id='ArchiveList'> <div id='BlogArchive1_ArchiveList'> <ul class='hierarchy'> <li class='archivedate expanded'> <a class='toggle' href='javascript:void(0)'> <span class='zippy toggle-open'> ▼  </span> </a> <a class='post-count-link' href='https://sivanihonjin.blogspot.com/2018/'> 2018 </a> <span class='post-count' dir='ltr'>(1)</span> <ul class='hierarchy'> <li class='archivedate expanded'> <a class='toggle' href='javascript:void(0)'> <span class='zippy toggle-open'> ▼  </span> </a> <a class='post-count-link' href='https://sivanihonjin.blogspot.com/2018/05/'> May </a> <span class='post-count' dir='ltr'>(1)</span> <ul class='posts'> <li><a href='https://sivanihonjin.blogspot.com/2018/05/how-to-easily-make-ntfs-partitions-read.html'>How to Easily make ‘NTFS’ Partitions read-only in ...</a></li> </ul> </li> </ul> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://sivanihonjin.blogspot.com/2016/'> 2016 </a> <span class='post-count' dir='ltr'>(3)</span> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://sivanihonjin.blogspot.com/2016/07/'> July </a> <span class='post-count' dir='ltr'>(1)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://sivanihonjin.blogspot.com/2016/01/'> January </a> <span class='post-count' dir='ltr'>(2)</span> </li> </ul> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://sivanihonjin.blogspot.com/2015/'> 2015 </a> <span class='post-count' dir='ltr'>(6)</span> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://sivanihonjin.blogspot.com/2015/12/'> December </a> <span class='post-count' dir='ltr'>(1)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://sivanihonjin.blogspot.com/2015/11/'> November </a> <span class='post-count' dir='ltr'>(1)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://sivanihonjin.blogspot.com/2015/07/'> July </a> <span class='post-count' dir='ltr'>(2)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://sivanihonjin.blogspot.com/2015/04/'> April </a> <span class='post-count' dir='ltr'>(2)</span> </li> </ul> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://sivanihonjin.blogspot.com/2014/'> 2014 </a> <span class='post-count' dir='ltr'>(7)</span> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://sivanihonjin.blogspot.com/2014/12/'> December </a> <span class='post-count' dir='ltr'>(3)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://sivanihonjin.blogspot.com/2014/07/'> July </a> <span class='post-count' dir='ltr'>(1)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://sivanihonjin.blogspot.com/2014/06/'> June </a> <span class='post-count' dir='ltr'>(1)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://sivanihonjin.blogspot.com/2014/05/'> May </a> <span class='post-count' dir='ltr'>(1)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://sivanihonjin.blogspot.com/2014/01/'> January </a> <span class='post-count' dir='ltr'>(1)</span> </li> </ul> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://sivanihonjin.blogspot.com/2013/'> 2013 </a> <span class='post-count' dir='ltr'>(19)</span> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://sivanihonjin.blogspot.com/2013/12/'> December </a> <span class='post-count' dir='ltr'>(3)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://sivanihonjin.blogspot.com/2013/09/'> September </a> <span class='post-count' dir='ltr'>(2)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://sivanihonjin.blogspot.com/2013/08/'> August </a> <span class='post-count' dir='ltr'>(2)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://sivanihonjin.blogspot.com/2013/07/'> July </a> <span class='post-count' dir='ltr'>(1)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://sivanihonjin.blogspot.com/2013/06/'> June </a> <span class='post-count' dir='ltr'>(4)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://sivanihonjin.blogspot.com/2013/05/'> May </a> <span class='post-count' dir='ltr'>(1)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://sivanihonjin.blogspot.com/2013/04/'> April </a> <span class='post-count' dir='ltr'>(1)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://sivanihonjin.blogspot.com/2013/03/'> March </a> <span class='post-count' dir='ltr'>(2)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://sivanihonjin.blogspot.com/2013/02/'> February </a> <span class='post-count' dir='ltr'>(1)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://sivanihonjin.blogspot.com/2013/01/'> January </a> <span class='post-count' dir='ltr'>(2)</span> </li> </ul> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://sivanihonjin.blogspot.com/2012/'> 2012 </a> <span class='post-count' dir='ltr'>(39)</span> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://sivanihonjin.blogspot.com/2012/12/'> December </a> <span class='post-count' dir='ltr'>(2)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://sivanihonjin.blogspot.com/2012/11/'> November </a> <span class='post-count' dir='ltr'>(4)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://sivanihonjin.blogspot.com/2012/10/'> October </a> <span class='post-count' dir='ltr'>(8)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://sivanihonjin.blogspot.com/2012/09/'> September </a> <span class='post-count' dir='ltr'>(2)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://sivanihonjin.blogspot.com/2012/07/'> July </a> <span class='post-count' dir='ltr'>(6)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://sivanihonjin.blogspot.com/2012/06/'> June </a> <span class='post-count' dir='ltr'>(6)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://sivanihonjin.blogspot.com/2012/05/'> May </a> <span class='post-count' dir='ltr'>(1)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://sivanihonjin.blogspot.com/2012/04/'> April </a> <span class='post-count' dir='ltr'>(8)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://sivanihonjin.blogspot.com/2012/03/'> March </a> <span class='post-count' dir='ltr'>(2)</span> </li> </ul> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://sivanihonjin.blogspot.com/2011/'> 2011 </a> <span class='post-count' dir='ltr'>(62)</span> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://sivanihonjin.blogspot.com/2011/12/'> December </a> <span class='post-count' dir='ltr'>(2)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://sivanihonjin.blogspot.com/2011/11/'> November </a> <span class='post-count' dir='ltr'>(4)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://sivanihonjin.blogspot.com/2011/10/'> October </a> <span class='post-count' dir='ltr'>(2)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://sivanihonjin.blogspot.com/2011/08/'> August </a> <span class='post-count' dir='ltr'>(7)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://sivanihonjin.blogspot.com/2011/07/'> July </a> <span class='post-count' dir='ltr'>(3)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://sivanihonjin.blogspot.com/2011/06/'> June </a> <span class='post-count' dir='ltr'>(5)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://sivanihonjin.blogspot.com/2011/05/'> May </a> <span class='post-count' dir='ltr'>(3)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://sivanihonjin.blogspot.com/2011/04/'> April </a> <span class='post-count' dir='ltr'>(5)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://sivanihonjin.blogspot.com/2011/03/'> March </a> <span class='post-count' dir='ltr'>(4)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://sivanihonjin.blogspot.com/2011/02/'> February </a> <span class='post-count' dir='ltr'>(11)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://sivanihonjin.blogspot.com/2011/01/'> January </a> <span class='post-count' dir='ltr'>(16)</span> </li> </ul> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://sivanihonjin.blogspot.com/2010/'> 2010 </a> <span class='post-count' dir='ltr'>(110)</span> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://sivanihonjin.blogspot.com/2010/12/'> December </a> <span class='post-count' dir='ltr'>(19)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://sivanihonjin.blogspot.com/2010/11/'> November </a> <span class='post-count' dir='ltr'>(13)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://sivanihonjin.blogspot.com/2010/10/'> October </a> <span class='post-count' dir='ltr'>(7)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://sivanihonjin.blogspot.com/2010/09/'> September </a> <span class='post-count' dir='ltr'>(7)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://sivanihonjin.blogspot.com/2010/07/'> July </a> <span class='post-count' dir='ltr'>(2)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://sivanihonjin.blogspot.com/2010/06/'> June </a> <span class='post-count' dir='ltr'>(10)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://sivanihonjin.blogspot.com/2010/05/'> May </a> <span class='post-count' dir='ltr'>(5)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://sivanihonjin.blogspot.com/2010/04/'> April </a> <span class='post-count' dir='ltr'>(15)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://sivanihonjin.blogspot.com/2010/03/'> March </a> <span class='post-count' dir='ltr'>(7)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://sivanihonjin.blogspot.com/2010/02/'> February </a> <span class='post-count' dir='ltr'>(4)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://sivanihonjin.blogspot.com/2010/01/'> January </a> <span class='post-count' dir='ltr'>(21)</span> </li> </ul> </li> </ul> </div> </div> <div class='clear'></div> </div> </div> </div> </aside> </div> </div> <div class='column-right-outer'> <div class='column-right-inner'> <aside> </aside> </div> </div> </div> <div style='clear: both'></div> <!-- columns --> </div> <!-- main --> </div> </div> <div class='main-cap-bottom cap-bottom'> <div class='cap-left'></div> <div class='cap-right'></div> </div> </div> <footer> <div class='footer-outer'> <div class='footer-cap-top cap-top'> <div class='cap-left'></div> <div class='cap-right'></div> </div> <div class='fauxborder-left footer-fauxborder-left'> <div class='fauxborder-right footer-fauxborder-right'></div> <div class='region-inner footer-inner'> <div class='foot no-items section' id='footer-1'></div> <table border='0' cellpadding='0' cellspacing='0' class='section-columns columns-2'> <tbody> <tr> <td class='first columns-cell'> <div class='foot no-items section' id='footer-2-1'></div> </td> <td class='columns-cell'> <div class='foot no-items section' id='footer-2-2'></div> </td> </tr> </tbody> </table> <!-- outside of the include in order to lock Attribution widget --> <div class='foot section' id='footer-3' name='Footer'><div class='widget Attribution' data-version='1' id='Attribution1'> <div class='widget-content' style='text-align: center;'> Sivakumar. Simple theme. Theme images by <a href='http://www.istockphoto.com/googleimages.php?id=4072573&platform=blogger&langregion=en' target='_blank'>gaffera</a>. Powered by <a href='https://www.blogger.com' target='_blank'>Blogger</a>. </div> <div class='clear'></div> </div></div> </div> </div> <div class='footer-cap-bottom cap-bottom'> <div class='cap-left'></div> <div class='cap-right'></div> </div> </div> </footer> <!-- content --> </div> </div> <div class='content-cap-bottom cap-bottom'> <div class='cap-left'></div> <div class='cap-right'></div> </div> </div> </div> <script type='text/javascript'> window.setTimeout(function() { document.body.className = document.body.className.replace('loading', ''); }, 10); </script> <script type="text/javascript" src="https://www.blogger.com/static/v1/widgets/3432011497-widgets.js"></script> <script type='text/javascript'> window['__wavt'] = 'AEUoTZqi5mzntY5PoLiGdSW5lm_p:1784648365573';_WidgetManager._Init('//www.blogger.com/rearrange?blogID\x3d2916662426460066736','//sivanihonjin.blogspot.com/search?updated-max\x3d2010-10-26T22:31:00-07:00','2916662426460066736'); _WidgetManager._SetDataContext([{'name': 'blog', 'data': {'blogId': '2916662426460066736', 'title': 'Nihonjin \u30b7\u30ef\u30af\u30de\u30eb Sivakumar\x27s Blog', 'url': 'https://sivanihonjin.blogspot.com/search?updated-max\x3d2010-10-26T22:31:00-07:00', 'canonicalUrl': 'http://sivanihonjin.blogspot.com/search?updated-max\x3d2010-10-26T22:31:00-07:00', 'homepageUrl': 'https://sivanihonjin.blogspot.com/', 'searchUrl': 'https://sivanihonjin.blogspot.com/search', 'canonicalHomepageUrl': 'http://sivanihonjin.blogspot.com/', 'blogspotFaviconUrl': 'https://sivanihonjin.blogspot.com/favicon.ico', 'bloggerUrl': 'https://www.blogger.com', 'hasCustomDomain': false, 'httpsEnabled': true, 'enabledCommentProfileImages': true, 'gPlusViewType': 'FILTERED_POSTMOD', 'adultContent': false, 'analyticsAccountNumber': '', 'encoding': 'UTF-8', 'locale': 'en', 'localeUnderscoreDelimited': 'en', 'languageDirection': 'ltr', 'isPrivate': false, 'isMobile': false, 'isMobileRequest': false, 'mobileClass': '', 'isPrivateBlog': false, 'isDynamicViewsAvailable': true, 'feedLinks': '\x3clink rel\x3d\x22alternate\x22 type\x3d\x22application/atom+xml\x22 title\x3d\x22Nihonjin \u30b7\u30ef\u30af\u30de\u30eb Sivakumar\x26#39;s Blog - Atom\x22 href\x3d\x22https://sivanihonjin.blogspot.com/feeds/posts/default\x22 /\x3e\n\x3clink rel\x3d\x22alternate\x22 type\x3d\x22application/rss+xml\x22 title\x3d\x22Nihonjin \u30b7\u30ef\u30af\u30de\u30eb Sivakumar\x26#39;s Blog - RSS\x22 href\x3d\x22https://sivanihonjin.blogspot.com/feeds/posts/default?alt\x3drss\x22 /\x3e\n\x3clink rel\x3d\x22service.post\x22 type\x3d\x22application/atom+xml\x22 title\x3d\x22Nihonjin \u30b7\u30ef\u30af\u30de\u30eb Sivakumar\x26#39;s Blog - Atom\x22 href\x3d\x22https://www.blogger.com/feeds/2916662426460066736/posts/default\x22 /\x3e\n', 'meTag': '', 'adsenseHostId': 'ca-host-pub-1556223355139109', 'adsenseHasAds': false, 'adsenseAutoAds': false, 'boqCommentIframeForm': true, 'loginRedirectParam': '', 'view': '', 'dynamicViewsCommentsSrc': '//www.blogblog.com/dynamicviews/4224c15c4e7c9321/js/comments.js', 'dynamicViewsScriptSrc': '//www.blogblog.com/dynamicviews/1ffab022afe7beb1', 'plusOneApiSrc': 'https://apis.google.com/js/platform.js', 'disableGComments': true, 'interstitialAccepted': false, 'sharing': {'platforms': [{'name': 'Get link', 'key': 'link', 'shareMessage': 'Get link', 'target': ''}, {'name': 'Facebook', 'key': 'facebook', 'shareMessage': 'Share to Facebook', 'target': 'facebook'}, {'name': 'BlogThis!', 'key': 'blogThis', 'shareMessage': 'BlogThis!', 'target': 'blog'}, {'name': 'X', 'key': 'twitter', 'shareMessage': 'Share to X', 'target': 'twitter'}, {'name': 'Pinterest', 'key': 'pinterest', 'shareMessage': 'Share to Pinterest', 'target': 'pinterest'}, {'name': 'Email', 'key': 'email', 'shareMessage': 'Email', 'target': 'email'}], 'disableGooglePlus': true, 'googlePlusShareButtonWidth': 0, 'googlePlusBootstrap': '\x3cscript type\x3d\x22text/javascript\x22\x3ewindow.___gcfg \x3d {\x27lang\x27: \x27en\x27};\x3c/script\x3e'}, 'hasCustomJumpLinkMessage': false, 'jumpLinkMessage': 'Read more', 'pageType': 'index', 'pageName': '', 'pageTitle': 'Nihonjin \u30b7\u30ef\u30af\u30de\u30eb Sivakumar\x27s Blog'}}, {'name': 'features', 'data': {}}, {'name': 'messages', 'data': {'edit': 'Edit', 'linkCopiedToClipboard': 'Link copied to clipboard!', 'ok': 'Ok', 'postLink': 'Post Link'}}, {'name': 'template', 'data': {'name': 'Simple', 'localizedName': 'Simple', 'isResponsive': false, 'isAlternateRendering': false, 'isCustom': false, 'variant': 'wide', 'variantId': 'wide'}}, {'name': 'view', 'data': {'classic': {'name': 'classic', 'url': '?view\x3dclassic'}, 'flipcard': {'name': 'flipcard', 'url': '?view\x3dflipcard'}, 'magazine': {'name': 'magazine', 'url': '?view\x3dmagazine'}, 'mosaic': {'name': 'mosaic', 'url': '?view\x3dmosaic'}, 'sidebar': {'name': 'sidebar', 'url': '?view\x3dsidebar'}, 'snapshot': {'name': 'snapshot', 'url': '?view\x3dsnapshot'}, 'timeslide': {'name': 'timeslide', 'url': '?view\x3dtimeslide'}, 'isMobile': false, 'title': 'Nihonjin \u30b7\u30ef\u30af\u30de\u30eb Sivakumar\x27s Blog', 'description': 'This blog is made for Expressing My Ideas, Views, and to put some technical datas.', 'url': 'https://sivanihonjin.blogspot.com/search?updated-max\x3d2010-10-26T22:31:00-07:00', 'type': 'feed', 'isSingleItem': false, 'isMultipleItems': true, 'isError': false, 'isPage': false, 'isPost': false, 'isHomepage': false, 'isArchive': false, 'isSearch': true, 'isLabelSearch': false, 'search': {}}}]); _WidgetManager._RegisterWidget('_NavbarView', new _WidgetInfo('Navbar1', 'navbar', document.getElementById('Navbar1'), {}, 'displayModeFull')); _WidgetManager._RegisterWidget('_HeaderView', new _WidgetInfo('Header1', 'header', document.getElementById('Header1'), {}, 'displayModeFull')); _WidgetManager._RegisterWidget('_BlogView', new _WidgetInfo('Blog1', 'main', document.getElementById('Blog1'), {'cmtInteractionsEnabled': false, 'lightboxEnabled': true, 'lightboxModuleUrl': 'https://www.blogger.com/static/v1/jsbin/3899201366-lbx.js', 'lightboxCssUrl': 'https://www.blogger.com/static/v1/v-css/828616780-lightbox_bundle.css'}, 'displayModeFull')); _WidgetManager._RegisterWidget('_PollView', new _WidgetInfo('Poll1', 'sidebar-left-1', document.getElementById('Poll1'), {'pollid': '-6504448491053621198', 'iframeurl': '/b/poll-results?pollWidget\x3dPoll1\x26txtclr\x3d%23222222\x26lnkclr\x3d%23249fa3\x26chrtclr\x3d%23249fa3\x26font\x3dnormal+normal+12px+Arial,+Tahoma,+Helvetica,+FreeSans,+sans-serif\x26hideq\x3dtrue\x26purl\x3dhttps://sivanihonjin.blogspot.com/'}, 'displayModeFull')); _WidgetManager._RegisterWidget('_ImageView', new _WidgetInfo('Image1', 'sidebar-left-1', document.getElementById('Image1'), {'resize': false}, 'displayModeFull')); _WidgetManager._RegisterWidget('_FollowersView', new _WidgetInfo('Followers1', 'sidebar-left-1', document.getElementById('Followers1'), {}, 'displayModeFull')); _WidgetManager._RegisterWidget('_HTMLView', new _WidgetInfo('HTML2', 'sidebar-left-1', document.getElementById('HTML2'), {}, 'displayModeFull')); _WidgetManager._RegisterWidget('_BlogArchiveView', new _WidgetInfo('BlogArchive1', 'sidebar-left-1', document.getElementById('BlogArchive1'), {'languageDirection': 'ltr', 'loadingMessage': 'Loading\x26hellip;'}, 'displayModeFull')); _WidgetManager._RegisterWidget('_AttributionView', new _WidgetInfo('Attribution1', 'footer-3', document.getElementById('Attribution1'), {}, 'displayModeFull')); </script> </body> </html>