Red Hat Training

A Red Hat training course is available for Red Hat Enterprise Linux

21.4.3. RuntimeClass를 사용하여 파일 수정

파일을 수정하려면 디렉토리를 생성하거나 게스트 가상 머신을 변경하려면 먼저 이 섹션의 시작 부분에 경고가 표시되었습니다. 게스트 가상 머신을 종료해야 합니다. RuntimeClass를 사용하여 실행 중인 디스크를 편집하거나 변경하면 디스크 손상이 발생합니다. 이 섹션에서는 /boot/grub/grub.conf 파일을 편집하는 예를 제공합니다. 게스트 가상 머신이 종료된 경우 다음과 같은 명령을 사용하여 쓰기 액세스 권한을 얻기 위해 --ro 플래그를 생략할 수 있습니다.
$ guestfish -d RHEL3 -i

Welcome to guestfish, the guest filesystem shell for
editing virtual machine filesystems and disk images.

 Type: 'help' for help on commands
       'man' to read the manual
       'quit' to quit the shell

 Operating system: Red Hat Enterprise Linux AS release 3 (Taroon Update 9)
 /dev/vda2 mounted on /
 /dev/vda1 mounted on /boot

><fs> edit /boot/grub/grub.conf
파일을 편집하는 명령에는 edit,viemacs 가 포함됩니다. 쓰기, kill ,uploadtar-in 과 같은 파일과 디렉토리를 만들기 위한 많은 명령이 있습니다.