이 콘텐츠는 선택한 언어로 제공되지 않습니다.
3.3. Other Commands
3.3.1. End of File (EOF) 링크 복사링크가 클립보드에 복사되었습니다!
EOF
command to leave the CLI shell using a Ctrl+D
sequence.
EOF
Example 3.10. Example for EOF
[RHEVM shell (connected)]# EOF
[RHEVM shell (connected)]# EOF
3.3.2. List System Capabilities (capabilities) 링크 복사링크가 클립보드에 복사되었습니다!
capabilties
--features
command to list all version capabilities and new features of the current version.
capabilities
--features
Example 3.11. Example for capabilities
3.3.3. Clear the Screen (clear) 링크 복사링크가 클립보드에 복사되었습니다!
clear
command to clear the CLI screen.
clear
Example 3.12. Example for clear
[RHEVM shell (connected)]# clear
[RHEVM shell (connected)]# clear
3.3.4. Connect to VM (console) 링크 복사링크가 클립보드에 복사되었습니다!
console
command to open a graphical console to a virtual machine. This command opens either an external VNC or SPICE client based upon the virtual machine's display-type
parameter.
console [vm-id|vm-name]
Example 3.13. Example for console
[RHEVM shell (connected)]# console RHEL6-Server
[RHEVM shell (connected)]# console RHEL6-Server
3.3.5. Print Input (echo) 링크 복사링크가 클립보드에 복사되었습니다!
echo
command to print input to the screen. Use the $out
variable to print the last shell command output.
echo [input]
Example 3.14. Example for echo
[RHEVM shell (connected)]# echo "Example text!"
[RHEVM shell (connected)]# echo "Example text!"
[RHEVM shell (connected)]# echo $out
[RHEVM shell (connected)]# echo $out
3.3.6. Exit from the CLI (exit) 링크 복사링크가 클립보드에 복사되었습니다!
exit
command to leave a CLI.
exit
Example 3.15. Example for exit
[RHEVM shell (connected)]# exit
[RHEVM shell (connected)]# exit
3.3.7. Run a Script (file) 링크 복사링크가 클립보드에 복사되었습니다!
file
command to run a CLI script file. A script is a plain text file that contains a list of commands for execution.
file [file-location]
Example 3.16. Example for file
[RHEVM shell (connected)]# file /example/example-script
[RHEVM shell (connected)]# file /example/example-script
3.3.8. Show Help (help) 링크 복사링크가 클립보드에 복사되었습니다!
help
command displays help for CLI command and resource combinations.
help [command] [resource] [options]
Example 3.17. Examples for help
[RHEVM shell (connected)]# help
[RHEVM shell (connected)]# help
add
command:
[RHEVM shell (connected)]# help add
[RHEVM shell (connected)]# help add
add
command on the vm
resource type:
[RHEVM shell (connected)]# help add vm
[RHEVM shell (connected)]# help add vm
3.3.9. Display the User Command History (history) 링크 복사링크가 클립보드에 복사되었습니다!
history
command to display the history of user commands for the CLI shell.
history
Example 3.18. Example for history
[RHEVM shell (connected)]# history
[RHEVM shell (connected)]# history
Example 3.19. Example for history --first
--first
n parameter:
[RHEVM shell (connected)]# history --first 5
[RHEVM shell (connected)]# history --first 5
Example 3.20. Example for history --last
--last
n parameter:
[RHEVM shell (connected)]# history --last 5
[RHEVM shell (connected)]# history --last 5
3.3.10. Show CLI Information (info) 링크 복사링크가 클립보드에 복사되었습니다!
info
command to display environment connection details and version information.
info
Example 3.21. Example for info
3.3.11. Test Connection (ping) 링크 복사링크가 클립보드에 복사되었습니다!
ping
command tests the connection to your Red Hat Enterprise Virtualization Manager. The command retrieves a remote resource and ensures the URL, user name and password for the connection are correct.
ping
Example 3.22. Example for ping
[RHEVM shell (connected)]# ping success: RHEVM manager could be reached OK.
[RHEVM shell (connected)]# ping
success: RHEVM manager could be reached OK.
3.3.12. Run a Shell Command (shell) 링크 복사링크가 클립보드에 복사되었습니다!
shell
command to run a command from the Linux shell. This command helps with performing file management tasks in conjunction with the Red Hat Enterprise Virtualization Manager shell.
shell [vm-id|vm-name]
Example 3.23. Examples for shell
[RHEVM shell (connected)]# shell ls
[RHEVM shell (connected)]# shell ls
[RHEVM shell (connected)]# shell touch example.txt
[RHEVM shell (connected)]# shell touch example.txt
[RHEVM shell (connected)]# shell cp example.txt /example-dir/.
[RHEVM shell (connected)]# shell cp example.txt /example-dir/.
Note
shell
using the bang (!
) character. For example:
[RHEVM shell (connected)]# !touch example.txt
[RHEVM shell (connected)]# !touch example.txt
3.3.13. Show Last Status (status) 링크 복사링크가 클립보드에 복사되었습니다!
status
command to display the most recently run command status.
status
Example 3.24. Example for status
[RHEVM shell (connected)]# status last command status: 0 (OK)
[RHEVM shell (connected)]# status
last command status: 0 (OK)
3.3.14. Show System Summary (summary) 링크 복사링크가 클립보드에 복사되었습니다!
summary
command to display a summary of the system status.
summary
Example 3.25. Example for summary