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)

21
votes
3answers
165k views

How to install apt-get or YUM on Mac OS X

I am new to Mac OS command line, I want to use either of apt-get or yum. Can anyone help me to install them and make them successful running?
0
votes
0answers
31 views

man can't find git entry in tmux

On OSX 10.11.5, I can open a terminal and type man git to view the git manual. When I'm using tmux, however, and I type man git I get an error: $ man git No manual entry for git It looks like tmux ...
0
votes
0answers
19 views

key load error on trying to ssh to server

I get the following error when trying to ssh into a server running Mac OS X. The client is also running Mac OS X. ssh -v server.lmd.edu OpenSSH_6.9p1, LibreSSL 2.1.8 debug1: Reading configuration ...
0
votes
2answers
46 views

Shutdown as a Mac

I have a iphone app that can remotely shutdown a mac computer. I would like this app to shutdown my Ubuntu computer. I'm getting following messages from the application when trying to shutdown: When ...
0
votes
1answer
121 views

Split a text file into multiple files, beyond the {99} limit of csplit

I'd like to split the contents of a .txt file into multiple files, but I'm encountering two questions about limitations of csplit: (1) can anyone offer a way around csplit's maximum limit of '99' ...
1
vote
1answer
19 views

What is the equivalent of pstop on OSX?

Is there an equivalent of pstop in OSX? How is pstop different to kill?
0
votes
0answers
7 views

Can I VNC directly into my “Linux Deploy” from OS X?

I use Linux Deploy to run desktop Linux distributions on my Android devices. The way it works is the I start the system in the LD app, and then I go to VNC Viewer on the same device to get a GUI. ...
0
votes
0answers
17 views

Another El Capitan permissions issue

Been to the depths of the web trying to repair my Mac HD and Home folder permissions. I would like to get back to default setup without losing user data. Any and all help is appreciated. Can't run ...
0
votes
0answers
21 views

Functions for general backups creating on OS X

I'm trying to create 2 aliases for fast and easy backup of files or folders on OS X. I currently have this: backup () { if [[ $# -ne 1 && $# -ne 2 ]]; then echo "Invalid ...
3
votes
3answers
3k views

I accidentally deleted the sudoers file on Mac OS X; is there any way to recover it?

I accidentalley deleted the sudoers file on Mac OS X; is there any way to recover it? And once you've recovered it, how do you set it to mode 0440? I presume not but I am desperate to get it back!
1
vote
1answer
61 views

Access manpage(2) on OS X

In Mac OS X, at the end of the chmod man page, it shows See also: chmod(2) But when I enter man chmod(2) It says that there is no such man page. How can I access the man page chmod(2) man page? ...
3
votes
1answer
23 views

Can't use global shorcuts for Python applications

I'm using bash on a Mac. My problem is every time I try to run an installed Python application I just get a message that the command can't be found. Like so: -bash: gcloud: command not found Doesn'...
0
votes
1answer
11 views

Since when Disks statistics in `top` command are counted?

I've got these disk statistics shown in top command: $ top | head | tail -n1 Disks: 1095425909/52T read, 1016012571/52T written. It's quiet high number for only 37 day uptime. Are these numbers ...
1
vote
1answer
122 views

Why kernel may be throttled?

My MBR start freezing up for over hour and I've found that my kernel reported being throttled, e.g. (this is just a sample for 2 seconds) $ sudo fs_usage | | grep -i throttled 12:26:45 THROTTLED ...
1
vote
1answer
820 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 ...
0
votes
2answers
35 views

Grub menu on reboot after removing another distro partition

I just acquired a macbook air. I dual-booted mac os with Ubuntu. It is my first time multiple-booting on a mac. I triple-booted with another Ubuntu. Ater removing the third distro, I experience some ...
1
vote
1answer
814 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
35 views

Regarding equating file attributes in “ls” command

I have a folder in which there are thousands of images. Of those thousand images, I want to bring together all those images whose “Last created” and “Last modified” attributes are exactly same. ( In ...
0
votes
0answers
24 views

VMware Mac OS X 10.11 on Ubuntu Shared Connection Problem

I've just installed Mac OS X El Capitan 10.11 on my Ubuntu host pc and I cannot connect to the Internet, when I go to settings in Mac OS it just displays no ethernet connection is found. How can I ...
34
votes
4answers
48k 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 ...
4
votes
2answers
2k views

Is there a way to get “top” to run exactly once and exit?

I find the output of the shell command top to be a simple and familiar way to get a rough idea of the health of a machine. I'd like to serve top's output (or something very similar to it) from a tiny ...
0
votes
2answers
16 views

How to take a screenshot of the X virtual framebuffer display?

I would like to take a screenshot from Xvfb display server. I already tried: xwd -root -silent -out screen.xwd but I can't read this file and I couldn't find any software (via Homebrew) which can ...
1
vote
2answers
94 views

What exactly is terminal? What is shell? [duplicate]

I know about Linux terminal. I can also issue many advanced commands over terminal. But one simple concept is not clear to me. What is terminal and how does it work? I know about hardware which ...
1
vote
1answer
111 views

newsyslog for paths with empty spaces

How can I configure newsyslog to trim logs with paths containing empty spaces? I define my paths at /etc/newsyslog.d/frank.conf like this: "/Users/frank/Library/Application Support/Google/Drive/*....
1
vote
0answers
274 views

How to specify command line options for XAMPP for Mac?

Per the answer to this question: Can I have conditional statements, based on server, in .htaccess file? I want to specify a command-line option when starting up Apache on my Mac. But my Apache is ...
0
votes
0answers
11 views

Linux-live-USB boot on Intel MAC - Unetbootin / need help!

I am able to make a "linux-live-usb" and boot successfully on MAC by using Mac OS X Disk Utility to partition the USB (GUID partition table) and then using UnetBootin(on linux) to copy the ISO over, ...
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 ...
1
vote
2answers
35 views

How can I log how often a file is modified on OS X?

I would like to know which files in my system I access most often, as a gauge of how important they are. I know the OS records the last time the file was accessed. Is there someone way to log in a ...
0
votes
1answer
35 views

Pass filename from find and execute command

I'm trying to write a script which finds certain files and executes a command with the files it finds. Doesn't sound too hard, but I'm having a lot of trouble getting it to work. Basically this is ...
1
vote
0answers
29 views

Pipe long running process to clipboard on mac

I have a seemingly long running process (the lg cli debugger) and when I run it it prints out a uri to access the spawned debugger. I'd like to pipe this to my clipboard (pbcopy on mac) so I don't ...
4
votes
2answers
182 views

SSH broken pipe, message authentication code incorrect

I have set up a Ubuntu server that I plan on using to backup my macbook air using rsync. But every time I use rsync, or even scp, the connection drops, with one of the following errors: ...
46
votes
6answers
42k views

Is Mac OS X UNIX?

I have this argument recently saying Mac OS X was not UNIX, but Unix-like. I know there is a Single Unix Specification and those spec complaint could use the UNIX trade mark. Is Mac OS X an UNIX ...
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 ...
1
vote
1answer
26 views

Trying to create a bootable usb drive for kali linux

I was wondering how I create a bootable usb kali linux drive for mac. And when I create one, is the usb drive a temporary os, like every time you plug it in it switches to kali linux and when you ...
0
votes
1answer
63 views

Weird user in shell

I use iTerm on OS X 10.10 When I start iTerm I get the weird user unknownA988274AC:~ myUserName$: That was not there before. Before there was myUserName$: Any ideas where that comes from?!
0
votes
0answers
56 views

VirtualHost configuration not working

I followed this article, mixed with some other research, in an effort to get VirtualHost configuration up and running on my Mac. However, for some reason when I navigate to my local.site.rocks URL it ...
0
votes
0answers
10 views

installed (brew) Privoxy on El Capitan and didn't do config changes - is there a security and privacy benefit?

I installed privoxy with brew and changed system wide proxy settings for HTTP and HTTPS. I didn't configure anything with privoxy. Just default. I use multiple layers of security controls, so in ...
0
votes
1answer
13 views

Switching from a downloaded version of python to a Homebrew one

I've recently decided I'd like to switch from my downloaded versions (as in downloaded from python.org) of python 2 and 3 to Homebrew installs. I've installed both python 2 and 3 from Homebrew using a ...
-4
votes
2answers
101 views

What is wrong in this code? [closed]

The code is ; cm=$1 nm=$2 case $cm in "out") declare -a en declare -a inf ec=$(grep -n "! " hw1_out_si_wire.txt) IFS=$'\n' en=($ec) lst=$((${#en[@]} -1)) IFS=' ' inf=($en[$lst]) echo " Energy: ${inf[...
0
votes
1answer
77 views

how do I give users capabilities

How do I give users capabilities in OSX? I googled it and I found no answers. The setcap command doesn't exist in OSX.
1
vote
2answers
80 views

How do I make there be no group owner of a file in Mac OSX?

How do I make there be no group owner of a file in Mac OSX, since chgrp nogroup file doesn't work? If I try, the group owner doesn't change at all.
1
vote
2answers
78 views

How do you make filesystems in mac OSX

How do you make filesystems in OSX? Mac OSX doesn't have the mkfs command.
0
votes
0answers
27 views

Ctrl+D toggles the OSX dock but I want it to be passed to the terminal [migrated]

I'm new to Linux and have been playing around with manipulating files with cat ie. cat > randomNames Albert Einstein Marie Curie Isaac Newton now when I want to quit cat with control + D on my ...
0
votes
0answers
51 views

Does `find` return directories that are not on the file system?

I'm trying to identify where the python site-package matplotlib is installed on my computer. I ran find ./ -name matplotlib at the top most directory (called the root, no?) and was returned the ...
2
votes
0answers
19 views

How can I tweak unix settings for 360 Spatial Workstation to make it not run as admin?

I'm having issues installing, in a group environment, a program caleld "360 Spatial Workstation" also known as FB360 now in collaboration with a team at Facebook. The systems are OSX 10.11, facing ...
0
votes
0answers
12 views

The included VM could not be uncompressed (GZIP/UNCOMPRESS)

I have a .bin file to install Bladelogic NSH console and I want to install it in my OSX(Capitan). When I execute the .bin file in the Terminal I get the following error: Preparing to install... ...
2
votes
0answers
47 views

find - No such file or directory albeit it exists

I run the following command on a directory: find . -name "*.pyc" -type f -delete however it prints this find: -delete: unlink(./tests/unit/framework/__init__.pyc): No such file or directory for ...
1
vote
0answers
26 views

Typing { } on Debian in VirtualBox on OSX [closed]

I have a OSX with VirtualBox and a virtual machine with Debian. In the virtual machine I'm not able to type those brackets {}. Any help ? I have an Italian keyboard on my Mac.
1
vote
3answers
43 views

how to spawn a separate process in the background while running a foreground process

e.g., I want run a python -m HTTPSimpleServer in the background while running a watch in the background python -m HTTPSimpleServer; watch -n (my awesome test command) how can I run both in ...
1
vote
0answers
21 views

How to build GTK2 on the Mac OS X EI Captain?

I tried to build GTK2 to Mac OS X EI Captain from source code. But by the environment variable (INCLUDE?), an error occurred and I failed to build. Please help me by advices? Doesn't someone have the ...