사용

3.1. 파일을 편집하려면

파일을 편집하려면 다음 단계를 수행합니다.

  1. 파일의 16진수 보기 또는 ASCII 보기를 클릭합니다. 커서가 활성화되어 있는 보기에는 전체 커서가 표시됩니다. 커서가 활성화되어 있지 않은 보기에는 커서의 윤곽만 표시됩니다.

  2. 다음 방법 중 하나를 사용하여 커서를 파일 주변으로 이동시킵니다.

    • Use the scrollbar on the window or the arrow keys on the keyboard to scroll through the file.
    • 편집 ▸ 바이트로 이동을 선택하고 커서 오프셋을 10진수 또는 16진수 값으로 입력한 다음 확인을 클릭합니다. 16진수 값은 0x 다음에 오프셋을 지정하는 형식이어야 합니다(예: 0x3).
  3. Edit the ASCII format in the same way you edit a normal text file. To edit the hexadecimal format, use the values 0 to 9 and a to f.

To insert data and not overwrite existing data, choose Edit ▸ Insert Mode.

To cut, copy, and paste data, choose Edit ▸ Cut, Edit ▸ Copy, and Edit ▸ Paste.

To undo an edit, choose Edit ▸ Undo. To redo an edit, choose Edit ▸ Redo. The number of previous edits that you can undo is determined by the Maximum number of undo levels setting in the 4.1항 ― 편집 tabbed section of the Preferences dialog.

3.2. 파일을 저장하려면

다음과 같은 방법으로 파일을 저장할 수 있습니다.

  • 현재 파일에 대한 변경 내용을 저장하려면 파일 ▸ 저장을 선택합니다.
  • 현재 파일을 새 파일 이름으로 저장하려면 파일 ▸ 다른 이름으로 저장을 선택합니다. 버퍼를 다른 이름으로 저장할 파일 선택 대화 상자에 파일 이름을 입력한 다음 확인을 클릭합니다.

3.3. To Revert to the Last Saved Version of a File

To revert to the last version of the current file that you saved and undo all of the edits that you made to the file since you last saved the file, choose File ▸ Revert, then click Yes in the Question dialog.

3.4. 파일에서 데이터를 찾으려면

파일에서 16진수 또는 ASCII 문자열을 검색하려면 다음 단계를 수행합니다.

  1. 편집 ▸ 찾기를 선택합니다.

  2. 데이터 찾기 대화 상자에서 다음 옵션 중 하나를 선택합니다.

    • 16진수 데이터 찾기
    • ASCII 데이터 찾기
  3. 찾을 문자열을 입력합니다.

  4. 동일한 다음 문자열을 찾으려면 다음 찾기를 클릭합니다.

  5. 동일한 이전 문자열을 찾으려면 이전 찾기를 클릭합니다.

  6. Click Cancel to close the Find Data dialog.

3.5. To Perform an Advanced Find

To perform an advanced find, perform the following steps:

  1. Choose Edit ▸ Advanced Find.
  2. In the Find Data dialog, select the required search criteria. For information about how to add new search criteria, see 3.6항 ― To Add Search Criteria.
  3. 동일한 다음 문자열을 찾으려면 다음 찾기를 클릭합니다.
  4. 동일한 이전 문자열을 찾으려면 이전 찾기를 클릭합니다.
  5. Click Close to close the Find Data dialog.

3.6. To Add Search Criteria

To add search criteria, perform the following steps:

  1. Choose Edit ▸ Advanced Find.

  2. In the Find Data dialog, click Add New.

  3. In the Find Data: Add Search dialog, choose one of the following options:

    • 16진수 데이터 찾기
    • ASCII 데이터 찾기
  4. 찾을 문자열을 입력합니다.

  5. Use the color wheel or the spin boxes to select a color to highlight the search criteria.

  6. Click Add.

  7. Click Cancel to close the Find Data dialog.

3.7. To Remove Search Criteria

To remove search criteria, perform the following steps:

  1. Choose Edit ▸ Advanced Find.
  2. In the Find Data dialog, select the search criteria that you want to remove.
  3. Click Remove Selected.
  4. Click Cancel to close the Find Data dialog.

3.8. 파일에서 데이터를 찾아 바꾸려면

파일에서 16진수 또는 ASCII 문자열을 검색하여 이 문자열을 다른 문자열로 바꾸려면 다음 단계를 수행합니다.

  1. 편집 ▸ 바꾸기를 선택합니다.

  2. 데이터 찾기 및 바꾸기 대화 상자에서 다음 옵션 중 하나를 선택합니다.

    • 16진수 데이터 바꾸기
    • ASCII 데이터 바꾸기
  3. 첫 번째 텍스트 상자에는 찾을 문자열을 입력합니다.

  4. 두 번째 텍스트 상자에는 찾은 문자열을 바꾸는 데 사용할 문자열을 입력합니다.

  5. 다음 찾기를 클릭합니다.

  6. 바꾸기를 클릭하여 현재 일치하는 문자열을 바꾸거나 모두 바꾸기를 클릭하여 일치하는 모든 문자열을 바꿉니다.

  7. Click Cancel to close the Find & Replace Data dialog.

3.9. 파일에 대한 보기를 추가하거나 제거하려면

To add another view of the current file to your GHex window, choose View ▸ Add View.

현재 파일의 보기를 제거하려면 보기 ▸ 보기 제거를 선택합니다. 열려 있는 마지막 보기를 제거하면 응용프로그램이 종료됩니다.

3.10. To Change the Data Group Type

To change how GHex displays the hexadecimal content of a file in the GHex window, choose View ▸ Group Data As, then select one of the following menu items:

  • Bytes - single bytes
  • Words - groups of two bytes
  • Longwords - groups of four bytes

3.11. GHex에 표시된 내용을 HTML로 내보내려면

GHex 창에 포함된 데이터를 HTML로 내보내려면 파일 ▸ HTML로 저장을 선택합니다. 디렉토리를 선택하고 HTML 파일의 이름을 지정한 다음 확인을 클릭합니다. GHex은(는) 다음 작업을 구현합니다.

  • GHex 창에 표시되는 각 데이터 페이지에 대해 별도의 HTML 파일을 만듭니다.
  • 기본 파일 이름으로 지정한 HTML 파일 이름을 사용합니다.
  • 파일 이름에 페이지 번호를 첨가하여 파일을 구분합니다.
예를 들어, 파일 이름을 log.html로 지정하면 GHex이(가) log00000000.html, log00000001.html, log00000002.html 등의 이름을 가진 HTML 파일을 만듭니다.

3.12. 문자 테이블을 보려면

0˜255 값에 대한 ASCII, 16진수, 10진수, 8진수 및 2진수 표현이 포함된 테이블을 표시하려면  ▸ 문자 테이블을 선택합니다.

3.13. 데이터 변환을 보려면

최대 4바이트 데이터에 대해 2진수, 10진수, 16진수 및 ASCII 변환을 표시하려면 다음 단계를 수행합니다.

  1.  ▸ 기본 변환기를 선택합니다.

  2. 다음 작업 중 하나를 수행합니다.

    • 기본 변환기 대화 상자의 필드 중 하나에 변환할 데이터를 입력한 다음 Return 키를 누릅니다.
    • 현재 파일의 커서 위치에 있는 데이터의 변환을 표시하려면 커서 값 가져오기 버튼을 클릭합니다.

    GHex은(는) 다른 필드의 값을 갱신하여 데이터 변환을 표시합니다.

  3. Click Close to close the Base Converter dialog.

3.14. To Show or Hide the Type Conversion Dialog

To show or hide the type conversion dialog, choose Windows ▸ Type Conversion Dialog.

The type conversion dialog displays the value of the selected character in the following representations:

  • Signed 8 bit
  • Unsigned 8 bit
  • Signed 16 bit
  • Unsigned 16 bit
  • Signed 32 bit
  • Unsigned 32 bit
  • 32 bit float
  • 64 bit float
  • Hexadecimal
  • Octal
  • Binary
  • Stream Length

The type conversion dialog also contains the following options:

Show little endian decoding

Select this option to show little endian decoding.

Show unsigned and float as hexadecimal

Select this option to show unsigned and float numbers as hexadecimal numbers.

3.15. 파일을 인쇄하려면

파일을 인쇄하려면 파일 ▸ 인쇄를 선택합니다. 인쇄 대화 상자에서 필요한 인쇄 옵션을 선택한 다음 확인을 클릭합니다.

파일의 인쇄 사본을 미리 보려면 파일 ▸ 인쇄 미리 보기를 선택합니다.