Visit Our UNIX and Linux User Community


The Terminal on Mac OS X


 
Thread Tools Search this Thread
Top Forums Programming Open Source The Terminal on Mac OS X
# 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:
# 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

Previous Thread | Next Thread
Test Your Knowledge in Computers #603
Difficulty: Medium
MySQL 8.0 does not maintain information about password history so you cannot enabling restrictions on reuse of previous passwords.
True or False?

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Trying to log in to school server using terminal on mac.

Hi everyone I am a complete beginner and already confused. the instructor has step by step directions for students on PC to download putty and do it that way. He neglects mac unfortunately. I attached the documents that instructs students how to do it. maybe you could read it and guide me? Iv done... (3 Replies)
Discussion started by: Beavs410
3 Replies

2. OS X (Apple)

The Terminal on Mac: Coding

So found this C code online and need to compile it in Terminal on Mac. Here is the code: #include <stdio.h> #include <math.h> int option; char q; int number; int currentsum; int value; void calc() { printf("\t\t\t\t\tBegin\n"); // says begin in top middle of screen ... (3 Replies)
Discussion started by: 1negroup
3 Replies

3. UNIX for Advanced & Expert Users

close a mac terminal

Is there a trick to closing a mac terminal with a command? I would think you could just type exit into your terminal but that doesn't work. I also tried quit and close just for the hell of it and that didn't work either. Does anyone know what the command is? (1 Reply)
Discussion started by: cokedude
1 Replies

4. Shell Programming and Scripting

How to checkout from SVN using Terminal in Mac OS X?

Hi, I am new for SVN. Earlier I have been using CVS. When I checkout the code from SVN using Eclipse, the size of the source code checked out is 612MB. But when I try to checkout from terminal, from my 5.8 branch , the checked out source code's size is only 312.1 MB. Can anyone tell me... (0 Replies)
Discussion started by: Afreen
0 Replies

5. UNIX for Dummies Questions & Answers

How to create new users on my mac from the terminal

I finally got how to su - in my mac from the terminal. Now I would like to be able to add new users. useradd -m -d ..... doesn't seem to work. (1 Reply)
Discussion started by: bigmac18
1 Replies

6. OS X (Apple)

New to Mac OS X Terminal

Hi everyone. I'm new to using the Terminal and was just wondering if anyone had a link to perhaps a list of commands. And tips on some useful websites to visit or books to read. Oh and is there a way to delete just part of the Terminal's history? If so what is the command? Thanks :) (2 Replies)
Discussion started by: xsemperidem5
2 Replies

7. UNIX for Dummies Questions & Answers

Problems installing a program through Terminal in Mac OS X

Hey all.. I have a problem with the BitTorrent client called Deluge. (Deluge BitTorrent Client). Followed the guide on their homepage, but can't get it to work. First of all I have installed Xcode Tools 3.0 and MacPorts. I did the "sudo port install deluge" command, and all packages seemed to... (1 Reply)
Discussion started by: Sixmax
1 Replies

8. UNIX for Dummies Questions & Answers

Send email from unix terminal on Mac OS 10.x

Hello, I want to send email from unix terminal on Mac OS 10.x. I have 2 user accounts on the system - userOne and root. I tried sending an email from userOne to root by entering "mail root". It prompts to enter Subject and the content. It doesn't give any error message, but root doesn't get... (0 Replies)
Discussion started by: hypamw
0 Replies

9. UNIX for Dummies Questions & Answers

Running Terminal and/or X-Windows in Mac OS X

Quick question: When I load up Terminal or X-Windows on my Mac, and the prompt comes up...what folder am I starting in? (2 Replies)
Discussion started by: liquidcross
2 Replies

10. UNIX for Dummies Questions & Answers

Mac OS X/UNIX/Terminal Question

Hey everyone I'm new to UNIX due to the new Mac OS X operating system and would like some help. I'm trying to send an email via the UNIX-Shell-Terminal i Mac OS X, (it's called darwin) How do I do that? When I enter the Command mail I can send messages to root and with the command -forward... (4 Replies)
Discussion started by: onkel
4 Replies

Featured Tech Videos