Hi, this is such a simple question (I think), but I don't know the answer, obviously. If I'm using the terminal, and I'm remotely logged on to another computer, and I'm in my directory on that computer, what command would I use to...open a file? For example, a .exe file, or a .txt file...all I want to do is open the file.
Hi
assuming you want to 'open' it to look at it - I guess you would use the commands/utilities available on the remote computer. So, if its a text file - any text editor would do (eg vi, emacs, joe) - if its a binary file you could use a HEX editor to look at the code - alternatively a debugger . It all depends on exactly what you want to do and what O/S your running also.
If you want to open it as in execute - usually the file is prefixed ./ so to run the file foo you would need to type ./foo (the file foo also needs to be executable)
Well, cat filename works to present a file's contents to me in the terminal. What I really want is to be able to open a .exe file (I.e. to run a program) from the terminal. For example, on a PC, I would doubleclick on something like "microsoftword.exe", and Microsoft Word would open. If I have "microsoftword.exe" on a UNIX computer, and I want to open Microsoft Word from the terminal, how would I do that?
Sorry for double-post, but I just thought of something. I might actually have the wrong version of the program I want on my computer. How would I determine what type of UNIX or Solaris or whatever it's called that I am running?