cancel
Showing results for 
Search instead for 
Did you mean: 
chzheng2023
Mission Specialist
Mission Specialist
  • 1,941 Views

How to copy the command output from lab terminal to my windows host

Jump to solution

I can copy from the training page to the lab terminal, but I haven't figured out a way to copy from lab terminal to the notepad of my windows host.

2 Solutions

Accepted Solutions
zeet
Flight Engineer
Flight Engineer
  • 1,819 Views

If the lab environment's console doesn't support copying directly to the host clipboard through its interface, consider these alternatives:

  1. Screenshot: Taking a screenshot of the output and sharing it (where allowed) can be an effective way to show what you're seeing without needing to copy and paste text. This is particularly useful for longer outputs or when exact formatting matters.

  2. Text File Transfer:

    • Save to File: You can redirect the command output to a file within the lab environment using > or tee. For example, ls -l > output.txt or ls -l | tee output.txt.  
    • Retrieve the File: Depending on the lab setup, you might be able to transfer files from the lab environment to your host system. This could be through SCP (if network policies allow), using a shared folder (in some VM setups), or other means provided by the lab environment.

_____________________________________________

 

Step :1 ::"insert Photos"Step :1 ::"insert Photos"step :2 :: Upload Filesstep :2 :: Upload Files

[root@localhost ~]# Jitendra_Kumar

View solution in original post

Chetan_Tiwary_
Community Manager
Community Manager
  • 1,809 Views

@chzheng2023 Copying from the Red Hat labs to your local machine is not allowed. 

You can take screenshots and upload it here. Use the camera icon in the reply box here or you can also use "Drag and drop here or browse files to attach"  option at the bottom of the reply box. 

Chetan_Tiwary__0-1712154195195.png

 

View solution in original post

7 Replies
huyvl3-fptcloud
Flight Engineer
Flight Engineer
  • 1,929 Views

Hi @chzheng2023 Copying from the lab console is not allowed in this window because I guess it simulates the exam environment as much as possible, the same goes for the exam. If you want to copy/paste then downloading iso/qcow from the RedHat homepage, run it and make an SSH connection. There are many versions in v9 but maybe you should choose v9.0 because the last exam I took was this version.
https://access.redhat.com/downloads/content/479/ver=/rhel---9/9.3/x86_64/product-software

zeet
Flight Engineer
Flight Engineer
  • 1,917 Views
::Using GUI-Based Clipboard ::

SharingTerminal Emulator Support:
If your lab environment allows you to use a GUI-based terminal emulator (such as PuTTY, MobaXterm, or Termius on Windows), these applications often support clipboard sharing out of the box. You can usually select text in the terminal with your mouse and then right-click to copy. Once copied, you can paste it into Notepad or any other application on your Windows host using the standard Ctrl+V shortcut.

Remote Desktop:
If you're accessing the lab environment through a remote desktop application (such as RDP, VNC, or NoMachine), these solutions generally support clipboard synchronization between the host and the client. Ensure that clipboard sharing is enabled in the remote desktop client settings before connecting.
[root@localhost ~]# Jitendra_Kumar
0 Kudos
chzheng2023
Mission Specialist
Mission Specialist
  • 1,839 Views

Thanks. I'm using the Lab console. I don't have permission to upload images here but for instance:
I can copy the commands from course tab RH134 - ch13s06 (redhat.com) and then open the console from lab environment tab and paste on the student@workstation terminal or student@servera terminal, Just hit the first button on the top right corner of terminal page to enable Host paste. But it don't allow me do the reverse, copy from lab console to host. 

I'm asking this so if I need to copy the commands output and paste on this forum to ask questions, that'll be handy, but not biggy if not able to.

 

 

zeet
Flight Engineer
Flight Engineer
  • 1,820 Views

If the lab environment's console doesn't support copying directly to the host clipboard through its interface, consider these alternatives:

  1. Screenshot: Taking a screenshot of the output and sharing it (where allowed) can be an effective way to show what you're seeing without needing to copy and paste text. This is particularly useful for longer outputs or when exact formatting matters.

  2. Text File Transfer:

    • Save to File: You can redirect the command output to a file within the lab environment using > or tee. For example, ls -l > output.txt or ls -l | tee output.txt.  
    • Retrieve the File: Depending on the lab setup, you might be able to transfer files from the lab environment to your host system. This could be through SCP (if network policies allow), using a shared folder (in some VM setups), or other means provided by the lab environment.

_____________________________________________

 

Step :1 ::"insert Photos"Step :1 ::"insert Photos"step :2 :: Upload Filesstep :2 :: Upload Files

[root@localhost ~]# Jitendra_Kumar
chzheng2023
Mission Specialist
Mission Specialist
  • 1,811 Views

Thanks Zeet. 
For #1, it says I do not have permssion to upload images. So I couldn't paste the screenshot on this forum.

For #2, I'm using the lab environment provided by this redhat training site, not using my own lab env. I know how to do that on my own lab env but not on this course lab env.

 

Chetan_Tiwary_
Community Manager
Community Manager
  • 1,810 Views

@chzheng2023 Copying from the Red Hat labs to your local machine is not allowed. 

You can take screenshots and upload it here. Use the camera icon in the reply box here or you can also use "Drag and drop here or browse files to attach"  option at the bottom of the reply box. 

Chetan_Tiwary__0-1712154195195.png

 

chzheng2023
Mission Specialist
Mission Specialist
  • 1,750 Views

Thank you all! I was not able to upload the images here before but now I can.

0 Kudos
Join the discussion
You must log in to join this conversation.