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

File permission problem updating a .swift file on macOS from Windows 10 on same LAN

On MacOS 13.2.1 in my work folder I execute: sudo chmod -R a=rwx * Finder > file's Get Info > Permissions become: Name "myMacAccount" Privilege "read & write) Name staff ...
  • 165
0 votes
0 answers
15 views

Wifi adapter BCM4355 not recognized on Parrot OS [migrated]

I've installed Parrot OS in dual boot and everything works fine. When I check the internet connection, it doesn't show any adapters. I have a MacBook Air with a Wi-Fi adapter: BCM4355 802.11ac ...
0 votes
0 answers
17 views

How to improve performance for MacOS Screen sharing to Ubuntu vino-server?

I'm using MacOS Screensharing client to connect to the built-in vino-server on Ubuntu 20.04 LTS all on my local gigabit LAN. It connects reliably, however performance is pretty bad, almost unusable. ...
0 votes
0 answers
131 views

VMware Fusion Ubuntu is stuck on black screen and can't load anything

I am using VMware Fusion to open up an Ubuntu VM on my Mac. The screen currently just shows up as a black screen and doesn't load anything. I have access to VMware Preferences but can't access the ...
1 vote
1 answer
28 views

How to save input of `less` to file as explained in the man doc?

I'm trying to save the piped input to less to a file as explained in the man doc: s filename Save the input to a file. This only works if the input is a pipe, not an ordinary file. However, ...
0 votes
0 answers
36 views

Mac won't accept SSH traffic despite being set to allow remote access to all users

I am trying to ssh -v user_name@host_address from Linux to a Mac and I get this output: OpenSSH_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017 debug1: Reading configuration data /etc/ssh/ssh_config debug1: /...
0 votes
2 answers
36 views

Encrypt PDF on Linux, decrypt on Mac? (in 2023)

There are many tools available for the Linux user to encrypt a file: Encrypting/Decrypting a single file in Ubuntu 12.04 LTS. I want to… encrypt a single PDF on my Linux OS, email it to a non-...
  • 1
1 vote
1 answer
77 views

I was trying to delete Ubuntu from my MacBook Air and now I can't access macOS

I had installed Ubuntu on my MacBook, but I don't need it anymore so I was trying to delete the parts of Ubuntu. When I entered Disk Utility the minus button was greyed out, so I checked some videos ...
  • 13
0 votes
1 answer
70 views

Why is b0VIM 9.0 is in my Mac Terminal PATH

I recently noticed that this is in my mac $PATH variable. Does anyone know why or what it is? A little googling indicated that the name b0VIM is a VIM swap file. Why would it be in my mac path? Is ...
  • 103
0 votes
0 answers
24 views

Can I connect my Mac Pro laptop's keyboard and touch pad to my other linux laptop? [duplicate]

This would seem weird but is it possible to connect my macbook pro's keyboard and touch pad so that I can switch between laptops easily ?
0 votes
0 answers
15 views

How to programmatically change audio output to built in speakers ALWAYS [duplicate]

I've seen answers like these but what I'm trying to do is programmatically ALWAYS set the audio output to built-in speakers regardless of which row item the Mac is currently tuned to. In the code ...
0 votes
0 answers
66 views

Run Linux system in bootable USB but very slow on Mac laptop

I install the Linux (Ubuntu 22.04) in the USB 3.0 drive by my MacBook Pro (Retina Early 2015 13"), but when I open Linux, everything is slow. For example, when I open Firefox, I need to wait 5 ...
  • 1
1 vote
1 answer
56 views

how to transfer a directory from a macbook using rsync to a windows wsl ubuntu directory

I have an updated copy of my home directory on my Macbook that I would like to replicate in my Windows 11 WSL Ubuntu machine (in its ext4 file system). I would like to use rsync to do so, if possible....
3 votes
0 answers
52 views

how to recover from chmod 777 -R /

So I ran sudo chmod 777 -R / on my iMac. Now it won't boot, and around 2 hours ago I restarted the system hoping to gain access to recovery mode, but the loading bar is stuck in the exact middle and ...
1 vote
2 answers
49 views

Macos not searching Ubuntu file share

I have a ubuntu server 22.04 setup and it is sharing files using samba. The mac computer can connect to it and use the files just fine. My problem comes in when i try and search for a file or folder ...
0 votes
0 answers
25 views

If statement not working properly in automator

I can run 2 separate chmod commands (1 for files & 1 for multiple folders) that work correctly in Apple's Automator, but when I introduce an if statement to run both commands, it doesn't include ...
0 votes
1 answer
862 views

How to install Ubuntu terminal on macOS? [closed]

I am new to macOS, and I was using Ubuntu for more than a decade. Now, I switched to macOS and I am wondering how to get Ubuntu terminal on macOS? Does anyone here know how to convert macOS terminal ...
2 votes
0 answers
70 views

Is there a suitable alternative to mlocate for macOS?

I would like to replicate the functionality of mlocate (not findutils) from Linux in macOS. I've tried the following alternatives, but each has its own downside: findutils: only world-readable files ...
0 votes
0 answers
37 views

How to come out of screen session on a remote server?

I am not able to recall I used to do it in past. I am connecting to a remote linux machine from my MacOS. I could create the session by running screen S sessionname but unable to come out of it ...
  • 465
1 vote
1 answer
213 views

hdiutil within "darling" can't do anything but "attach" and "detach". Can it be improved or something else?

When I run hdiutil within Darling I get: Darling [/Volumes/SystemRoot/home/user]$ hdiutil Usage: hdiutil <action> Possible actions: attach [options] <file> Mounts a .dmg file &...
0 votes
1 answer
460 views

MacBook Air M1 dual boot from external SSD

I have a MacBook Air M1 512 Gb and I want to be able to use Linux (Asahi), since it's necessary for my university. However, I don't want to use internal space and I thought that I could maybe use an ...
0 votes
1 answer
89 views

2019 T2 I9 MacBookPro - linux boot external drive

I have a triple boot set up on T2 Macbook Pro. macOS, Windows 10, Arch Linux boot off of the internal NVMe drive, which works fine. I also have an external TB enclosure Orico with a NVMe drive set up ...
  • 141
1 vote
1 answer
232 views

How do you turn on write blocking to USBs on a Mac?

I'm trying to capture a forensic image of a USB stick using Linux dd on my Macbook. I'm having trouble turning on write blocking to the USB stick before taking the image. In Windows you use a ...
0 votes
1 answer
51 views

Apple Watch app to trigger shell scripts on remote UNIX box

I've finally switched from a Pebble Smartwatch to an Apple Watch, and I need a replacement for this app: https://store-beta.rebble.io/app/568a4cfa496916a93f00004e The watch displays a list of shell ...
  • 6,965
1 vote
0 answers
36 views

Fusion Drive split after removing the SSD and HDD from a iMac with a broken power supply / logicboard

Recently, my iMac just turned off and did not start anymore. After countless tries, I opened the iMac and removed the SSD and HHD (Fusion Drive) in the iMac in order to rescue my data. I am not really ...
0 votes
1 answer
205 views

Dual boot MacBook Pro 14.1 w/ Mojave/Ubuntu 22.04 won't set permanently macOS as default boot option after each Ubuntu session

I just installed Ubuntu 22.04 on a partition. I'd like macOS 10.14.6 to be the default system to boot and having the possibility to choose Ubuntu only if I hold option key to get into the Mac startup ...
0 votes
2 answers
84 views

Identify "UNIX-specific directories" in macOS

According to Apple's File System Programming Guide, macOS includes so-called UNIX-specific directories: The directories in this category are inherited from traditional UNIX installations. They are an ...
0 votes
0 answers
78 views

MacBook keeps booting into Linux even if I press Option key

I have a MacBook Pro 2017 13-inch (no touch bar) that does not let me boot into macOS. I tried these few key combinations: CommandOptionR and CommandControlR, and it still does not work.
2 votes
1 answer
1k views

rEFInd bootloader doesn't launch on start

I installed rEFInd bootloader from Sourceforge, and run the install script. Everything seems to be successful. The install output is ShimSource is none Installing rEFInd on macOS.... Executing: /usr/...
1 vote
3 answers
269 views

Bash: Remove lines from text file starting after a matched row? (AppleScript ok)

I have these horribly formatted text files that look like this: Heading FIELD_DELIM TABS VIDEO_FORMAT 1080 FILM_FORMAT 35mm, 4 perf AUDIO_FORMAT 48khz FPS 24 Column Name Tape Start ...
1 vote
0 answers
342 views

Can I share my Linux PC's internet to an iPad over USB?

I have a similar question to one asked here I have an iPad with iOS 15.6 and want to share my Linux (Ubuntu 22.04) Desktop PC's internet with it over an USB cable. First of all, Is it possible? If so, ...
0 votes
1 answer
73 views

Assuming two notebooks have American keyboards, one of them is a GNOME and the other macOS, how to handle input in Brazilian Portuguese symmetrically?

I have two computers: (i) My old one: DELL XPS 13, American Keyboard, running NixOS (Linux distribution) and GNOME Desktop Environment (ii) My new one: A MacBook Air M1, American Keyboard, running ...
0 votes
1 answer
214 views

How can I install the Cantarell font in MacOS Monterey (12.5)?

I am trying to install the Cantarell font Software from GNU. I am running a Macbook Air M1 with Monterey 12.5. They provide instructions: python3 -m venv venv . venv/bin/activate # Unixoids... venv/...
0 votes
3 answers
338 views

List folders with size and number of files

I'm trying to clean up my files and I'm struggling with some command line stuff. With the command du -sh * I can get a nice list of all folders where I use the command. How can I also get the number ...
1 vote
2 answers
110 views

When i press "CTRL + C" at "caffeinate -i" I get a non 0 exit status. Why?

If I press CTRL + C at caffeinate -i I have a non 0 exit status. My terminal prompt shows me with red x that the previous command had a not 0 exist status. Why is that?
  • 3,625
0 votes
1 answer
148 views

How do I add/permit "staff" to this folder? "chgrp -R staff dir_name"

For some reason, there isn't "staff" user group on a folder that I just created. I would like the to add/permit "staff" user group to read and write in this folder. How do I add/...
2 votes
1 answer
2k views

Remote desktop connection from Linux to Mac (RDP style)

I have Linux computer with two screens and (going to have) MacBook laptop with one screen. Both on the same LAN. I'd like to connect from the Linux computer to the Mac and work on the Mac using my two ...
  • 121
1 vote
2 answers
1k views

Permissions issue with shared folder using SMB. macOS can't open Linux files, but Linux can open macOS files without issue

Why can't the macOS machine open any files in the shared folder that were transferred from the Linux machine? The permissions seem to be correct. The shared folder is located on the macOS machine / it ...
1 vote
1 answer
52 views

Time machine won't recognize Lenovo laptop plugged in via USB to USB-C cable

I have a Lenovo laptop, running Ubunutu 14.04 LTS, and I want to connect its hard drive to my MacBook Air running MacOS Catalina 10.15.6. I have them connected via newly bought USB to USB-C cable, but ...
  • 13
0 votes
0 answers
127 views

2020 MacBook Air, no mouse or trackpad control when dual booting Linux

I've recently tried to dual boot macOS Monterey and Linux onto my Mac, but it's not going too well. I've tried different types of Linux (Mint and Ubuntu all the newest versions) and have created the ...
1 vote
0 answers
117 views

Esc key of a Apple Magic external keyboard doesn't work in Linux and Windows

I'm using a Mac Bluetooth keyboard (model A1314) in my Ubuntu Budgie 20.04.3, and it is fine except for the Esc key. Sometimes it works properly, others it doesn't work and others I need to press 3-5 ...
1 vote
0 answers
49 views

How to reinstall Mac OS X from Ubuntu [duplicate]

I bought a 2010 iMac (iMac11,2) at an op shop today, to upgrade from my 2007. All fine, except it's (solely) running Ubuntu (turn it on, you hear the Mac boot up sound and a second later it's the ...
1 vote
1 answer
131 views

Using Find, Execdir, and Grep all in one command

I'm trying to use a shell script to: return all .mov files in a given directory without path, file names only filtering out dot-underscore files from results separate each result by \n but haven't ...
1 vote
1 answer
2k views

Startup Manager doesn't show bootable USB drive so as to install Linux

I'm trying to install Linux Mint LMDE 4 on an Intel iMac, OSX 10.6.8. The iMac has a 2 GHz Core 2 Duo with 1 GB of 667 MHz DDR2 RAM. The iMac doesn't recognize the USB drive when I plug it in and ...
1 vote
1 answer
1k views

How to boot Kali Linux on a Mac without using Grub?

I am trying to install Kali Linux on an external hard drive. I downloaded the kali-linux-2022.1-live-amd64.iso file and checked with shasum -a 256 kali-linux-2022.1-live-amd64.iso. I am using a 13&...
1 vote
1 answer
78 views

Issue reinstalling macOS Mojave after failed Ubuntu installation

I have a MacBook Pro 15 on which I tried to install Ubuntu 20.04 as my host OS. However, the installation has failed. Whilst waiting for the Linux forums to help me out with the installation, I am ...
2 votes
1 answer
410 views

Change boot option icons

I have a Mid 2012 MacBook Pro with two hard drives with a triple boot system High Sierra Windows 10 and Ubuntu. High sierra is on the SSD while windows and Ubuntu share another drive. Would like to ...
0 votes
1 answer
759 views

How do I stop my mac from running all these processes?

My computer has around 400 processes, and I have no clue where they come from. It is taking up an immense amount of space and preventing me from running many programs. I've tried a lot to kill ...
2 votes
1 answer
272 views

macOS (& BSD?): Why won't "ls -R" from root directory list files in a subdirectory?

macOS 10.15.7 (Catalina) cd /usr/bin ls grep grep However... cd / ls -R grep ls: grep: No such file or directory Why? Workaround? If I use ls -R / | grep grep that "brute force" approach ...
  • 23
0 votes
0 answers
42 views

Where can I find a community that is dedicated to getting MacBook Pro laptops running Linux distributions, such as Ubuntu?

I have had some success in getting some 5-10 year old Mac computers running Ubuntu but nothing after 2018. I would very much like to join a group of hackers that make this process easier as I continue ...
  • 101

1
2 3 4 5
22