I logged into the HPC using ssh -Y
and want to have a quick look on the csv, png and pdf files before deciding which ones to download. What is the best way to open them? I have tried display
for pdf files. It opened with X11 and imagemagick but it is very slow and the image is distorted.
display file.pdf
For csv, I know I could use column -t -s , file.csv
. But is there a way to open csv in HPC using excel without downloading?
Basically, is there an efficient way to view files on the cluster especially for images? and files with many columns and long contents.
Thanks!
You normally log in to the cluster via a text terminal. You will need X-Windows to project the graphical output from your server back to your local computer. I assume you are using MobaXterm (for PC) or XQuartz (macOS), if the X11 window opened on your local desktop. If you have a relatively slow internet connection then this would work about as best as you describe above.
Thanks @genomax. Yes I am using XQuartz. Then, what do you normally do to have a quick look? Do you always download the files?
I don't think it will work for PDFs, but I used to use
imgcat
quite a bit for visualising images at the commandline. It's non standard though.https://github.com/eddieantonio/imgcat