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
1 answer
18 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 ...
user avatar
  • 11
0 votes
0 answers
21 views

C library documentation [closed]

Is there anything like the GNU Info or HTML manuals for the glibc, but covering the Darwin libc? I realize that most normal use will be covered by POSIX and related standards, but of course those ...
user avatar
0 votes
0 answers
25 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 ...
user avatar
1 vote
0 answers
23 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 ...
user avatar
1 vote
0 answers
21 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 ...
user avatar
1 vote
1 answer
51 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 ...
user avatar
1 vote
1 answer
143 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 ...
user avatar
1 vote
1 answer
341 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&...
user avatar
1 vote
1 answer
39 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 ...
user avatar
2 votes
1 answer
52 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 ...
user avatar
0 votes
1 answer
537 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 ...
user avatar
2 votes
1 answer
126 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 ...
user avatar
  • 23
0 votes
0 answers
22 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 ...
user avatar
  • 101
0 votes
0 answers
40 views

MacOS to Ubuntu Samba share no progress

I have a samba share on a local ubuntu server setup. I am able to login to from macOS and have even made sure I can save files to it such as a test.txt with some content and editing some files in the ...
user avatar
  • 131
0 votes
1 answer
39 views

Is there a way to restrict a process with certain name from spawning?

Upon launching, the Reverso app spawns two processes - Reverso (the app itself) and the annoying Reverso Helper, which occupies the menu bar with its icon and remains active even after cmd+Q -ing the ...
user avatar
  • 1
2 votes
2 answers
259 views

Equivalent of AppleScript "with administrator privileges" in shell

Recently I have had to make some changes on my Macbook that required me to not only have just sudo privileges but root privileges. When I searched how to do this the answer which seemed most ...
user avatar
  • 21
1 vote
1 answer
74 views

How to delete line 7 in a file in Bash with sed?

How to delete line 7 in a file in Bash? I tried $ sed -i '7d' ~/demo error:sed: 1: "~/demo": command a expects \ followed by text
user avatar
  • 21
0 votes
0 answers
38 views

How do I auto script "su admin" as a non-admin?

I can auto script "sudo su" logged in as an admin in terminal with: echo 'pa$$w0rd' | sudo -S su If I'm logging in as a standard (non-admin) user on Big Sur, I need to first login as "...
user avatar
15 votes
3 answers
2k views

What are the downsides of putting GNU coreutills first in ${PATH}?

I'm coming from Linux to macOS, and many of my scripts assume GNU versions of the utils provided in GNU coreutils. I could just put the GNU coreutils bin directory in earlier in $PATH than /bin. Is ...
user avatar
  • 281
0 votes
0 answers
26 views

Which IPC signals are mapped by default to the keyboard on a macbook?

Which of the posix IPC signals are mapped by default to keyboard combinations on MacOS on a macbook keyboard? The MacOS manual lists the signals, but not keybindings. For instance these appear to be ...
user avatar
  • 101
3 votes
0 answers
45 views

Keychain is broken system-wide after tampering with System.keychain

After some frustrations with a half-broken login keychain, I eventually found myself deleting System.keychain and hoping that it would regenerate with defaults. This was a terrible move in hindsight — ...
user avatar
4 votes
1 answer
503 views

How to recover from a renamed /etc directory in Mac OS Monterey (causing inability to log in)

I unintentionally renamed the /etc directory on a Mac running macOS Monterey, with disastrous consequences: the password for sudo in Terminal is no longer recognised (because the /etc/sudoers file can ...
user avatar
  • 161
3 votes
1 answer
98 views

Dual boot Ubuntu - macOS Issue

I installed Ubuntu in dual boot on my Mac without using rEFInd. Initially everything worked fine, I could access both systems. Later, in an attempt to remove Ubuntu, I deleted a partition I had ...
user avatar
  • 33
0 votes
0 answers
60 views

Cannot Boot From Anything Other Than MacOS [duplicate]

I wanted to install Linux on my Mac. I made USB installers (with Rufus from my PC and Etcher) but when I boot from it, it shows an error: The version of macOS on the selected disk needs to be ...
user avatar
0 votes
1 answer
47 views

Using sed steam editor to replace a specific string of regular and special characters

Using the command line utility sed stream editor, how can I replace the following string of regular and special characters ' with a single quote ' For example, I want to replace ' with ...
user avatar
0 votes
0 answers
13 views

How to launch Chrome on an iPad from a connected Ubuntu machine?

I have an Ubuntu computer that has a web server running (ex localhost:8080). Assuming the iPad is logged in and connected, I would like to remotely launch Google Chrome with the desired address/port. ...
user avatar
  • 101
0 votes
0 answers
91 views

My Ubuntu dual boot Mac is not recognizing my trackpad, mouse or Wi-Fi

I dual-booted my Mac laptop with Ubuntu. This worked (after a lot of trying), but it will not recognize the trackpad, keyboard, or Internet. Under the Bluetooth section, it says "No Bluetooth ...
user avatar
0 votes
2 answers
105 views

Sharing from macOS with Linux guest

I need to share a directory from macOS and access it from Linux. What is my best option, SMB or AFP (I am not mentioning NFS because I read of its poor performance)? I need support for extended ...
user avatar
  • 115
0 votes
0 answers
516 views

Error when creating Kerberos ticket: "unable to reach any KDC"

Do you know why I have this message when I use kinit? kinit: krb5_get_init_creds: unable to reach any KDC in realm LOCAL, tried 0 KDCs Thanks.
user avatar
  • 1
1 vote
2 answers
107 views

Macbook Air Can Not Start After Trying to Remove Ubuntu

I was trying to remove Ubuntu (dual boot) from my 2017 Macbook Air. Now my computer can not start successfully in either macOS or Linux. When I restart it, it now opens refind, then gnu rnu in both ...
user avatar
7 votes
2 answers
955 views

Does macOS support physical terminals/teletypewriters?

Unix systems in their early days originally outputted to physical teletypewriters. Since macOS is a Unix system and is derived from NeXTSTEP and BSD, is this still possible in modern versions of macOS?...
user avatar
2 votes
0 answers
37 views

How can I format an iPod touch (5th gen)?

I want to use Ubuntu 20.04, not a Mac or Windows os to format my iPod. It is a 5th generation iPod touch that I want to reset. I don't care about recovering/downloading the data, I simply want to be ...
user avatar
0 votes
0 answers
107 views

Keyboard/Trackpad not working when Booted into LiveUSB

tl;dr The Built-In Keyboard and Trackpad only works on 1st party bootable software but won't on anything 3rd party like linux. Model is MacBookPro12,1 (Early 2015, 13" Retina). Keyboard and ...
user avatar
  • 1
0 votes
0 answers
19 views

Is there a way to get linux/Ubuntu shortcuts for a Mac [duplicate]

Is it possible to use the same keyboard layout and get rewrite all shortcuts to be identical to a linux/unbutu machine on an apple machine?
user avatar
1 vote
0 answers
48 views

After upgrade to Catalina getting error " gfind: failed to read file names from file system" when running glocate

I have installed GNU findutils via Homebrew and I use glocate to create a locate database. The following command worked perfectly under macOS High Sierra: sudo gupdatedb --localpaths=/ --prunepaths=/...
user avatar
  • 1,198
0 votes
1 answer
60 views

Would like to resolve the error message in mac terminal everytime I open it. It runs for almost a minute everytime terminal is opened

Mac terminal displays the following message every time I open. It runs for a minutes and more than 1000 lines long. What is the problem and how to resolve it? At the end of the message, the XQuartz ...
user avatar
1 vote
0 answers
72 views

How do you ignore volumes in lsof?

When I run lsof I get this warning: lsof: WARNING: can't stat() smbfs file system /Volumes/.timemachine/DS920._smb._tcp.local/D218965D-0155-4757-AB63-B9036A3B29C8/Time Machine Backup - MyName ...
user avatar
4 votes
2 answers
249 views

The word "box" isn't in /usr/share/dict/words

I was testing some code that I wrote to solve the New York Times' "Letter Boxed" game. The other day, it was giving results that included compound words containing "box" (e.g., &...
user avatar
0 votes
1 answer
217 views

In an Ubuntu VM setup through vftool on M1 Mac, the arrow keys and ⌘+V keys are not working

I have setup an Ubuntu VM on and M1 Mac using vftool. The VM loads and works, however on Ubuntu, in a terminal, the arrow keys and paste (⌘+v) are not working. In place of arrow keys it prints ^[[C, ^[...
user avatar
  • 11
0 votes
0 answers
209 views

How do I import my KDE Konsole color scheme to iTerm2?

I've spent many moons adjusting my default Konsole color scheme in KDE, and I would like to use it in iTerm2 on my Macbook Pro. I have the Konsole color scheme file ardnew.colorscheme, and I currently ...
user avatar
  • 53
1 vote
1 answer
100 views

Using CURL command to press an HTML button (speed test)

I’m trying to use a Linux CURL command to press a “Start Test” button on a Speed Test website in order to grab the speed data. Context: I’m using this approach rather than installing the speedtest-cli ...
user avatar
  • 15
0 votes
0 answers
15 views

How to share Bluetooth keyboard between two OS

I have an apple Magic Keyboard and PC with Windows and Kubuntu installed simultaneously. After changing OS I need to reconnect keyboard. How can I fix it? I use USB Bluetooth Module.
user avatar
0 votes
0 answers
32 views

Partitioning Mac Catalina SSD drive in order to dual boot Ubuntu

I'm trying to partition my Mac Catalina hard drive in order to dual boot Ubuntu. Everything is set up for the install except the partition. All the guides that I read say to partition the internal ssd ...
user avatar
1 vote
1 answer
833 views

Dual boot mac with ubuntu boots from refind into grub instead of ubuntu

Here is what I have done so far: I wanted to dual-boot my mac with ubuntu. I did this following the classic guides, except instead of clicking on the installer I opened it with the command "...
user avatar
0 votes
0 answers
25 views

How do I grant permission to edit a file on an SD card? [duplicate]

I flashed Ubuntu server to an SD card on my MacBook Pro with the Raspberry Pi OS flashing application. I want to edit the network-config file to put in the WiFi information. When I view this file in ...
user avatar
6 votes
1 answer
4k views

"The operation couldn't be completed"/"Operation canceled" error message when saving to a Samba share via Files app

I'm using the Files app on my iPhone and iPad to save photos to an SMB network share provided by Samba on an Ubuntu 20.04 server. Since around iOS/iPadOS 14.5, trying to save a new file to the share ...
user avatar
0 votes
0 answers
126 views

Booting Linux on an 2006 iMac [duplicate]

I have removed a hard drive from my 2006 iMac and installed Ubuntu on it from another computer. However, after putting it back in the iMac, it is not able to boot. I am getting a question mark instead....
user avatar
0 votes
0 answers
41 views

Samba shared between MacOS 11.3 and Debian 10 : password incorrect

On Big Sur 11.3 Big Sur, I do a CMD+K in Finder to connect to my Debian 10 Samba server named "pablo": But impossible to enter the right password, I am systematically rejected by the ...
user avatar
1 vote
1 answer
101 views

Remove comma at end of line in sed on MacOS?

I created a file in TextEdit on the Mac called stuff.txt: stuff and stuff More stuff Stuff with a , in the middle Stuff with a comma at the end, More stuff If I run this command: cat stuff.txt | sed '...
user avatar
0 votes
0 answers
168 views

Macbook Air 2019 Black Screen USB Boot

I flashed my USB with an ISO and when I tried to boot the USB, I was given a black screen. I checked to see if it was just improperly flashed, but the USB would boot up on my other laptop just fine. ...
user avatar

1
2 3 4 5
21