# macOS

**URL:** https://community.unix.com/c/unix/macos-apple/36.md?page=4

[Latest](https://community.unix.com/latest.md) · [Categories](https://community.unix.com/categories.md)

**Page:** 5

---

## [Unsigned to signed, error?...](https://community.unix.com/t/unsigned-to-signed-error/343494)

<div class="topic-metadata">

**Author:** [@wisecracker](https://community.unix.com/u/wisecracker)\
**Replies:** 2\
**Last updated:** [June 9, 2014, 2:17am UTC](https://community.unix.com/t/unsigned-to-signed-error/343494 "2014-06-09T02:17:56Z")

</div>

Hi guys… Macbook Pro, 13", circa August 2012, OSX 10.7.5, default bash terminal. I require the capability to convert +32767 to -32768 into signed hex words… The example piece code below works perfectly except… #/bin/…

---

## [Mavericks log rotation](https://community.unix.com/t/mavericks-log-rotation/342763)

<div class="topic-metadata">

**Author:** [@jnojr](https://community.unix.com/u/jnojr)\
**Replies:** 0\
**Last updated:** [May 15, 2014, 12:05pm UTC](https://community.unix.com/t/mavericks-log-rotation/342763 "2014-05-15T12:05:54Z")

</div>

In Mavericks, Apple has apparently moved control of log rotation to ASL. There’s a ‘ttl’ value to determine how long log files will stick around for. I can compress them, change the way they’re named, limit them by siz…

---

## [Is there anything the shell can't do?](https://community.unix.com/t/is-there-anything-the-shell-cant-do/342301)

<div class="topic-metadata">

**Author:** [@wisecracker](https://community.unix.com/u/wisecracker)\
**Replies:** 7\
**Last updated:** [May 3, 2014, 3:43am UTC](https://community.unix.com/t/is-there-anything-the-shell-cant-do/342301 "2014-05-03T03:43:37Z")

</div>

The number 2014 thread got me thinking about obfuscation… This is a DEMO to use variables only to create a working program. Yes I know there will be raised eyebrows but this I have found highly interesting. This is no…

---

## [BuDop's mbp:~ budop$ changes to dhcp-v062-202:~ budop$...not quite why?](https://community.unix.com/t/budops-mbp-budop-changes-to-dhcp-v062-202-budop-not-quite-why/342253)

<div class="topic-metadata">

**Author:** [@BuDop](https://community.unix.com/u/BuDop)\
**Replies:** 12\
**Last updated:** [May 1, 2014, 12:26am UTC](https://community.unix.com/t/budops-mbp-budop-changes-to-dhcp-v062-202-budop-not-quite-why/342253 "2014-05-01T00:26:38Z")

</div>

the name on my terminal changed from BuDop’s MBP:~ budop$ to dhcp-v06:~ budop$ after I set up a local server using nodejs. This was was I did prior to the change: I installed a middleware framework for node npm inst…

---

## [Reset Password](https://community.unix.com/t/reset-password/342175)

<div class="topic-metadata">

**Author:** [@PhsycoDragon](https://community.unix.com/u/PhsycoDragon)\
**Replies:** 3\
**Last updated:** [April 28, 2014, 2:36am UTC](https://community.unix.com/t/reset-password/342175 "2014-04-28T02:36:10Z")

</div>

So my dad bought an iMac from my mom, but she does not know the admin password anymore. I read on the apple forums that I should look here for help on resetting the password. The iMac runs OSX 10.6.3. I would really appr…

---

## [Creating An Executable On The Fly...](https://community.unix.com/t/creating-an-executable-on-the-fly/341802)

<div class="topic-metadata">

**Author:** [@wisecracker](https://community.unix.com/u/wisecracker)\
**Replies:** 4\
**Last updated:** [April 20, 2014, 1:42pm UTC](https://community.unix.com/t/creating-an-executable-on-the-fly/341802 "2014-04-20T13:42:05Z")

</div>

Hi all… Had an idea tonight which could really enhance shell scripting for me. Yes I am aware there could be difficulties but… Creating a C script inside the shell script to do a task, (a simple text print to stdout i…

---

## [Man git -add](https://community.unix.com/t/man-git-add/341763)

<div class="topic-metadata">

**Author:** [@BuDop](https://community.unix.com/u/BuDop)\
**Replies:** 2\
**Last updated:** [April 14, 2014, 4:15pm UTC](https://community.unix.com/t/man-git-add/341763 "2014-04-14T16:15:38Z")

</div>

I meant to type in: man git-add //no space but I typed this in instead: man git -add // space between git and -add There were all these spewing out; not quite sure what I did. I am new to unix and the terminal. …

---

## [AC to DC trigger pulse for AudioScope.sh.](https://community.unix.com/t/ac-to-dc-trigger-pulse-for-audioscope-sh/340927)

<div class="topic-metadata">

**Author:** [@wisecracker](https://community.unix.com/u/wisecracker)\
**Replies:** 2\
**Last updated:** [April 14, 2014, 5:47am UTC](https://community.unix.com/t/ac-to-dc-trigger-pulse-for-audioscope-sh/340927 "2014-04-14T05:47:42Z")

</div>

Hi all… Has below ever been done in UNIX shell scripting before? (I have done this easily in Python but this is using purely the shell.) The DEMO version IS built and has been tested. Pre-amble… I now need at least …

---

## [Having trouble creating an alias for grep](https://community.unix.com/t/having-trouble-creating-an-alias-for-grep/340707)

<div class="topic-metadata">

**Author:** [@laredotornado](https://community.unix.com/u/laredotornado)\
**Replies:** 5\
**Last updated:** [March 17, 2014, 11:16am UTC](https://community.unix.com/t/having-trouble-creating-an-alias-for-grep/340707 "2014-03-17T11:16:33Z")

</div>

Hi, I’m using Mac 10.9.1. I would like to create an alias for grep so that it won’t print out messages like “grep: /Users/davea/workspace/myproject/subdir/: Is a directory” all the time. So in my terminal, I opened ~/…

---

## ["Locate" Shows Files but Not "LS" in Terminal](https://community.unix.com/t/locate-shows-files-but-not-ls-in-terminal/340330)

<div class="topic-metadata">

**Author:** [@Gary\_Mize](https://community.unix.com/u/Gary_Mize)\
**Replies:** 7\
**Last updated:** [March 3, 2014, 7:34pm UTC](https://community.unix.com/t/locate-shows-files-but-not-ls-in-terminal/340330 "2014-03-03T19:34:56Z")

</div>

OS-X 10.8.4 Using locate I get these results: 10:~ mize$ locate /Users/mize/\*.sh /Users/mize/Zend/workspaces/DefaultWorkspace/SLM/vendor/ZF2/bin/check-cs.sh /Users/mize/copy\_ascii\_upload.sh /Users/mize/copy\_ascii\_uploa…

---

## [A simple reminder script for beginners to shell scripting.](https://community.unix.com/t/a-simple-reminder-script-for-beginners-to-shell-scripting/340134)

<div class="topic-metadata">

**Author:** [@wisecracker](https://community.unix.com/u/wisecracker)\
**Replies:** 3\
**Last updated:** [February 25, 2014, 5:28pm UTC](https://community.unix.com/t/a-simple-reminder-script-for-beginners-to-shell-scripting/340134 "2014-02-25T17:28:13Z")

</div>

(Apologies for any typos.) Well hands up those who have been in the following situation(s):- Your partner, (in my case the missus), sees that you are messing with your machine and says something like, "can you keep an…

---

## [Folder location interrupted](https://community.unix.com/t/folder-location-interrupted/339121)

<div class="topic-metadata">

**Author:** [@sceltecs](https://community.unix.com/u/sceltecs)\
**Replies:** 9\
**Last updated:** [February 4, 2014, 7:20pm UTC](https://community.unix.com/t/folder-location-interrupted/339121 "2014-02-04T19:20:02Z")

</div>

Have had hidden/interrupted folder. It is on a NTFS-partition I use for OS and Bootcamp. I think that the problem is a HFS+ problem. I happened with all the folder which had a slash “/” in their folder name. So for e…

---

## [Query User](https://community.unix.com/t/query-user/338640)

<div class="topic-metadata">

**Author:** [@Brentc](https://community.unix.com/u/Brentc)\
**Replies:** 5\
**Last updated:** [January 14, 2014, 3:07pm UTC](https://community.unix.com/t/query-user/338640 "2014-01-14T15:07:50Z")

</div>

Hi, Is there a command I can use to query the user Via IP address on a Mac. I’d Like to be able to query an IP address and have it return the current user logged on. There are lots of Local commands like ‘last’ and ‘w…

---

## [CUPS file modified causing trouble](https://community.unix.com/t/cups-file-modified-causing-trouble/337606)

<div class="topic-metadata">

**Author:** [@Ladybird](https://community.unix.com/u/Ladybird)\
**Replies:** 2\
**Last updated:** [December 11, 2013, 5:07pm UTC](https://community.unix.com/t/cups-file-modified-causing-trouble/337606 "2013-12-11T17:07:23Z")

</div>

I have modified the CUPS file - (deleted the Pause Printer part ) and now I cannot access anything under localhost:631, or printer settings through System preferences. They just keep freezing and there is no way I can ge…

---

## [OSX and Kerberos](https://community.unix.com/t/osx-and-kerberos/337550)

<div class="topic-metadata">

**Author:** [@jnojr](https://community.unix.com/u/jnojr)\
**Replies:** 0\
**Last updated:** [December 9, 2013, 1:57pm UTC](https://community.unix.com/t/osx-and-kerberos/337550 "2013-12-09T13:57:53Z")

</div>

Our Network Security folks have mandated that we "Kerberize" our systems to allow them to perform an authenticated scan. This consists of instructions to change /etc/pam.d/sshd from: # sshd: auth account password sessi…

---

## [Mount my volume on remote machine](https://community.unix.com/t/mount-my-volume-on-remote-machine/336815)

<div class="topic-metadata">

**Author:** [@TheDrizzle](https://community.unix.com/u/TheDrizzle)\
**Replies:** 3\
**Last updated:** [December 4, 2013, 7:19pm UTC](https://community.unix.com/t/mount-my-volume-on-remote-machine/336815 "2013-12-04T19:19:34Z")

</div>

I have the need to Mount one of my volumes (All machines are mac) onto all of the machines in the lab from time to time. At the moment I’m using SSH to tunnel into each machine and then send a command to the remote machi…

---

## [No eol in swap file](https://community.unix.com/t/no-eol-in-swap-file/334848)

<div class="topic-metadata">

**Author:** [@gale](https://community.unix.com/u/gale)\
**Replies:** 2\
**Last updated:** [September 30, 2013, 8:09am UTC](https://community.unix.com/t/no-eol-in-swap-file/334848 "2013-09-30T08:09:05Z")

</div>

I was editing a file with vi and crashed so when I opened the file again I had the .swp file to deal with. I made the wrong choice trying to recover my file and wound up with a file with no eol (end of line) characters. …

---

## [How to enable ipfw.log?](https://community.unix.com/t/how-to-enable-ipfw-log/333698)

<div class="topic-metadata">

**Author:** [@jnojr](https://community.unix.com/u/jnojr)\
**Replies:** 3\
**Last updated:** [September 13, 2013, 3:24pm UTC](https://community.unix.com/t/how-to-enable-ipfw-log/333698 "2013-09-13T15:24:07Z")

</div>

Under Mountain Lion, I want logs from ipfw sent to ipfw.log instead of dumped in system.log I’ve tried to figure out how OSX handles logs, but… after going back and forth between a syslog.conf which does little if anyth…

---

## [Help with blobbing](https://community.unix.com/t/help-with-blobbing/333899)

<div class="topic-metadata">

**Author:** [@kailasgurung](https://community.unix.com/u/kailasgurung)\
**Replies:** 2\
**Last updated:** [September 8, 2013, 6:50am UTC](https://community.unix.com/t/help-with-blobbing/333899 "2013-09-08T06:50:56Z")

</div>

I am pretty new to scripting and i was wondering if anyone could help me out. Here is the situation. I am trying to make an action folder that when an image is saved to it, the image is automatically moved to a folder b…

---

## [Using a private key with SSH in terminal](https://community.unix.com/t/using-a-private-key-with-ssh-in-terminal/332339)

<div class="topic-metadata">

**Author:** [@kylebellamy](https://community.unix.com/u/kylebellamy)\
**Replies:** 4\
**Last updated:** [July 26, 2013, 3:22pm UTC](https://community.unix.com/t/using-a-private-key-with-ssh-in-terminal/332339 "2013-07-26T15:22:05Z")

</div>

Before you get the wrong idea, I am not looking for how to generate one. I have a key from a server admin but I can’t figure out how to use it in OS X. I have the key, the address and everything I should need but there …

---

## [Rsync for back up, external HD](https://community.unix.com/t/rsync-for-back-up-external-hd/330811)

<div class="topic-metadata">

**Author:** [@marek](https://community.unix.com/u/marek)\
**Replies:** 9\
**Last updated:** [July 8, 2013, 9:08am UTC](https://community.unix.com/t/rsync-for-back-up-external-hd/330811 "2013-07-08T09:08:27Z")

</div>

Hello all! I am quite unsure with all options of rsync. Here my backup configuration: I am on Mac X (10.8) and want an exact copy of my HD to an external HD. I formatted the new USB drive with Mac OS extended (Journaled…

---

## [Command Prompt changed to "mrbigglesworth" ?!?!](https://community.unix.com/t/command-prompt-changed-to-mrbigglesworth/331117)

<div class="topic-metadata">

**Author:** [@mmesford](https://community.unix.com/u/mmesford)\
**Replies:** 3\
**Last updated:** [June 27, 2013, 7:58pm UTC](https://community.unix.com/t/command-prompt-changed-to-mrbigglesworth/331117 "2013-06-27T19:58:44Z")

</div>

I recently installed mySQL on my macbook. I opened Terminal to run mySQL and entered “cd /usr/local/mysql/bin”. My command prompt immediately changed to “mrbigglesworth:”. I have no idea why that happened. When I loo…

---

## [Perl CGI](https://community.unix.com/t/perl-cgi/330628)

<div class="topic-metadata">

**Author:** [@djehresmann](https://community.unix.com/u/djehresmann)\
**Replies:** 3\
**Last updated:** [June 24, 2013, 1:05pm UTC](https://community.unix.com/t/perl-cgi/330628 "2013-06-24T13:05:55Z")

</div>

I am trying to get my MacBook Pro with 10.8 Mt Lion set up to run Perl CGI scripts. Having a problem. I can start Apache Web Server with no problems. Why do I put the static and dynamic scripts? I which directory? I…

---

## [Get IP address Command.](https://community.unix.com/t/get-ip-address-command/330575)

<div class="topic-metadata">

**Author:** [@KrazyKracker23](https://community.unix.com/u/KrazyKracker23)\
**Replies:** 1\
**Last updated:** [June 15, 2013, 12:31pm UTC](https://community.unix.com/t/get-ip-address-command/330575 "2013-06-15T12:31:07Z")

</div>

i need to pull ip address out after this command ifconfig | grep jnc0 -1 output: BOBVILLAMAC:~ bvilla$ ifconfig | grep jnc0 -1 inet 10.16.91.1 netmask 0xffffff00 broadcast 10.16.91.255 does anyone know how to do t…

---

## [4 Pole Audio I/O Connections For Macbook Pro...](https://community.unix.com/t/4-pole-audio-i-o-connections-for-macbook-pro/328841)

<div class="topic-metadata">

**Author:** [@wisecracker](https://community.unix.com/u/wisecracker)\
**Replies:** 0\
**Last updated:** [May 19, 2013, 2:47pm UTC](https://community.unix.com/t/4-pole-audio-i-o-connections-for-macbook-pro/328841 "2013-05-19T14:47:08Z")

</div>

Disclaimer:- You take this information and use it ENTIRELY at your own risk. I and this site hold no responsibility for any errors either in this text or with your electronics capabilities… The reason I have given thi…

---

## [Remove leading spaces from file names and folders](https://community.unix.com/t/remove-leading-spaces-from-file-names-and-folders/327907)

<div class="topic-metadata">

**Author:** [@prometheon123](https://community.unix.com/u/prometheon123)\
**Replies:** 1\
**Last updated:** [May 2, 2013, 2:21pm UTC](https://community.unix.com/t/remove-leading-spaces-from-file-names-and-folders/327907 "2013-05-02T14:21:19Z")

</div>

Hi All, I have a vexing issue with leading spaces in file names. Basically, we're moving tons of data from our ancient afp file share to Box.com and Box forbids leading spaces in files or folders. The HFS file system …

---

## [Debug help](https://community.unix.com/t/debug-help/326356)

<div class="topic-metadata">

**Author:** [@Scourge](https://community.unix.com/u/Scourge)\
**Replies:** 1\
**Last updated:** [March 28, 2013, 4:28pm UTC](https://community.unix.com/t/debug-help/326356 "2013-03-28T16:28:18Z")

</div>

Hello, I was looking at kernel log’s and found some parts what was “interesting” I previously started looking what has been going on in my computer because I had hacker attacks on my machine. Installed Avira & Little S…

---

## [Two mounting points merge into a Virtual HD](https://community.unix.com/t/two-mounting-points-merge-into-a-virtual-hd/325731)

<div class="topic-metadata">

**Author:** [@VicoAndres](https://community.unix.com/u/VicoAndres)\
**Replies:** 4\
**Last updated:** [March 27, 2013, 3:03pm UTC](https://community.unix.com/t/two-mounting-points-merge-into-a-virtual-hd/325731 "2013-03-27T15:03:26Z")

</div>

Hello Guys, Im just wondering if you could help me , any hint is welcome, in perfom the following: I have two drives physically in which they mount it instantely with no problem to Finder, my question is if is possible…

---

## [Using variable in sed](https://community.unix.com/t/using-variable-in-sed/324626)

<div class="topic-metadata">

**Author:** [@mattiasvdm](https://community.unix.com/u/mattiasvdm)\
**Replies:** 13\
**Last updated:** [March 6, 2013, 3:41am UTC](https://community.unix.com/t/using-variable-in-sed/324626 "2013-03-06T03:41:10Z")

</div>

Hi all, Somescript.sh looks like this: #!/bin/sh # somecript.sh somecommand1 somecommand2 #End exit Now I want to add somecommand3 to somescript.sh above #End I now how to do this: sed -ie '/#End/i\\ somecomm…

---

## [Lsof output](https://community.unix.com/t/lsof-output/325056)

<div class="topic-metadata">

**Author:** [@sakurashinken](https://community.unix.com/u/sakurashinken)\
**Replies:** 1\
**Last updated:** [March 1, 2013, 8:19pm UTC](https://community.unix.com/t/lsof-output/325056 "2013-03-01T20:19:26Z")

</div>

This is abridged lsof output from my safari process: Safari 13063 owner 9u unix 0x982ef3b9c1be1293 0t0 -\>0x982ef3b9b7534eab Safari 13063 owner 10u unix 0x982ef3b9c1be0933 0t0 -\>0…

[Previous page](https://community.unix.com/c/unix/macos-apple/36.md?page=3)

[Next page](https://community.unix.com/c/unix/macos-apple/36.md?page=5)
