Red Hat Training

A Red Hat training course is available for Red Hat Virtualization

3.3.12. 쉘 명령 실행(shell)

명령을 사용하여 Linux 쉘에서 명령을 실행합니다. 이 명령은 Red Hat Virtualization Manager 쉘과 함께 파일 관리 작업을 수행하는 데 도움이 됩니다.

구문

shell [vm-id|vm-name]

예 3.23. 의 예

현재 작업 디렉터리의 파일을 나열합니다.
[RHEVM shell (connected)]# shell ls
파일을 생성합니다.
[RHEVM shell (connected)]# shell touch example.txt
파일을 복사합니다.
[RHEVM shell (connected)]# shell cp example.txt /example-dir/.
참고
CLI는 bang(!) 문자를 사용하여 쉘에 대한 대안을 제공합니다. 예를 들면 다음과 같습니다.
[RHEVM shell (connected)]# !touch example.txt