Opening a Unix File with Mac OS X


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Opening a Unix File with Mac OS X
# 8  
Old 03-28-2012
There's a nice little OS X program called Go2Shell which adds an icon to your Finder toolbar. Whenever you click it, it opens a terminal in whatever folder Finder is looking at.

As you are new to Unix (and presumably OS X), I thought that might be useful Smilie (saves you manually navigating if you want to run "file" on the, err, file)
This User Gave Thanks to Scott For This Post:
# 9  
Old 03-28-2012
Thanks, Scott. I'll check the Go2Shell. And yes, I am very new to this so thank you also for your patience.
# 10  
Old 07-18-2012
Quote:
Originally Posted by Corona688
As already stated, you can't run programs from another UNIX on OSX.

If it's not supposed to be a program, do what Scott has already suggested for more information on what it actually is.
OS X will run any standard UNIX program, at the command-line, or in the X Windowing environment. "UNIX Executable file" means that OS X does not know in particular what kind of file it is looking at, but if it is a binary file it can be executed. If it is a text file, it can be opened with vi or nano, or any GUI text editor, such as TextEdit, or TextWrangler.
# 11  
Old 07-18-2012
Quote:
Originally Posted by danielsutton
OS X will run any standard UNIX program, at the command-line, or in the X Windowing environment.
I think you've bought into the hyperbole a little too much.

Hypothetically speaking, any POSIX-compliant program can be ported to OSX. It has POSIX features available, and also things like X11. That doesn't mean you can just blindly copy a binary executable over from a Z9 machine and expect it to work. You have to compile it for OSX -- build it from scratch -- because there's no such thing as a "UNIX machine". UNIX is a paper standard, OSX and Solaris and BSD and AIX and others are actual operating systems built to this standard, and their executables and architectures aren't really interchangable.

Shell scripts may work between these systems with relatively minor changes.
# 12  
Old 07-18-2012
UNIX programs

Correction -- Yes, OS X is source compatible, but not binary compatible, with other systems that are designed to the Single UNIX Specification. So, as long as you have access to the source for a given UNIX program, and it is not tailored to a specific variant, the program should compile on OS X.

---------- Post updated at 10:33 PM ---------- Previous update was at 07:16 PM ----------

Quote:
Originally Posted by michellemc
Hi. I'm new to Unix and recently received Unix files via email. I downloaded those files but am unable to open them on my computer which uses Mac OS X. How do I open the files?
Pardon me for the late help. But if you know that the files that you received by e-mail are text documents, then you can open them with any of the GUI tools that are available on OS X, such as TextEdit or TextWrangler.

If the files are UNIX programs (executable files), then you can put them into /usr/local/bin, or one of the folders that store UNIX binaries, so that you can type the file name into Terminal and have it run automatically. So, the first thing to do is to find out what kind of files you received, and then you will be able to find out what to do with them.

I replied earlier, but I think my message got trashed! OS X is a compliant UNIX system, and can run any standard UNIX programs. However, binaries are very specific to the kind of hardware/operating system that you are running. To get UNIX software to run properly on OS X, you need to download the source code for the program, and compile/build it on your system, so that the proper binary files can be created. You compile UNIX source code with XCode, it is a free development tool that you can download from the Mac App Store. Open the App Store on your computer, and type "XCode" in the Search box. You will see a blue icon with a hammer, click on that icon and you will be able tr download XCode. It is a fairly large application, so it may take some time to download.

I hope this helps!

--Daniel
This User Gave Thanks to danielsutton For This Post:
 
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Problem in opening UNIX file in Windows

Hi , I am having file in unix with size (386796649) , below is the output of ls command in UNIX. I have ftp'ed the file to my windows machine . When i tried to open the file it is not opening . Why it is so . Is there is size limit. -rw-rw-rw- 1 p10 pQQ 98473 Sep 17 17:20... (4 Replies)
Discussion started by: arunkumar_mca
4 Replies

2. Linux

Opening a TXT file in LINUX / UNIX

Hey Friends, When I open (More <filename>) a big txt file in UNIX /LINUX it asks me to press any key to see remaining file. Can I see it in a stretch? I mean I jst want to let the contains of file scroll up completely. Is there any way out? Plz help. Thanx in advance Anushree. (2 Replies)
Discussion started by: anushree.a
2 Replies

3. UNIX for Dummies Questions & Answers

Urgent help needed to delete some text without opening the file in unix

Hi To delete some text in 2 files in line1 ( not complete line) in unix without opening the files. For example: source file is like this <?xml version="1.0"... (5 Replies)
Discussion started by: pyaranoid
5 Replies

4. UNIX for Dummies Questions & Answers

Opening a Unix File in Windows.

Hi folks, I have a file in unix box as abc.xls and i have a file in windows box as abc_win.xls. Now if i open the file abc_win.xls which is in windows, i have to get the datas of the file abc.xls which is in unix. Everytime i opens the abc_win.xls file, the updated datas of file abc.xls... (6 Replies)
Discussion started by: a439511
6 Replies

5. Filesystems, Disks and Memory

unix executable file problem on MAC OSX ??? please help

I've got this problem. My computers and external hard drives are converting many of my files to a Unix Executable File which has a grey terminal looking icon. I don't understand what is causing this to happen. It is happening to a large number of my image file of different formats and also... (1 Reply)
Discussion started by: chadb
1 Replies

6. OS X (Apple)

How do I choose the application when opening a file in UNIX?

If I have a file in OSX (e.g. a pdf), I can choose how to open it i.e. with the "open with..." command from the 'right click menu'. Sometimes a pdf is garbled in OSX Preview so I need to open it in Adobe Acrobat. How do I choose the application when opening a file in UNIX? (2 Replies)
Discussion started by: Mpeter
2 Replies

7. UNIX for Advanced & Expert Users

Opening an Excel File in Unix

Hi all, I want to open an Excel file in Unix(ABC.xls) and copy one column of the file onto another text file (xyz.txt) .Please let me know if there is a way of going about to perform this operation. Thanks in Advance, bubeshj (5 Replies)
Discussion started by: bubeshj
5 Replies

8. Programming

File Opening in C++ in Unix Env

Pls someone help me. This piece of code is giving me weird results. ofstream outfile; ofstream out; char filename1; char filename2; memset(filename1,'\0',sizeof(filename1)); memset(filename2,'\0',sizeof(filename2)); strcpy(filename1,"Testing1.out");... (0 Replies)
Discussion started by: skannan
0 Replies
Login or Register to Ask a Question