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)

1
vote
1answer
24 views

How I can change the home directory of the sftp server on MAC OS X?

I'm trying to set up SFTP's home directory on a MAC OS X Mavericks for user my_user. Now, it looks like: /Users/my_user (i got it with sftp> pwd command) but I want it be: ...
0
votes
0answers
66 views

I have: “error: no such device: 6ec8e… Entering rescue mode… grub rescue>” on Mac OsX boot

I decided to install Debian on a external HDD to try it with my Mac Book Pro and then see if I will install it on a partition of MBP's SSD. I installed it and plugged the device on the machine, but ...
1
vote
0answers
38 views

ftp: Illegal PORT command with ls on Linux, but not OS X?

I'm getting strange errors with ftp on Linux (Arch, to be more specific, as part of the inetutils package). To be truthful, the reason I'm using the shell command is because all of my other clients ...
3
votes
1answer
115 views

Why does “ls” sporadically output only “.” in the root directory of an external drive?

In the root directory of my USB flash drive, sometimes when I run ls, the output is normal and it lists the files. At other times, the output is simply one line: $ ls . If I try ls -la at one of ...
3
votes
1answer
58 views

Creating a DMG file on Gentoo

I'm trying to create a Mac OS DMG image file on Gentoo - I managed to create the FS using mkfs.hfsplus and just dropping all the contents into the mounted file system, and everything works fine.. the ...
0
votes
2answers
97 views

Meaning of “l” in “lrwxr-xr-x”? [duplicate]

According to this website: http://ss64.com/bash/ls.html The first letter indicates the file type: f means file and d means directory. But in my case I've an l. What's the meaning of this l? In ...
1
vote
1answer
78 views

How can my text file get filled with ^M characters all of a sudden?

I have a text file on a Mac machine, and I've only ever used vi/vim to edit it. Today when I opened it using vi I noticed a bunch of ^M characters everywhere. The only thing I did different today was ...
0
votes
0answers
19 views

RabbitMQ/Elasticsearch too few/many files (ulimit, limit maxfiles)

This is for my local dev setup: Problem #1: RabbitMQ was running out of socket descriptors for which the recommended solution was to set ulimit -n 65536 65536 in ~/.zshrc Problem #2: ...
4
votes
1answer
49 views

OSX 'env python' returns different interpreter than 'python' [duplicate]

I cannot figure out what is going on here. I have just installed Anaconda, and I am trying to get my #! /usr/bin/env python shebang to return the new interpreter. I have no python aliases, and ...
1
vote
1answer
35 views

Setting Terminal tab names in OS X and using vim

I regularly ssh into a Linux cluster from an OS X (El Capitan) Terminal, sometimes with multiple Terminal tabs. I use bash and vim. I'd like to do the following: while ssh'd, set the Terminal tab ...
4
votes
2answers
81 views

OS X Postfix no TLS found

I'm working on OSX El Capitan. About week ago everything worked fine, but then I changed my gmail password and now I can't send emails any more. Additional configuration for /etc/postfix/main.cf is: ...
0
votes
2answers
75 views

What is causing the “syntax error near unexpected token `do'” and how can I fix it?

I keep getting this error: ./install.sh ./install.sh: line 28: syntax error near unexpected token `do' ./install.sh: line 28: ` do' When running this code (a work in progress): # ...
7
votes
3answers
615 views

wc command counts extra characters

cat > file Amy looked at her watch. He was late. The sun was setting but Jake didn’t care. wc file 1 16 82 file Can somebody explain why wc command returns 3 extra characters in this ...
0
votes
0answers
50 views

Installing Lakka on an old Macbook Pro

I've been trying to get a USB with Lakka.img on it to boot on a 2011 Macbook Pro for the last few days now, and I'm not getting anywhere. I've used/tried to: Copy the image to the usb via the ...
0
votes
1answer
16 views

can i use .bash_profile to create an alias which copies text from a file? [duplicate]

I have a long string of text saved in a file that I want to easily copy to clipboard using Os X 10.11 terminal
1
vote
1answer
20 views

On the relationship between shell initialization and desktop apps after a “graphic login”

I am very (zsh)/somewhat (bash) familiar with the shell's initialization sequence when the user logs in through a text interface. But what about the case of a "graphic login", IOW, when the user logs ...
0
votes
2answers
25 views

How do I open BSD System Calls Manual instead of BSD General Commands Manual?

Suppose I wish to read about wait syscall. Typing man wait would only give the manual entry for wait as in shell, not in syscall. However if I type man waitpid, I would get the manual entry for wait ...
0
votes
1answer
35 views

Type curly brackets on Debian running on mac

I have searched for this problem for a while and can not find an answer anywhere. I am currently running a Debian on virtual box on a mac. How do i type the "Alt Gr" Characters like curly brackets?
2
votes
2answers
84 views

How to switch to root and use same dotfiles as my normal user?

I run zsh on Mac OSX, and sometimes want to switch in the terminal to the root user. I'd like to keep all my dotfiles, and environment path configuration and scripts from my regular user, and just do ...
2
votes
1answer
59 views

bash shell doesn't appear when terminal is launched

Whenever I launch terminal in my Macbook Pro. The terminal doesn't show command line of bash shell. What appears is the command line of Mathematica 9.0. It has been long time after installing the ...
1
vote
1answer
61 views

How can I install Arch Linux on Mac? On an external hard drive?

How can I install Arch onto a Macbook Air 2014? I'd also like this to be on an External Hard drive. I know how to boot into the BIOS and everything, I just feel like none of the guides have helped me. ...
3
votes
0answers
46 views

Use a “Friendly” Label on Drives or Partitions in FreeBSD

Maybe I am missing this and it's really simple, but I cannot figure out how to label a BSD disk. I have looked at tunefs or gpart and even disklabel, however none do what I am looking for - I don't ...
0
votes
0answers
26 views

Set Default Boot Device for XServe in Open Firmware

I have an old Apple XServe G4 that I successfully created a dual boot of Mac OS X and FreeBSD 10.2. In order to boot the machine, you have to go into Open Firmware and issue a boot command... I ...
-1
votes
2answers
105 views

Installing Linux on MacBook Air

I've wanted to switch over from OS X to Linux as my main OS for some time now, but I have a few questions that I would prefer to be answered before I try. Please excuse my general lack of knowledge ...
0
votes
0answers
47 views

Script file that lists contents of current folder

I have OS X, but I'm guessing it should be the same as in other Unix OSes. I know the command is: #!/bin/bash ls > contents.txt Then you put it into a file called: script.command then you ...
3
votes
1answer
63 views

Change dir colour in bash output

Under Mac OSX, I am trying to change the dir colour when ls outputs in the bash shell. So I placed this line at the end of my .bashrc file and reloaded. LS_COLORS=$LS_COLORS:'di=0;32:' ; export ...
1
vote
0answers
11 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
1answer
36 views

Booting CentOS from live usb on OSX El Capitan

I have been trying to set up a live usb to use to study for the RHCSA/RHCE certification. CentOS launches and gives me the launch page I choose the standard option, I have not tried text mode etc. ...
1
vote
1answer
75 views

generate file names in loop [closed]

DISCLAIMER: I am using Mac OSX. The bash script is in a different directory from the files that require processing. From here my struggle begins… HELP 1: I have multiple files each housed in a ...
0
votes
2answers
42 views

Linux beginner. What OS should I use? [closed]

I recently started JAVA programming and I would like to start learning Linux programming simultaneously. I run a mac and I am planning to use Oracle VM VirtualBox to boot linux. What kind of Linux OS ...
0
votes
1answer
45 views

How do I remove “^M” from a file? [duplicate]

I have two "identical" files that I compare in diff, and it shows that every line is different, after looking at the file I found that one of them has ^M at the end of every line. How do I remove ...
1
vote
1answer
49 views

Using terminal to reset icon cache - which method?

I've been trying to find out how to reset the icon cache on my MacBook, and two methods seem to always be suggested. However, the two approaches differ slightly in the third line. Method 1 sudo find ...
2
votes
1answer
30 views

How does OSX handle Out of Memory conditions?

Linux uses the OOM killer; what do Macs do?
0
votes
1answer
133 views

Symlink to file which does not exist yet

I'm currently trying to cleanup my home directory by moving files like .vimrc, .bash_profile, etc. to a directory .dotfiles in my home directory. The idea is to use symbolic links to these files ...
0
votes
0answers
54 views

Shell scripts for proof reading

I am using below mentioned script present at link to check my writing. But, while running the scripts some syntax errors are shown up. I am not able to correct the same. Haroons-MacBook:democheck ...
1
vote
1answer
167 views

ssh algorithm negotiation failed

Problem Ok, the problem is that I am using Pycharm on El Capitan. I am trying to connect to a server that has strict login Kexalgorithms using the newer Key Exchange Algorithms than Pycharm seems to ...
0
votes
1answer
70 views

Resolving Error: Running Xilinx through Wine

I've run the Xilinx 14.7 Full Installer for Windows successfully via Wine on the prefix com.xilinx.verilog, then went to ~/Library/Application\ Support/com.xilinx.verilog_145331572525077/ to confirm ...
1
vote
0answers
75 views

OS X El Capitan , systemstats:com.apple.telemetry.shutdown

Last night I reinstall OS X El Capitan on may macbook air 11 inch and after I did updates , I shutdown the macbook and went to sleep.İn the morning , I opened it and I saw it was just on sleep. I'm ...
0
votes
0answers
58 views

Samba Debian Server + OSX Client = High CPU Load

I've a Debian server running Samba 4.1.17-Debian the shares are ok and it works fine most of the time. However when I connect an OS X client the server CPU goes to 100% and never comes down util the ...
1
vote
0answers
59 views

Why is my rsync slow?

I run a rsync job transferring about 45 million files/approximately 1.8 TB data (a Mac OS X Time Machine backup) over a 100 MBit connection. I use rsync 3.1.1 from MacPorts (I first tried the built ...
1
vote
1answer
22 views

Workaround for missing rm -I option on OSX? [duplicate]

I'd like to do this, on OSX: alias rm="rm -I" In GNU rm, this means that rm will prompt if it's recursive or if it's deleting three or more files, but not if it's just deleting one or two files. ...
2
votes
2answers
28 views

Lock A Built-in Application?

I know I am able to lock an application using: sudo chmod a-x /Applications/'Application'.app but I encountered a problem while trying to lock an application, like safari, which is built in. ...
2
votes
1answer
63 views

Execute a command after each output line from ping command

I am trying to build a one-line command to monitor when my Internet connectivity drops. I'd like it so that if I run ping www.google.com indefinitely (one ping per second), if the word "timeout" ...
-1
votes
1answer
20 views

Lock a Application Through Terminal

I was wondering if it were possible to lock a Application through Mac Terminal. I know there's a way to lock files, using chmod a+x 000 'directory', but it never worked with an Application. What I ...
5
votes
1answer
61 views

Behavior of grep -o on OSX

On Linux, when I do echo foo | grep -o '^.' to get the first character, it prints f as expected. (I know, | cut -c1 would probably be faster.) But on OSX, doing the same results in 3 matches (3 ...
1
vote
0answers
39 views

Schedule (Cron) executing tasks based on bash scripts using CronniX

I'm still quite new you Mac and OS X but do have some background about other UNIX based systems, so please excuse for any misunderstandings. My goal is to implement a function that executes certain ...
0
votes
1answer
35 views

How do I check if a directory is locked or not in bash?

I have only been able to find solutions for files, and not directories, like lsof. chflags has no read option, so I don't know how to do it.
-1
votes
2answers
124 views

Is MacOS (OSX) a multi-user-operating-system?

We had to set up a MacOS (OSX) for iPhone app-development, but it was really awful to realize that mouse speed and input language, or applications that run as services (teamviewer) can be changed by ...
1
vote
2answers
56 views

Generate unique numbers RANDOM function OS X

I am creating a random generator based from a number array list. However, I would like it to be unique so that random number cannot be used again. I have tried creating a 'USED' array list which will ...
0
votes
0answers
199 views

Macbook Pro Retina 2015 Wifi problems on Kali

I have successfully installed Kali 2.0 on my Macbook Pro retina 2015 model running El Cap via dual boot. I do have some experience with ubuntu etc, and thought I'd try Kali for multiple reasons. ...