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
0
votes
0answers
27 views

Are there Unix pipes possible on Mac? [on hold]

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
36 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 ...
1
vote
0answers
14 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 [on hold]

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 ...
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 ...
2
votes
2answers
68 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
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 ...
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
38 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
20 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 ...
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 ...
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, ...
1
vote
1answer
49 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 ...
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
152 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,...
0
votes
0answers
23 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 ...
0
votes
1answer
193 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 ...
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
318 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.
2
votes
1answer
56 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 ...
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?
0
votes
1answer
131 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 ...
0
votes
1answer
126 views

smb server not showing in the Finder sidebar under Locations

I installed samba on linux. From Finder > Go > "Connect to Server …" I can connect to the server and see my folders. The server shows up in the Finder sidebar under Locations. When I unmount the ...
0
votes
1answer
51 views

Building webkit2-gtk with macports, errors sys/types not found

Trying to build webkit2 with macports, I get :info:build /usr/bin/cc -c -I/opt/local/include -fno-common -DPERL_DARWIN -mmacosx-version-min=10.14 -pipe -Os -isysroot/Applications/Xcode.app/Contents/...
0
votes
1answer
62 views

Recovering OS X partition after FFFF volume error and gpt add error

I am currently running a 2014 13'' rMBP. I recently tried to delete a Bootcamp partition in Disk Utility. When I tried to reboot my system, it did not boot OS X (Mojave) and instead could only boot to ...
1
vote
3answers
112 views

What do you call the OSX Window Server, Window Manager, and Desktop Environment?

In Linux we have three layers that represent the Window Server, Window Manager, and Desktop Environment. All of those three layers have more than one competing technology. I'm confused when talking ...
1
vote
1answer
50 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)....
-1
votes
1answer
57 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 ...
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
370 views

How can I screen share/VNC to a Linux system (Ubuntu 16.04) from my MAC (10.11)?

I'd like to use screen sharing/I'd like to VNC to a Linux OS desktop from my Mac. Mac OS version: OS X El Capitan, 10.11.15A2301. Ubuntu version: 16.04.5 LTS. I have my Mac configured to accept VNC ...
1
vote
1answer
25 views

Ignore entire folder using du -I

I tried to ignore an entire subfolder of the current folder when running du: du -I=./subfolder -sh This, however, gives me the grand total size of the current folder as if the -I never worked. I ...
1
vote
1answer
56 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
0answers
39 views

Is it possible to duplicate and rename an application?

I tried to do this: ➜/Applications$ cp -R Atom.app OtherAtom.app but opening OtherAtom just basically opens Atom. It does not produce another application in the command tab menu. Maybe I need to ...
0
votes
1answer
872 views

Easiest way to transfer files from iPhone to Linux?

What's the easiest way to transfer files from an iPhone to a non-Apple computer such as one running Linux?
0
votes
1answer
23 views

Ubuntu not booting after cloning (OSX and Kali)

the task was too simple - I had a 256gb ssd with OSX (apfs) and Kali (osx booted with Alt pressing and Kali booting on default - I suspect GRUB was operating). I think there was a problem after ...
1
vote
0answers
43 views

How can I enable graphics on local macOS from remote Linux using SSH?

host: Ubuntu 64-bit local: macOS 10.13 64-bit I'm attempting to run a program on a remote Linux machine through ssh, and I want the GUI to appear on my local macOS laptop. When I execute ssh -v -X ...
0
votes
1answer
40 views

Modifying `whatis` to return error code for missing commands

Followup to "whatis" returns 0 for missing commands, I am trying to modify /usr/bin/whatis to return a non-zero exit code after an inappropriate command has been entered. My approach to ...
2
votes
1answer
391 views

Giving instructions to an executable in UNIX?

I'm pretty new at this, so excuse me if this is too easy. The thing is, I have a bunch of instructions stored in a text file named: 'FTIG_dldStruct.txt' and I want to write them all into an executable ...
1
vote
0answers
438 views

Making Uninitialized APFS Volume Bootable

Recently I installed Ubuntu on my MacBook Pro (Mid 2012) on a second volume. I wanted to change to the Ubuntu Volume through Startup Manager and used this tutorial to do so: Installing Ubuntu on Mac ...
2
votes
2answers
727 views

How can I create a new user through terminal macOS 10.14

I am trying to write a script to add a user to a computer. These will not be admin accounts and should be staff accounts. I ran the following script and can login to the account but I can't access any ...
1
vote
1answer
60 views

“whatis” returns 0 for missing commands

On macOS 10.14, using whatis on a command that is not installed prints 'command': nothing appropriate as is expected. But returns 0 instead of an error code, which I believe is expected behavior. It ...
0
votes
1answer
415 views

Why can I open a connection on port 80 for 0.0.0.0 but not other forms?

My understanding of Linux/MacOS (I think they are the same in this regard) port permissions is that ports 1-1024 are only available to root, but above that, they are available to anyone. However, I'...
1
vote
1answer
74 views

Any Pitfalls in Replacing gcc and g++ With GNU Versions?

I understand that Clang is the default and recommended compiler for MacOS. By default macOS has binaries for gcc and g++ in /usr/bin/ which are same as clang and clang++. What are the possible issues ...
0
votes
1answer
68 views

Removing Files after Successful Extraction unrar rm shopt globstar

shopt -s globstar for f in **/*.rar; do dir=`dirname "$f"`; unrar e "$f" "$dir" && rm -frv "${f::-2}*"; done From echoing out testing the rm command, the file is the correct path. I ...
2
votes
1answer
576 views

Finder shows different file size compared to terminal

I have a folder called 'objects' in my mac. When I check the contents of it in the terminal it's showing like this. Clearly object folder shows 4.1K However when I see it in the finder, It shows, ...
0
votes
0answers
58 views

Sort output of tmutil compare by file size

tmutil compare gives differences between two backups. But I wonder how do I sort the output by file size? With GNU sort, there is the --human-numeric-sort option for this, but the sort which is part ...