The Terminal on Mac OS X


Login or Register to Reply

 
Thread Tools Search this Thread
# 1  
Old 02-24-2015
The Terminal on Mac OS X

Does anyone know the differences in commands when it come to Linux and Mac OS X? I'm wanting to know if I use "this" command in Linux and It doesn't work in Mac then what command is equivalent to the one in Linux. Example Ctrl+Alt+f2 switches to (tty2) so what equivalent switches to ttys2 on Mac?
# 2  
Old 02-25-2015
There is no equivalent. End of story...

OSX is not Linux.

If you require another terminal then use cmd n and open up another one, only if a terminal is already running and has the focus.

Unix commands are broadly similar but there are subtleties that will work on one system but not the other.

Hope this helps...
# 3  
Old 02-26-2015
So I know that OS X is based off UNIX(BSD)

What I'm looking for is something like this. (Look at attachment)

I understand that some Linux commands won't work but there are Equal commands, they may not be the same commands but the commands do the same thing
# 4  
Old 03-03-2015
I think you will not find a translator like what you're looking for.
This might help you understand why (expounding on wisecracker's post above):
what's the difference between linux and unix commands? - Stack Overflow
Some judicious use of "man -k" or "apropos" can help you locate the functionality in commands you might want to utilize, should a command found in Linux not be available in another Unix OS.
Of course, if you have the time, you could create the translator you are looking for. Smilie
This User Gave Thanks to [MA]Flying_Meat For This Post:
1negroup (03-21-2015)
# 5  
Old 03-28-2015
Configure, Make, and Make Install

I need some Help with this, I'm trying to install Recordmydesktop via tar. Im not sure whats going on but I'm having trouble executing the command make and make install. This is what i have gotten

Code:
ONEs-MacBook-Air:recordmydesktop-0.3.8.1 1negroup$ sudo make
make: *** No targets specified and no makefile found.  Stop.
ONEs-MacBook-Air:recordmydesktop-0.3.8.1 1negroup$ sudo make install
make: Nothing to be done for `install'.
ONEs-MacBook-Air:recordmydesktop-0.3.8.1 1negroup$ sudo makefile
Password:
sudo: makefile: command not found
ONEs-MacBook-Air:recordmydesktop-0.3.8.1 1negroup$

Here is everything else. Just to let you know I executed ./configure first

ONEs-MacBook-Air:recordmydesktop-0.3.8.1 1negroup$ sudo ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether gcc and cc understand -c and -o together... yes
checking build system type... i386-apple-darwin13.3.0
checking host system type... i386-apple-darwin13.3.0
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking whether byte ordering is bigendian... no
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for ANSI C header files... (cached) yes
checking for X... no
checking alsa/asoundlib.h usability... no
checking alsa/asoundlib.h presence... no
checking for alsa/asoundlib.h... no
checking endian.h usability... no
checking endian.h presence... no
checking for endian.h... no
checking machine/endian.h usability... yes
checking machine/endian.h presence... yes
checking for machine/endian.h... yes
checking sys/soundcard.h usability... no
checking sys/soundcard.h presence... no
checking for sys/soundcard.h... no
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking vorbis/vorbisfile.h usability... no
checking vorbis/vorbisfile.h presence... no
checking for vorbis/vorbisfile.h... no
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for u_int16_t... yes
checking for u_int32_t... yes
checking for u_int64_t... yes
checking for isnan in -lm... yes
checking for deflate in -lz... yes
checking for IceOpenConnection in -lICE... no
configure: error: Can't find libICE
ONEs-MacBook-Air:recordmydesktop-0.3.8.1 1negroup$

# 6  
Old 03-28-2015
Quote:
Originally Posted by 1negroup
So I know that OS X is based off UNIX(BSD)
Uh.. yes and no. The programs and utilities are BSD-ish...so somebody comfortable with a BSD variant will have no problem. However it is *not* BSD... if for no other reason than it uses a Mach based kernel.

So...is it BSD +... no. It's close to that though.

It feels like BSD mostly, but with some differences and has some GNU-isms here and there. And of course a lot of very unique Apple-only things (some of which do *not* work that well).
# 7  
Old 03-28-2015
Try using:

Code:
./configure PREFIX=/usr

Replace /usr with the apropriate path for/on MaxOS.
Then make [install] should work fine.

No promises made,
hth
Login or Register to Reply

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
Trying to log in to school server using terminal on mac. Beavs410 UNIX for Beginners Questions & Answers 3 01-27-2016 07:32 PM
The Terminal on Mac: Coding 1negroup OS X (Apple) 3 03-21-2015 02:27 PM
close a mac terminal cokedude UNIX for Advanced & Expert Users 1 12-21-2011 08:56 AM
Where do I find my mac that is connected via Firewire in Terminal application? Straitsfan OS X (Apple) 4 12-13-2010 02:17 AM
Need Mac .sh to run command line app in seperate terminal yoyoyo777 Shell Programming and Scripting 0 11-29-2010 10:42 AM
How to checkout from SVN using Terminal in Mac OS X? Afreen Shell Programming and Scripting 0 06-25-2010 06:40 AM
What settings are required for login to CVS using Terminal in Mac OS X? Afreen OS X (Apple) 1 05-18-2010 12:19 AM
What settings are required for login to CVS using Terminal in Mac OS X? Afreen Shell Programming and Scripting 3 05-17-2010 05:51 AM
How to create new users on my mac from the terminal bigmac18 UNIX for Dummies Questions & Answers 1 02-26-2009 05:33 AM
New to Mac OS X Terminal xsemperidem5 OS X (Apple) 2 12-10-2008 07:43 AM
How can I list all users from a terminal window in MAC? Juan Dent UNIX for Dummies Questions & Answers 1 08-23-2008 03:50 PM
Problems installing a program through Terminal in Mac OS X Sixmax UNIX for Dummies Questions & Answers 1 05-12-2008 12:52 PM
Send email from unix terminal on Mac OS 10.x hypamw UNIX for Dummies Questions & Answers 0 05-04-2005 12:26 AM
Running Terminal and/or X-Windows in Mac OS X liquidcross UNIX for Dummies Questions & Answers 2 07-24-2002 11:59 AM
Mac OS X/UNIX/Terminal Question onkel UNIX for Dummies Questions & Answers 4 03-05-2002 03:38 AM