Questions about the command line and other Unix-like aspects of Mac OS X, including the Mach/BSD-based kernel and FreeBSD-based userland. You may want to consider using Ask Different instead.

learn more… | top users | synonyms (1)

7
votes
4answers
747 views

Why can't I pipe `pwd` to `open` on macOS?

This is macOS specific, but seems too unixy to go in the Ask Different community. In Terminal, I can pwd, copy the result, and type open and paste the result and the folder will open in the Finder, ...
2
votes
2answers
86 views

Failure to update Homebrew

So I'm trying to update my home brew version but I get an error. Here is a copy pasted part from the console: $ brew update error: Your local changes to the following files would be overwritten by ...
3
votes
1answer
3k views

Sound volume control does not work in Ubuntu

My sound volume control does not work when I'm logged in with my regular user, though the sound works correctly. What's weirder is that the sound control works when I'm logged in as guest. With my ...
2
votes
3answers
29 views

Ensure less clears screen

Is there a way to ensure less clears screen on exit? The opposite of less -X. The screen is not being cleared when I exit a man page in iTerm2, however the screen is cleared when using the default ...
36
votes
4answers
49k views

How to persist ulimit settings in OSX Mavericks?

Before Mavericks, one could use /etc/launchd.conf to persist ulimit settings, for example: limit maxfiles 16384 unlimited limit maxproc 16384 unlimited It no longer works in Mavericks. What is the ...
0
votes
1answer
36 views

How to grep and treat meta character as normal character?

I am trying to recursively find some pattern which contains meta character. Pattern that I searching for is template <int N> I have tried : grep -F -lir "template <int N>" * # ...
4
votes
5answers
65 views

terminal command | grep IP

ifconfig -a | grep 10.16 inet 10.16.x.xx netmask 0xffffff00 broadcast 10.16.x.xxx inet 10.16.x.xx netmask 0xffffff80 broadcast 10.16.x.xxx I have replaced the numbers with x My aim is to ...
0
votes
1answer
38 views

How to deal with high number of page faults?

I've got ~200000 page faults per second and I think it's a huge number and it affects the overall system performance. I'm using MBP with 16G of RAM. How to deal with such number of page faults (...
2
votes
2answers
11k views

How to force drop all partitions and erase disk from terminal?

My question is in fact related to OS X, however I'm using Linux tools to resolve my problem. I'm trying to delete all the partitions on my SSD drive and create new GUID (HFS+) partition table. Native ...
0
votes
1answer
33 views

OS X Directory Services

I have been reading from Advanced Programming in the UNIX environment (Stevenson and Rago), and I am currently reading about how user data is stored on various systems, including Linux, FreeBSD, and ...
0
votes
1answer
304 views

Permanently start the OpenBSD pf Firewall on OS X

I use Mac OS X El Capitan 10.11.3 at the desktop OS. As everyone knows, is Apple's Mac OS X built on FreeBSD! I use normal only Debian/GNU/Linux on desktop and OpenBSD on Server and Firewall: So my ...
6
votes
0answers
931 views

How to use terminal to access iCloud Drive when Finder is not running

I would like to access iCloud drive from Terminal in order to create an emergency backup. Unfortunately, my installation of Mac OS Yosemite is not operational, so I am using recovery mode to create my ...
1
vote
0answers
20 views

openldap Fedora 22 - apple.schema and now for the mount section

Hej there! how do i make the correct ldif file for mounts ? i found this old webpage but i get errors trying to create it i'm useing mac OS X as openldap client and it' not mounting the /home at all ...
7
votes
1answer
158 views

Why does OS X `install` errors on redirected input when the same version of `install` on linux works fine?

I would like to use install command in order to create a new executable file with pre-populated content (e.g. with single pwd command in it). So I've extended this example which creates a new empty ...
0
votes
4answers
25 views

How come dd only outputs when I press Ctl+t? [duplicate]

This is with OSX. When I run this in a terminal scottcarlson$ sudo dd if=Downloads/CentOS-7-x86_64-Everything-1511.iso of=/dev/disk2 2> Desktop/out.txt and then this in another tail -f Desktop/...
1
vote
1answer
256 views

OfflineIMAP tells me SQLite isn't installed, even though it is

Whenever I run OfflineIMAP v6.5.3.1 I get an error for every folder (i.e. tag and folder in Gmail) which tells me there was a problem and then right after it tells me: SQLite backend chosen, but no ...
1
vote
2answers
38 views

How can I run Linux in a VM on a Retina MacBook Pro in Hi-DPI mode?

I use a Retina MacBook Pro. I run Linux in virtual machines for development work. I occasionally use the Linux GUI directly in the virtual machine, but most of the time I ssh (with the -Y parameter) ...
0
votes
1answer
15 views

MacOS X: Missing File & Data Dictionary

After I cancelled syncronization between my Mac and MEGA, my local target dictionary became empty. However, after I used du to acquire the disk status, I found my data are moved to ./.debris/2016-07-...
0
votes
1answer
13 views

How to install mcu8051ide on Mac OSX?

I tried to install mcu8051ide on Mac OSX, but I faced to some problem of package dependency. Please see the error message below. $ mcu8051ide --check-libraries MCU 8051 IDE v1.4.10 Checking ...
1
vote
1answer
828 views

Create bootable hfs+ partition for macbook

I've installed Debian testing on a Macbook Pro (mid 2014) without keeping OS X on the internal SSD. I've used the following GPT partition layout: HFS+ EFI on /boot/efi BTRFS on / SWAP on swap I've ...
1
vote
0answers
10 views

Why total swaps and page faults/reclaims is empty in ps?

I'm running the following command: sudo ps -axo nswap,majflt,minflt,command | sort -nr | head which suppose to print total swaps in/out, total page faults and reclaims. But for given >400 ...
0
votes
1answer
129 views

Can I remove “Linux/Ebury Operation Windigo” without wiping the entire drive?

I used chkrootkit, which told me that I had "Linux/Ebury Operation Windigo" installed, I doubled checked by running ssh -G which printed out usage, without "illegal option". I removed all ssh files ...
0
votes
0answers
16 views

Change location of executable [duplicate]

I wanted to install x264 cli encoder on OS X. I copied the downloaded binary to /usr/bin/, changed permissions and voila - it worked. Then I decided to be a smartass. So I deleted the file and ...
1
vote
1answer
865 views

“dyld: Library not loaded: /usr/local/lib/libcurl.4.dylib” while executing curl with a unprivileged user

My MAC OS is Yosemite 10.10, which has an old version of curl. I have installed Xcode and Xcode command line tools. I run cURL with the "sudo" command as “sudo curl”: sudo curl Password: ...
1
vote
2answers
48 views

Unable to delete files through Terminal

More recently, I have been using rm -r /path/to/file to delete files, but when deleting from certain locations, I get the error: override rw-r--r-- root/admin for filename? I have tried entering y, ...
3
votes
1answer
2k views

Connect to Webdav (https) with domain\user

I have a problem trying to connect with our network webdav share on mac osx. I can connect from windows, so it's working. On Mac OSX I have set the routes, and I can connect when using "Transmit" but ...
5
votes
1answer
479 views

DTrace to trap any chmod applied to certain files

Underneath the Mac OS X directory /audit I have certain files which users can access and chmod to their liking. I need to audit any chmod done on any files by recording the time, user and file being ...
5
votes
1answer
1k views

A real non-“better touch tools” solution for select-to-copy on Mac OS X

I recently moved to Mac. I am missing my X11 copy-paste style. I can't find a way to exactly emulate X11 behavior "select-to-copy", "middle-click-to-paste" globally on Mac OS X. I am aware that this ...
1
vote
1answer
179 views

Getting g++ to work on Mac with Xcode

In trying to get g++ to work in terminal I ran a command which I have now learned is outdated. I think this is why running g++ in terminal returns an error but I am unsure. If I try to run any .cpp ...
4
votes
2answers
113 views

Tmux and dim-ed colours in Terminal.app on MacOS

The problem On my Mac (10.11) Tmux does not show dim-ed colours properly, and this causes annoyance. In the following picture, the commit author's name is supposed to be represented in dim white. ...
29
votes
4answers
10k views

Fix or alternative for mktemp in OS X

I'm looking at a bash script someone else wrote that uses mktemp: TEMP=`mktemp --directory` However, this line does not work on my machine (OS X 10.6). How would I fix this line so that it is ...
3
votes
2answers
1k views

Vim script check running platform

" Get running OS let os = "" if has("win32") let os="win" else if has("unix") let s:uname = system("uname") if s:uname == "Darwin" let os="mac" else let os="unix" endif ...
3
votes
1answer
196 views

tmux causing bold fonts in vim

I have installed tmux with vim, using the solarized colorscheme and airline plugin. All is good until I start tmux, where all the font turns bold and the airline status bar is looking weird. I have ...
1
vote
1answer
2k views

How can I get my Mountain Lion Mac to have Apache serve up content on port 80?

There might be more than one problem here, but I got my Mac back from the shop after the hard drive was failing, and the new hard drive reproduced my home directory but not httpd.conf. Since I have ...
1
vote
1answer
33 views

sed error: “\1 not defined in the RE” under OS X

my question is: how to remedy the error yielded by the last command below, under OS X 10.10.5? $ ls foo* foo123bar.pdf $ for f in foo*; do echo "$f" | sed -E 's:foo:bar:';done bar123bar.pdf $ for f ...
0
votes
1answer
15 views

Understand the nslookup output.

nslookup returns the following output on mac: www.yahoo.com -> 46.228.47.115, 46.228.47.114, 2a00:1288:110:2::4001 As I understand following IPs in DNS map to www.yahoo.com: www.yahoo.com -&...
6
votes
1answer
94 views

Cannot exec /bin/false: no such file or directory

I'm trying to open GNU Screen with the following command on my Mac OS: host:~ user$ screen The screen terminal opens but quickly dies with the error message: Cannot exec /bin/false: no such ...
0
votes
0answers
13 views

My Macbook retina with Linux Mint out of battery, black screen on boot

I was using the computer when suddenly the power in the house shut down without me noticing. Then after a while when my computer shut down off battery loss, it now wont boot. Before it shut down I was ...
3
votes
2answers
65 views

How do I download a file from a host i'm already connected to over ssh [duplicate]

I'm trying to download a file from a linux server i'm already connected to. I know you can use scp to connect to and pull down a file from a host, but that requires still being on local. I could scp ...
1
vote
0answers
51 views

Windows 10 vs. Mac OS as a hypervisor [closed]

I am a developer working with GNU/Linux. However I am required by my workplace to have either a Macbook running OSX, or an a Lenovo running Windows 10 as my work-station. The sole use for those will ...
7
votes
2answers
10k views

How do I start a virtual machine in background upon OSX system start?

I have a virtualbox machine on a OSX 10.9.2 host. I do not want to open VirtualBox everytime and start the machine there. Also, I do not need the the screen output as I will just ssh from OSX terminal ...
-1
votes
1answer
51 views

Installing elinks on OSX

I am trying to download the text based browser elinks by following this video https://www.youtube.com/watch?v=A2gzn8QAlWA but I could not because the terminal gave me the error "sudo: apt-get: command ...
2
votes
2answers
1k views

Linux guest VM on mac host - Keyboard

I use a Mac as a development box, but am slowly transitioning to Linux. So I am spending the majority of my time in the Linux guest VM while working. But I still spend a fair amount of time in Mac ...
0
votes
1answer
66 views

No manual entry for git

I'm able to use man git when MANPATH is set to the following: $ echo $MANPATH /usr/local/opt/findutils/libexec/gnuman:/usr/local/opt/coreutils/libexec/gnuman: However, when it doesn't include the ...
35
votes
5answers
36k views

How can I install the `ll` command on Mac OS X?

I'm using Mac OS X. When I SSH into servers I find the ll command useful, but it's not available on my local machine. How can I install it?
1
vote
1answer
2k views

Increasing `ulimit -u` settings temporarily in OSX Yosemite

I'm trying to temporarily (without restarting the machine, just for test that starts a JVM) increase the number of processes to 2048 in OSX Yosemite but I'm unable to do so. First, I tried calling ...
1
vote
1answer
56 views

Live/bootable Kali linux from partitioned USB Hard Drive (Mac/OS X)?

I'm trying to boot Kali on a Mac from an external drive's partition (GUID Partition Map). The drive has 3 partitions, and I have data on the other 2 (that won't fit on my internal drive). I want ...
4
votes
3answers
401 views

How can I determine the OS within .bash_profile? [duplicate]

On my main machine, a MacBook Pro, I have a .bash_profile file that I'd like to use unaltered on my Dreamhost linux machine. However, there's a few lines that are only applicable to macOS, such as ...
3
votes
3answers
56 views

How to install section 5 of man pages?

man tar works and in the SEE ALSO section it references tar(5) but man 5 tar outputs No entry for tar in section 5 of the manual. My primary goal is to get those for my OS X laptop. But I've seen ...
4
votes
1answer
49 views

How can I tweak unix settings for 360 Spatial Workstation (specifically the vst and aax audio plugins) to make it run as a non-administrator?

There are free vst and aax (Pro Tools) plugins installed as part of 360 Spatial Workstation. These are greyed-out (as if requiring a license), or invisible (VSTs e.g. in Ableton Live). If you login ...