Unfortunately the information sent through UART from Linux side to Arduino side can’t be catch in order to manipulate it later. It will be printed in the Serial Monitor but it cannot be stored in a variable or similar. The only way to pass information from Linux side to Arduino side is through a text file, this way you will be able to load the information from the text file and store it in a variable as strings. I recommend you to check the following guide about data sharing between environments: Data sharing between programming environments on Intel® Edison | Intel® Developer Zone. I hope you find it useful.