Difference between revisions of "Binary files"

From WikEmacs
Jump to: navigation, search
(Anh con may voi nhau xem di)
m (Reverted edits by 37.59.80.67 (talk) to last revision by 115.242.172.67)
 
Line 1: Line 1:
Hello my friend heres my new gig easy as it looks Ill send u a total of 5350++ backlinks to your website in 2 tiers. This gig its for 1 website and up to 5 keywords. First tier to your main website 350 page rank 1-5 and the the second tier of 5000 profile backlinks pointing to your first tier.Ill send u a report in a txt file in less than 48 hours.Any question just send me a private message
+
== Hexl Mode ==
 +
 
 +
There is a special major mode for editing binary files: Hexl mode. To use it, use M-x hexl-find-file instead of C-x C-f to visit the file. This command converts the file's contents to hexadecimal and lets you edit the translation. When you save the file, it is converted automatically back to binary.
 +
 
 +
You can also use M-x hexl-mode to translate an existing buffer into hex. This is useful if you visit a file normally and then discover it is a binary file.
 +
 
 +
Ordinary text characters overwrite in Hexl mode. This is to reduce the risk of accidentally spoiling the alignment of data in the file. There are special commands for insertion. Here is a list of the commands of Hexl mode:
 +
 
 +
*C-M-d
 +
Insert a byte with a code typed in decimal.
 +
*C-M-o
 +
Insert a byte with a code typed in octal.  
 +
*C-M-x
 +
Insert a byte with a code typed in hex.
 +
*C-x [
 +
Move to the beginning of a 1k-byte “page.”
 +
*C-x ]
 +
Move to the end of a 1k-byte “page.”
 +
*M-g
 +
Move to an address specified in hex.
 +
*M-j
 +
Move to an address specified in decimal.
 +
*C-c C-c
 +
Leave Hexl mode, going back to the major mode this buffer had before you invoked hexl-mode.
 +
Other Hexl commands let you insert strings (sequences) of binary bytes, move by shorts or ints, etc.; type C-h a hexl-<RET> for details.
 +
 
 +
 
 +
[[Category:Binary]]

Latest revision as of 15:41, 24 June 2012

Hexl Mode[edit]

There is a special major mode for editing binary files: Hexl mode. To use it, use M-x hexl-find-file instead of C-x C-f to visit the file. This command converts the file's contents to hexadecimal and lets you edit the translation. When you save the file, it is converted automatically back to binary.

You can also use M-x hexl-mode to translate an existing buffer into hex. This is useful if you visit a file normally and then discover it is a binary file.

Ordinary text characters overwrite in Hexl mode. This is to reduce the risk of accidentally spoiling the alignment of data in the file. There are special commands for insertion. Here is a list of the commands of Hexl mode:

  • C-M-d

Insert a byte with a code typed in decimal.

  • C-M-o

Insert a byte with a code typed in octal.

  • C-M-x

Insert a byte with a code typed in hex.

  • C-x [

Move to the beginning of a 1k-byte “page.”

  • C-x ]

Move to the end of a 1k-byte “page.”

  • M-g

Move to an address specified in hex.

  • M-j

Move to an address specified in decimal.

  • C-c C-c

Leave Hexl mode, going back to the major mode this buffer had before you invoked hexl-mode. Other Hexl commands let you insert strings (sequences) of binary bytes, move by shorts or ints, etc.; type C-h a hexl-<RET> for details.