Unix/Linux Go Back    


Open Source Open source oftware (OSS) is computer software with source code available with a license. The OSS copyright holder provides anyone the rights to read, modify, and distribute the software for any purpose.

The Terminal on Mac OS X

Open Source


Tags
#cmdterminalcommands, terminal

Closed    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 02-24-2015   -   Original Discussion by 1negroup
1negroup's Unix or Linux Image
1negroup 1negroup is offline
Registered User
 
Join Date: Feb 2015
Last Activity: 29 October 2017, 2:49 PM EDT
Posts: 9
Thanks: 4
Thanked 0 Times in 0 Posts
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?
Sponsored Links
    #2  
Old Unix and Linux 02-25-2015   -   Original Discussion by 1negroup
wisecracker's Unix or Linux Image
wisecracker wisecracker is offline
Registered User
 
Join Date: Jan 2013
Last Activity: 19 May 2018, 3:23 PM EDT
Location: Loughborough
Posts: 1,261
Thanks: 377
Thanked 338 Times in 265 Posts
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...
Sponsored Links
    #3  
Old Unix and Linux 02-25-2015   -   Original Discussion by 1negroup
1negroup's Unix or Linux Image
1negroup 1negroup is offline
Registered User
 
Join Date: Feb 2015
Last Activity: 29 October 2017, 2:49 PM EDT
Posts: 9
Thanks: 4
Thanked 0 Times in 0 Posts
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
Attached Files
File Type: pdf Rosetta Stone for Unix.pdf (244.0 KB, 33 views)
    #4  
Old Unix and Linux 03-03-2015   -   Original Discussion by 1negroup
[MA]Flying_Meat's Unix or Linux Image
[MA]Flying_Meat [MA]Flying_Meat is offline
Registered User
 
Join Date: Sep 2002
Last Activity: 6 October 2017, 6:27 PM EDT
Location: San Fran
Posts: 191
Thanks: 1
Thanked 22 Times in 21 Posts
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. Linux
The Following User Says Thank You to [MA]Flying_Meat For This Useful Post:
1negroup (03-21-2015)
Sponsored Links
    #5  
Old Unix and Linux 03-28-2015   -   Original Discussion by 1negroup
1negroup's Unix or Linux Image
1negroup 1negroup is offline
Registered User
 
Join Date: Feb 2015
Last Activity: 29 October 2017, 2:49 PM EDT
Posts: 9
Thanks: 4
Thanked 0 Times in 0 Posts
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$

Sponsored Links
    #6  
Old Unix and Linux 03-28-2015   -   Original Discussion by 1negroup
cjcox's Unix or Linux Image
cjcox cjcox is offline
Registered User
 
Join Date: May 2005
Last Activity: 27 June 2016, 2:12 PM EDT
Posts: 614
Thanks: 4
Thanked 110 Times in 107 Posts
Quote:
Originally Posted by 1negroup View Post
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).
Sponsored Links
    #7  
Old Unix and Linux 03-28-2015   -   Original Discussion by 1negroup
sea's Unix or Linux Image
sea sea is offline
Registered User
 
Join Date: Sep 2013
Last Activity: 14 October 2016, 2:49 PM EDT
Location: Swissh
Posts: 1,286
Thanks: 256
Thanked 226 Times in 209 Posts
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
Sponsored Links
Closed

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
close a mac terminal cokedude UNIX for Advanced & Expert Users 1 12-21-2011 07:56 AM
How to create new users on my mac from the terminal bigmac18 UNIX for Dummies Questions & Answers 1 02-26-2009 04:33 AM
New to Mac OS X Terminal xsemperidem5 OS X (Apple) 2 12-10-2008 06:43 AM
Running Terminal and/or X-Windows in Mac OS X liquidcross UNIX for Dummies Questions & Answers 2 07-24-2002 10:59 AM
Mac OS X/UNIX/Terminal Question onkel UNIX for Dummies Questions & Answers 4 03-05-2002 02:38 AM



All times are GMT -4. The time now is 11:51 AM.