Questions tagged [unix]

UNIX is both the underlying code and architecture that makes up Mac OS X / iOS as well as a way of interacting with a Mac using the terminal app, X11 app, and various shells like `bash` or `zsh`. Whether you're logging into a mac using `ssh`, using `mdfind` or `tmutil` or using other open source software, you are doing things very much in common with other UNIX operating systems and toolsets such as Linux, GNU, and many, many others too numerous to list.

Filter by
Sorted by
Tagged with
1
vote
0answers
19 views

Wake on LAN (WOL) on Mac Pro 3,1 WITHOUT MacOS

I've been re-purposing my Mac Pro 3,1 (2008) to be a server using docker and Ubuntu Server 18.04.2. I'm trying to get wake on lan to work, as this is a really power-hungry machine and I would rather ...
0
votes
0answers
36 views

Are there Unix pipes possible on Mac? [closed]

I need to implement communication between two very different executables, a compiled C++ binary and the large Python-based framework, and it is not so that Python could call the C++ binary or other ...
3
votes
0answers
64 views

UBUNTU on MacOS, windows already installed

I am installing UBUNTU on my MACOS Mojave while windows 10 is already installed through bootcamp. I've tried the instructions in Installing Ubuntu on Mac with macOS and Windows already installed but ...
0
votes
0answers
16 views

how can i launch new tab with same directory in UNIX using perl script and my rest perl script will run in new tab [closed]

I have used system("konsole --new-tab"); command to open new tab but it open new tab whose directory is my home directory and my rest perl code run in old terminal . so plz help me that how can i ...
6
votes
2answers
16k views

Dual-boot Linux on a Mac with original Boot Loader without uninstalling OS X

I own a Macbook Air 2014 model, and have duel-booted OS X and Bootcamped Windows 10. Now I want to be able to install a Linux distribution (most likely my own custom one, but lets use Ubuntu as an ...
2
votes
2answers
70 views

How to run Linux gui apps on macOS (e.g. via XQuartz)

I'm trying to run some Linux applications on macOS. I have installed XQuartz but if I attempt for instance to run firefox it does something - i.e. the firefox process can be seen by ps: $ps -ef | ...
0
votes
1answer
24 views

System fails to recognize main macos boot partition after Ubuntu dual booting attempt

I recently attempted, and temporarily succeeded, in dual-booting Ubuntu and MacOS Mojave on my MacBook Air. After I installed and successfully tested Ubuntu, I tried to use Disk Utility to create a ...
12
votes
1answer
12k views

Does Windows or Linux have any tools for accessing a FileVault2 encrypted drive's contents?

I'm looking to mount (and access files on) my FileVault2 encrypted drive on a non-OS X box, and am wondering if anyone has done this with Windows or Linux.
9
votes
4answers
12k views

I overwrote OSX with Linux by accident

So here is what happened. I installed Ubuntu onto a flashdrive hoping to be able to dual boot Linux/OSX. I burned Ubuntu onto the flash drive on my desktop PC (windows 8.1) with universal USB ...
0
votes
0answers
25 views

Install Linux without firmware password

I have a Late 2013 MacBook Pro with an unknown firmware password set. I don't know the firmware password because the laptop is a castoff from a company and I have no way to get the password from them. ...
0
votes
0answers
10 views

Have to ssh first on mac before connecting to samba share

I have a weird issue with my Mac OS Mojave. There is a Ubuntu samba share in my network, and it will consistently fail to connect, until I open the terminal, and browser the directory using it. Once ...
2
votes
2answers
379 views

How does macOS implement symbolic link in Mojave on FAT32 filesystems?

I remember in the past, not all types of aliases (as in the macOS feature) can be created on all filesystems. This is because symbolic link (as in the type of file) is a special Unix file type, ...
1
vote
1answer
63 views

Mac OS not accessible

I was recently resizing a partition on my mac (10.13) and a partition came up named "recovery HD", I looked and saw that it only had 650mb. I tried to delete and couldn't along with the partitions ...
10
votes
2answers
1k views

What does 2>&1 | tee mean?

I read the answer by @grg to question “brew formula” installation logs: brew install <formula> 2>&1 | tee install.log So where exactly is this install.log file going to end up, and ...
7
votes
1answer
4k views

What is the “ls” directory in my home directory?

I was just exploring the directory structure on my Mac and there's a directory in my root/home directory, named ls. [~]$ ls -l . . . drwxr-xr-x 6 XXXX staff 192 Dec 8 2018 ls [~/ls]$ pwd /...
0
votes
1answer
78 views

How to remove special character from a folder name?

I am creating a folder like mkdir -p ../service/target/static but windows creates it with some special character static. I need to explicitely remove that special character using shell script. I ...
0
votes
1answer
39 views

is it safe to delete /private/tmp vs /private/var/tmp?

I see these dirs are bloated with size in many GBs. I have never touched these. Occationally I just delete /private/var/mail/ishandutta2007
1
vote
1answer
36 views

how to reset $SHELL variables in root from user space

I've switched my bash to zsh in root using chsh -s /usr/bin/zsh root After when I change back to bash, I type the wrong path: chsh -s /usr/bin/bash root Now I cannot enter root and I get this ...
0
votes
0answers
30 views

Netatalk disk not shown in TimeMachine, manual connect via afp works

I set up netatalk on Ubuntu to backup via TimeMachine to one partition there over my network. I can connect to the partition through the Finder Go... menue. But I cannot see an option to create a new ...
2
votes
1answer
1k views
4
votes
2answers
2k views

Is there any port of start-stop-daemon for OS X?

I am trying to use some init.d script under OS X and I while some are just working properly, I discovered quite a few that to rely on /sbin/start-stop-daemon and I am looking for a port of it for OS X....
0
votes
1answer
20 views

Creating different quotas for specific machines with Time Machine?

I've got Ubuntu server 18 running AFP (Netatalk 3.1.12) and avahi dæmon. This takes the role of a time machine server I use with currently one mac. I would like to use this with several other macs, ...
73
votes
9answers
258k views

Copying ISO file to USB drive in OS X?

I have tried to copy an ISO file to a USB drive. I am unable to do it with Disk Utility. How can I copy the ISO file to a USB drive? But I get the below. I have enough space in the 16GB USB drive for ...
7
votes
4answers
24k views

How to strip a filename of special characters?

I have a file with a name such as "Today's Date.txt" What I am interested in is stripping away all special characters using the terminal such as: " - , ' ' [ The reason for this is because I plug ...
1
vote
1answer
50 views

Why does sed -i create random files with “q” commands?

I’m aware that BSD sed behaves differently from GNU sed with regards to the -i option. However, the usual way of using sed -i '' on macOS ceases to work when using a q command, and I’m wondering ...
0
votes
0answers
25 views

Finder thinks non existant file still exists

So I have an SMB share hosted off an ubuntu server 18.04 computer. I connect to ZFS pool using smb://my-server.local in finder. It works nicely, except for one main issue that makes me fear using SMB ...
2
votes
2answers
2k views

Right click in Ubuntu Virtual Box guest VM is not working

I am running Ubuntu in Virtualbox in Mac OS. I found that rightclick in the guest Ubuntu, by tapping the trackpad while pressing ctrl key, doesn't work. E.G. it doesn't show the menu for file ...
0
votes
1answer
597 views

Unable to boot Kali linux using rEFInd

I am currently trying to install and boot Kali Linux on my MacBook Pro 2018 which has the new T2 chip with boot security. I have disabled both SIP and Secure Boot on my Mac as well as installing ...
3
votes
1answer
55 views

iMac retrieve old linux partition after dual boot removal

On my iMac I installed a dual boot with Linux Mint. However, I realized that the videos were freezing some times, so I deleted the Linux partition. Now, the Mac is working normally, but instead of ...
2
votes
1answer
166 views

MacBook Pro stuck on GRUB minimal Bash at startup

I had a dual boot Linux Mint 19 and macOS on my MacBookPro11,2. Since the CPU was overheating with Linux, I decided today to delete the Linux partition. Little problem, when I start my MacBook Pro now,...
8
votes
2answers
5k views

Adding a song file to iTunes via the command line without playing the file

I want to add song files to iTunes via the command line. open -a iTunes -g song.mp3 does exactly this. - However it starts playing the song, too. Any way to avoid this?
0
votes
0answers
24 views

Working with Apple HTML class data in AppleScript

I saw the following line of code in this post on AppleScript coding of HTML class data. do shell script "osascript -e 'try' -e 'get the clipboard as «class HTML»' -e 'end try' | awk '{sub(/«data ...
1
vote
1answer
970 views

Broken MacBook boots grub

I had installed a Ubuntu partition on my Mac, but last night the keyboard broke, so I was trying to reinstall Mac OS from the recovery mode and accidentally wrongly deleted all the partitions my Mac ...
0
votes
1answer
216 views

_complete:96: bad math expression: operand expected at end of string in iTerm and Terminal on Tab kypresses

Mac command line say "bad math expression: operand expected at end of string" Previously asks the question however the solution of restarting my computer has not worked.. I was hoping someone might ...
3
votes
2answers
2k views

macbook pro stuck in boot loop - recovery mode and safe mode not working

I have a macbook pro 2015 (8gb ram, running macOS mojave) stuck in the loading screen with the apple logo and the loading bar 100% completed. I tried leaving it for long periods of time. Resetting ...
1
vote
0answers
42 views

Bootable USB stick trying to install on USB instead of hard drive

So I‘m trying to install Ubuntu for Dual Boot on my MacBook Pro. I‘m running macOS 10.14 with APFS, created a new partition formatted as FAT32. Created bootable USB stick with Etcher and so forth. So ...
-1
votes
2answers
321 views

I got rid of Mac OSX and replaced it with linux but now I can't change it back to OSX or windows

I overwrote mac OSX with linux and I can't change it back to OSX because I cannot boot to the apple recovery mode it only boots to linux so I am not able to reinstall Mac OSX or windows.
0
votes
2answers
169 views

Display emoji faces for correct & wrong commands in terminals

I want to customize my terminal to display emoji faces, showing sad face for wrong command and happy face for right command that I enter. Is there any way that I can do this using my terminal bash. ...
1
vote
1answer
6k views

How to configure “DiskImageMounter” like in /etc/fstab?

Today I wanted to check the /etc/fstab on macOS and found that there is no /etc/fstab anymore. Ok, maybe its a long time since I've used it on OS X but i was always sure that the OS X had not too many ...
1
vote
3answers
3k views

Install Windows 10 or 8.1 on MacBook 4,1

I need some help getting Windows up and running on my Early 2008 Macbook. It does have a weird set up, but I think it's possible. All I have is a 16gb SanDisk USB drive. So, here goes. I was ...
1
vote
1answer
57 views

Making Conflicting UIDs across a LAN of MacOS and Linux hosts Consistent

I have an expanding network and while I have the long term goal of eventually implementing Active Directory hosted on a QNAP NAS. However, in the meantime I have the issue of where my MacOS machines ...
0
votes
1answer
140 views

Windows stop in the purple screen after Ubuntu installation

I have an external hard drive where I installed Windows 10 to use on my MacBook when needed. It works great, I just need to toggle the boot disk. But I had to install Linux. To do this I separated ...
30
votes
6answers
32k views

How to remove caps lock delay on Apple MacBook Pro aluminum keyboard when booted to Linux

Apple's MacBook Pro has a slight delay on the caps lock key. That is, the caps lock key has to be held down slightly longer than normal to register the key press required to engage the caps lock. ...
2
votes
1answer
58 views

unlock macOS encrypted Volume on linux

How can i unlock a Partition that has been created and encrypted using Apples Disk Utility on a linux machine? There are 2 formats one can encrypt Volumes with Disk Utility : CoreStorage encrypted ...
1
vote
1answer
34 views

LSCOLORS format

I want to configure my .bash_profile and I've seen this post about BSD based ls configuration: https://www.cyberciti.biz/faq/apple-mac-osx-terminal-color-ls-output-option/ I just don't know what is ...
9
votes
9answers
53k views

How can I transfer large files from Linux to iPad over a cable or wifi?

I am looking for a way to transfer large files to the iPad without using iTunes or pushing to and pulling from a remote server. I run an Ubuntu laptop as my only OS at the moment and want to be able ...
0
votes
0answers
18 views

How to monitor last 24 hours of network activity? [duplicate]

For example, I want to see the average download speed for each hour. How to monitor last 24 hours of network activity?
-1
votes
1answer
58 views

RAM recommendation for hosting 8gb Linux Mint under Virtualbox?

I need to run the latest version of Linux Mint (19.1) under VirtualBox for software testing and debugging. To get the tested apps to run well the VM needs to have 8gb ram, but right now that's the ...
1
vote
1answer
53 views

macOS High Sierra 10.13.6 empty trash sound playing repeatedly

I am trying to figure out how to convert a piece of sheet music to XML file for a student. I heard about Pizzicato app for macOS. I downloaded it, and then attempted to use it (couldn't figure it out)....
2
votes
1answer
787 views

How do you stop wtmp from erasing?

I track user login times on a couple of shared computers running OSX 10.10.5 using the last command in terminal. It seems after updating from 10.9 the wtmp file gets frequently deleted and only show a ...