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
0answers
42 views

Revisiting and learning UNIX [closed]

To get back up to speed on best practices, which UNIX learning resources does the community recommend (slide decks, good videos series, interactive serious games, online virtual learning environments) ...
0
votes
1answer
895 views

Trying to connect to an SSH server on one machine and it works fine. Not on the other [closed]

~$ ssh -v raina@45.79.8.241 OpenSSH_6.9p1, LibreSSL 2.1.7 debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 21: Applying options for * debug1: /etc/ssh/ssh_config ...
1
vote
0answers
11 views

How do I make changes in winetricks permanent?

I downloaded a game powered by wineskin X11, it requires videomemory of at least 1GB winetricks works great, but each time I will have to open the dialog, modify it and run the game. Any ideas? I ...
1
vote
1answer
36 views

Scripting Question

I'm trying to write a simple shell script for OS X 10.10, to install a list of applications for new Macs we're getting in. I just want to fire off each installer one at a time to install each ...
0
votes
3answers
89 views

Ignore certain characters when comparing variables?

For example, If this is my script: if [[ $yesno == "What's going on" ]]; then Then how do I make it Ignore ', ?, , and . for example? So basically Whats going on, What's going on, What's going on? ...
0
votes
1answer
286 views

Formatting USB stick with fdisk - negative used space?

I formatted a USB drive using fdisk, and created three partitions. Everything seems to work fine, but Disk Utility is showing a negative amount of used space for all partitions: Partition | Capacity ...
0
votes
2answers
46 views

seq -w equivalent in os-x bash

I have sub-folders named 00 01 02, ... n with each foldername containing at least 2 digits. I need to access these sub-folders in os-x terminal. The command for i in $(seq -w 00 06); do echo $i; done ...
3
votes
1answer
45 views

ssh port forwarding through pseudo terminal

Here's a situation: I do all my work on a Mac. There's a certain linux server 'server01' that provides access to another linux server 'server02' via a pseudo terminal So, to ssh into ...
2
votes
0answers
39 views

Switch to a specified WiFi network via bash on a Mac

I try to connect to a specific WiFi network in a bash script on a Mac. Two things I want to achieve: Connect to the specified network. I have tried networksetup -setairportnetwork en0 [network_ID], ...
1
vote
1answer
87 views

how can I stop multiline commands from messing up my cursor position when scrolling through history?

Related: Why is my bash prompt getting bugged when I browse the history? History looks like: 1831 git remote -v 1832 gs 1833 gd 1834 gc -am 'moved apsum options etc to their own file set ...
1
vote
2answers
75 views

Unzipping file with exclamation mark from command line in bash script

I'm trying to do a simple script that unzips a zip file which has an exclamation mark in its name: #!/bin/bash UNZIP='/usr/bin/unzip' CUT="/usr/bin/cut" GREP="/usr/bin/grep" FILENAME="test" ...
1
vote
0answers
128 views

iowait monitoring in top on OSX/iMac

I'm trying to monitor the performance of a process on OSX 10 (iMac), specifically whether I/O is currently a bottleneck or not. I don't use the machine, hence I need something simple that the user can ...
2
votes
0answers
211 views

How to change to a different user after SFTP login

The goal: Use local IDE (IntelliJ PHPStorm 9) to browse & edit remote files via SSH The obstacle: My user on the remote machine does not have permissions to read files, which are owned by ...
1
vote
1answer
90 views

Debian Jessie Nvidia proprietary drivers and screen brightness buttons

How do you make Mac OS X screen brightness work when using Debian Jessie 8 and Nvidia proprietary drivers? There are a lot of answers floating around about editing the config file adding some options ...
1
vote
1answer
15 views

Changes of Terminal look don't work anymore

I got a mac laptop and have been using a home directory which is not under my name. After spending some time, I have set preferences and of course one day, I needed to change the home directory name ...
0
votes
0answers
55 views

Help Installing Debian on Mac Mini Late 2012

I have tried to install Debian Linux on my Mac Mini Late 2012. I first installed rEFIt, then I've created a USB Stick with Debian using uNetBootIn and selecting Stable_NetInstall_x64. Then I booted it ...
1
vote
0answers
37 views

Booting full Linux Mint off USB on Intel Macbook pro?

I almost never post questions online but this time I couldn't find a solution to my problem. My problem is that I'm trying to boot full Linux Mint from a USB on a Macbook Pro. I was already successful ...
2
votes
1answer
92 views

Tried to change the name of my home folder on Mac OS X and f'ed up

I'm on OS X 10.10.5 I tried to change the name of my home folder and account using the instructions here. I followed them to the "T". I made a temporary admin account to make the change from called ...
3
votes
1answer
110 views

OS X: Can `ls` show broken symlinks?

When in Linux, I enjoy having \ls -l --color=auto show broken symlinks with red text for the name of the symlink and blinking text for the missing linkee. But in OS X, \ls -lG (the closest thing I ...
2
votes
1answer
49 views

Accessing Time Capsule Drive from SSH?

I have an Apple Airport Extreme Time Capsule. I'd like to use it to store information for data mining operations. I've set up OS X server, and set up user accounts such that users can log into a Mac ...
11
votes
5answers
722 views

Test if File was Modified After Date in File Name

I have a files named with YYYYMMDD in the file name, such as file-name-20151002.txt I want to determine if this file was modified after 2015-10-02. Notes: I can do this by looking at the output ...
2
votes
1answer
147 views

UTF-8 not working over SSH

I have configured my terminal on OSX to show emoji properly. When I open up a terminal I can type and see emoji properly. My locale settings for OSX are shown below. When I start a tmux session it ...
2
votes
0answers
67 views

How to share my internet connection with a Raspberry Pi? [closed]

I connected my Raspberry Pi, that runs Arch Linux, to my Mac with an ethernet cable using this tutorial. I set the ip of the Raspberry Pi in the cmdline.txt file to 192.254.0.2. My Mac automatically ...
0
votes
1answer
243 views

How to setup Mac OS X Terminal on bash and iTerm2 on zsh

I attempted to setup bash shell by default on Mac OS X (Yosemite) Terminal app and zsh shell by default on iTerm2 app. However, it is either bash shell or zsh shell for both the apps. $ chsh -s ...
0
votes
0answers
44 views

customer display on headless server / POS system / Mac OSX

I have a web based POS system running (AMP), formerly on debian, now switched to OSX due to lacking linux printer drivers. The Mac mini is running headless, no keyboard, no mouse, no (normal) monitor. ...
1
vote
0answers
16 views

Anybody ever seen a file called .x64HG0B+VC on a Mac? [closed]

I've been looking at a file called .x64HG0B+VC and was wondering what it was...anybody have an answer?
0
votes
0answers
46 views

Scripting Assistance

I'm new to scripting and was hoping someone could point me in the right direction on figuring this out, any help would be appreciated. I need to create folders and symlinks in a second set of ...
1
vote
0answers
56 views

Upgrade OSX (Macbook Pro) when it has a Debian dualboot

On my Macbook Pro, I have a Debian/OSX dualboot, the partition looks like the following on OSX: bash-3.2$ diskutil list /dev/disk0 #: TYPE NAME SIZE ...
0
votes
1answer
98 views

how can I create two files with same name with different case in mac osx

I can't create two files with same name with different cases in a folder. as an example if file names are like below. test.java and Test.java. warning message appear that saying The name “Test” ...
0
votes
1answer
28 views

How can I get just the enum names from a Java file?

Enum files in java can get messy in structure, I'm trying to get Just the Enum names ... import com.mckesson.dex.model.activityLog.concreteFactory.ModifiedPropertyYesNoFactory; public enum ...
3
votes
0answers
174 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 ...
0
votes
2answers
45 views

Is there a portable way to extract part of formatted text?

I have a program (specifically node --version) that outputs text in the form v<major>.<minor>.<patch>, where <major>, <minor> and <patch> are all numbers. I would ...
1
vote
0answers
31 views

kali's airmon-ng doesn't list out existing interfaces on mac

I am using Kali Linux on my mac inside of parallel desktop. When I type airmon-ng no interface gets listed. May be I am missing the right drivers for kali. How would I fix this?
3
votes
2answers
46 views

How to backup the data of my Linux system if I want to retrieve it in other operating systems?

I am a basic Linux user and would like to backup my data (my home directory to be precise) in an external hard drive (EHD), but would like to be able to retrieve this data in other operating systems ...
0
votes
1answer
64 views

How to disable or delete guest user account, from my MacBook Pro

In "Users and Groups", I see a "Guest User" listed there, as "Login only". However I do not want this user account. When I try to uncheck the "Allow guests to login this computer" for this user, I ...
2
votes
4answers
97 views

Copy files to new directory only if name of file is in an array

I'm not much of a zsh buff but I imagine this should be an easy layup for someone: I can bulk copy files from sourcedir to targetdir with the following: $ find sourcedir -type f -exec cp {} ...
2
votes
1answer
77 views

Unix ffmpeg Shell Script merge .aif and .mp4

I need a script that merges multiple files (.aif and .mp4) in the same folder with the same name to a new folder called [original_name]_new.mp4 Code: #!/usr/bin/env bash -e function combine(){ ...
1
vote
1answer
40 views

Reset Bash's memory used for auto-complete

After renaming a file to a similar name, I noticed TAB was still completing the old filename (if it matched the letters so far) and not showing the new one. No matter how many letters I typed, it ...
3
votes
2answers
30 views

How to set binary installed by package manager as default?

I installed a newer version of tcpdump via MacPorts and would like to make it the default binary. $ which -a tcpdump /usr/sbin/tcpdump /opt/local/sbin/tcpdump For now I set an alias, but that of ...
2
votes
2answers
116 views

Unix, Mac OS and Linux?

I am working to learn more about unix and linux for a project. I noticed that Unix is the parent system of Mac OS and also of linux. Are the two similar in scope of C based programming? And how ...
0
votes
3answers
58 views

Echo filtered numbers within a for loop and with an if statement

Desired output: all numbers greater than 5. One of few attempts: for i in {1..10}; do if ["$i" > 5]; then echo $i; fi; done But the output is: -bash: [1: command not found -bash: [2: command ...
0
votes
1answer
43 views

FreeBSD 9.3 and OSX color tags

I am using nas4Free 9.3.2 and FreeBSD 9.3-RELEASE-p22. I noticed after using cp, that my moved files no longer had the color coded labels I had applied in OSX. Share mounted in AFP. To test this, I ...
6
votes
0answers
118 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
1answer
59 views

How to keep all log files?

I just lost important log file. Time Machine etc is not in use in that Mac. I would like to setup in my Mac (El Capitan) some unix thingie, which keeps all log files. Logs rotate, right? So if i ...
1
vote
1answer
664 views

Printing to Linux CUPS printer from Mac El Capitan - fills error_log and doesn't print

any ideas on this one? I'm trying to print to a CUPS printer running on Debian from a Mac running OSX 10.11 El Capitan. When I try to print, my /var/log/cups/error_log reads: D [12/Oct/2015:00:59:04 ...
0
votes
1answer
41 views

Ignore parts of script under some circumstances?

My script looks like this strenggen ( ) { something; } strengen 1 strengen 2 strengen 3 strengen 4 strengen 5 etc.. Which adds a few files to the directory called strengen?string=1, ...
1
vote
1answer
33 views

Terminal tab title not working correctly with MacPorts bash

I'm using OS X Yosemite 10.10.5. When using the default /bin/bash as your login shell, setting the following in .profile: PROMPT_COMMAND='echo -ne "\033]0;${PWD/$HOME/~}\007"' sets the Terminal tab ...
1
vote
0answers
21 views

Gtk primary key

Is there any way to setup Gtk applications under Linux to force use Super as primary modifier, instead of Control. I tried gtk-key-theme-name=Mac for both gtk2 and gtk3 without success, also I found ...
0
votes
0answers
92 views

Cannot login to SSH with public key

I'm using Yosemite 10.10.5 I think the problem is im missing a file called id_dsa - I have an id_rsaand and i've added the contents of id_rsa.pub to my servers ~/.ssh/authorized_key file. Here is ...
4
votes
1answer
93 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. ...