Skip to main content

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

Mac syslogd event descriptions [duplicate]

On Macs which are based on BSD linux, the Mac utilities Console app gives system.log events (often as ASL events). I add this info as it was requested. For those who know Darwin, this question is ...
41 votes
5 answers
19k views

How can I inspect the environment variables of a running process?

Is there some equivalent (CLI or GUI) to Linux's /proc/$PID/environ feature?
1 vote
1 answer
23 views

Network and local search showing "zero byte" files that don't exist, even using `mdfind`

It seems like a stale cache somewhere (local or remote or both) but I don't know where and need help understanding how to remove these references to deleted files. After doing a command+f to search a ...
2 votes
1 answer
57 views

Deleted ubuntu folder on EFI, still appears on startup

Recently I deleted my ubuntu partition on dual boot, resizing my Macintosh HD partition correctly. Moreover, I also deleted the ubuntu folder on EFI folder after I mounted disk0s1, but the problem is ...
2 votes
1 answer
167 views

Dual-Boot MacBook Pro 2015 stuck loading into GNU GRUB version 2.04

a while ago I decided to dual boot Ubuntu onto my Macbook but recently decided to remove the partition. This has caused the Mac to only boot into GNU GRUB version 2.04. While I know internet recovery ...
0 votes
2 answers
57 views

My home folder opens up Photo Booth when clicked on

For some reason when the icon for the home folder is clicked it opens up photo booth. I changed what application it uses and the finder stays open. I tried fixing permissions and checking the hard ...
8 votes
5 answers
50k views

How to properly install Kali Linux on MacBook Air (dual-boot with El Capitan)

I updated to El Capitan yesterday (on MacBook Air 2014). I then decided to install Kali Linux 2.0, and boy it's been one problem after another, so far nothing has gone the way it's supposed to. ...
1 vote
1 answer
402 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 ...
6 votes
3 answers
27k views

How many writes do I have on my 250GB SSD hard drive on my Macbook Pro High Sierra [duplicate]

I would like to know how many writes I have on my Mac's SSD hard drive? I would also like to know if there is a terminal command I can run to find out this information and how many writes I have left ...
0 votes
1 answer
1k 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 ...
2 votes
1 answer
2k views

Only Transmission traffic through VPN

I would like to use my favourite torrent client, Transmission, over a VPN service but at the same time I do not want to direct any other traffic therethrough. That is, I want to use my VPN service ...
2 votes
1 answer
438 views

Apple accessing Samba Share on Linux The operation can't be completed because the original item can't be found

I'm trying to connect to samba shares on a debian machine in the same network from a Mac running Ventura 13.4.1. It all works perfectly fine if I do CMD+K, and input the credentials there (like smb://...
3 votes
1 answer
1k views

rEFInd Linux Kernel Boot Options

When booting opensuse via rEFInd, the kernel options are wrong (the root device name is incorrect). Where do the kernel arguments that rEFInd is using come from, and how do I modify them? The line I'...
3 votes
1 answer
74 views

Where have the calendars in /usr/share/calendar/ gone?

In older versions of macOS, there used to be some Unix calendars in /usr/share/calendar/ like national calendars but also for pop culture related events (like LotR). I'm now on macOS Sonoma 14.5 and I ...
270 votes
7 answers
206k views

How to replace Mac OS X utilities with GNU core utilities?

I found there is some differences between the utility command I used on the mac OSX and linux. I want to make my experience united. How could I replace all my mac utilities with GNU utilities?
1 vote
1 answer
1k views

No bootable disk when booting Windows after installing Linux on Mac

That must the weirdest title you've read in a long time. I have a MacBook Pro Mid 2012, I installed Windows 7 with Bootcamp and all was working fine. Last night I installed Kali Linux with a bootable ...
8 votes
3 answers
8k views

Linux 'Byobu' equivelant for mac

So at home ive been a linux user for a while, and frequently use byobu in the terminal. After a little searching I was unable to find anything like it for a mac, which I now have to use at work. I'm ...
2 votes
2 answers
215 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 ...
1 vote
1 answer
217 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 ...
1 vote
2 answers
3k 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 ...
16 votes
10 answers
26k views

Where is "mkpasswd" for OSX?

There is a well-known unix utility called mkpasswd available on many *nix systems. I was just trying to use it from terminal on an OSX 10.10.5 Yosemite (Early 2015) machine, and it is nowhere to be ...
0 votes
0 answers
97 views

Install Rocky Linux 9.4 on MacBook Air (13-inch, Early 2015)

Yesterday, I decided to install Rocky Linux 9.4 https://download.rockylinux.org/pub/rocky/9/isos/x86_64/Rocky-9.4-x86_64-dvd.iso on my MBA (MacBook Air, 13-inch, Early 2015) https://support.apple.com/...
0 votes
1 answer
565 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
1 answer
81 views

sshfs under autofs from Debian 10.9 to macOS 11.0 fails, but sshfs without autofs from and to same works fine

I am attempting to set up autofs to spawn an sshfs. The autofs is on a Debian 10.9 system. The remote sshd I want it to connect to is on a mac running Big Sur. When I try to ls the intended (auto)...
0 votes
0 answers
24 views

merging of csv files has changed the date format of date column

I am using a below script to combine several files into one. awk '(NR == 1) || (FNR > 1)' InterfaceStatistics*.csv > /home/vikrant_singh_rana/nfv/merge/InterfaceStatistics_merge_file.csv files ...
9 votes
4 answers
10k views

Make macOS look like a Linux desktop

I have been developing under GNU/Linux systems for the last 10 years. Unfortunately my company is going to move developers to macOS systems soon. Although for most of the part I should be ok (after ...
16 votes
3 answers
6k views

Why does OS X add extra '._<filename>' when I tar a directory?

I'd just like to know why if I tar -czf a file/directory, OS X adds **._<filename>** for each file? I see these when I untar in Linux. Or when I work with the uncompressed project in Eclipse ...
2 votes
5 answers
366 views

Where to install folder of a command-line app in macOS, to be available by default in my shell? [duplicate]

tl;dr Goal: Easily download zip file with a console app (and other files), execute it, and later replace it with updated version. Details When I want to download a console app, with a command-line ...
1 vote
2 answers
234 views

grep doesn't give the correct offset?

Trying to get the bytes offset of a text word in a binary file (with some text here and there). I need to know the offset of this word from the beginning of the file. I'm wondering if on osx the ...
1 vote
2 answers
165 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 ...
2 votes
2 answers
2k views

Attempted to fix macOS startup volume after failed dual-boot Linux install, but failed and now original partition unknown

Attempted to install Linux on my MacBook Pro 15" 2015 one day for school, but then the install failed and I had a GRUB issue similar to this: How do I recover/fix my OS X partition?. Weirdest part ...
3 votes
1 answer
71 views

How to fix script which requires EFI System Partition (ESP) to be disk0s1 in macOS?

I see a post which is 12 years old: How to fix broken EFI partition? System: Macbook Pro 2019 with Intel & T2, upgraded to Sonoma. Objective: Dual boot with T2Linux Fedora using https://t2linux....
0 votes
0 answers
29 views

Macbook Pro (late 2016) reboots during boot but Ubuntu is fine, need help troubleshooting to get to boot into MacOS

We're trying to identify why a macbook won't boot into any MacOS or Mac related recovery mechanism and what we can do to correct this. The answer we've gotten so far is that it's the logic board, but ...
-1 votes
1 answer
145 views

ubuntu 22.04 on iMac 2012 - 27" - external screen and nvidia drivers [closed]

I am running Ubuntu 22.04 on an iMac 2012 fusion drive - to my great satisfaction. (Dual boot with OSX / MacOs Catalina) The only problem I had was that I could not get an external 27" monitor to ...
8 votes
3 answers
6k views

Where is the system wide PATH shell variable set in OS X?

I'd like to set the PATH shell variable for all users, but could not find where it is defined. Having no export PATH in my .bash_profile, I have this: /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/...
0 votes
0 answers
118 views

How to install Linux Mint on a Mac Pro 1,1

I have a 2006/2007 Mac Pro 1,1 on which I want to install Linux Mint. As I understand it, the main roadblock to doing so is the fact that the 1,1 has a 32-bit EFI and the Linux distributions no longer ...
4 votes
2 answers
4k views

Can't ping a linux server with MacOSX. Software related

I'm having an huge problem with my Mac, from months. I have at home a linux server, a CuBox. It's running Archlinux, running fine. Everything works. But the Mac can't ping the CuBox. I will paste ...
0 votes
1 answer
427 views

Mac Pro starts with folder icon and question mark, HD is empty. How to install Ubuntu?

I have a Mac Pro with an empty (no existing partitions) 1TB HD connected to it. I am using a windows USB keyboard and want to install Ubuntu on it. There is no Mac OS installed or running on this ...
136 votes
6 answers
81k views

Linux' `ps f` (tree view) equivalent on OSX?

How can I get a tree view like the one below on OSX? vartec@some_server:~$ ps xf PID TTY STAT TIME COMMAND 11519 ? S 0:00 sshd: vartec@pts/0 11520 pts/0 Ss 0:00 \_ -bash ...
4 votes
2 answers
4k views

How to install GNU base64 on Mac OS X?

I'm trying to run linux scripts on the mac, but even brew's updated base64 doesn't support -w0. I want something close to base64 (GNU coreutils) 8.22 Instead of base64 1.5 from brew or the unknown ...
1 vote
0 answers
46 views

Unknown proccess listening on udp port 53

I was trying to start dnscrypy-proxy on my local machine to listen on its private ip address for use in my homenetwork, but it fails to start saying listen udp 192.168.0.2:53: bind: address already in ...
4 votes
6 answers
17k views

How do you change your UID in OS X Mountain Lion

kimvais @ kimvais ~ $ id uid=501(kimvais) gid=20(staff) groups=20(staff),404(com.apple.sharepoint.group.3),405(com.apple.sharepoint.group.4),502(com.apple.local.ard_reports),503(com.apple.local....
0 votes
1 answer
53 views

XFCE Build Error xdt-csource.1

I'm trying to build xfce4-dev-tools on macOS Monetary. to build and install xfce4 desktop environment. im a total noob when it comes to building c/c++ programs. Following the steps - cloned the repo, ...
2 votes
1 answer
143 views

Attempt to fix macOS startup volume after dual-boot Linux partition removal

I have attempted to install Linux on my MacBook Pro 15" alongside macOS (Catalina) for a team project. Since I needed the space reserved for the Linux partition back, I have decided to remove it ...
26 votes
5 answers
39k views

Is there a way to access a USB-serial port by the device id, not by the tty.* port?

On linux USB-serial devices create two aliases to its serial port: /dev/tty* and /dev/serial/by-id/<my_usb_device_id> Is there a way on OSX to identify a serial port by the USB device id? Both ...
3 votes
1 answer
5k views

Create key, certificate signing request, p12 file and provisioning file on Ubuntu for Mac keychain

I use Ubuntu OS most of the time but I also have used OS X for quite a time and now I only use it to maintain my iOS apps. I am trying to create private key, certificate signing request for ...
154 votes
9 answers
132k views

Is there a way to convert audio files in Mac OS X or the command line without using iTunes?

Now, I know I can use iTunes to convert music. But it's quite a pain.. All I'm asking is: Is there anything built into OS X or UNIX for converting files? Right now I simply want to convert .mp4 to ....
1 vote
1 answer
330 views

How do I remove Ubuntu from my MacBook?

My MacBook has three OSs at the same time: macOS, Boot Camp Windows 10, and Ubuntu. It will display Windows, Macintosh HD, and EFI Boot (going to Ubuntu) when pressing the option when booting. I split ...
12 votes
2 answers
34k 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 ...
0 votes
0 answers
27 views

Mouse and keyboard input and audio output doesn't work in X11 window

Through some form of dark magic, I was able to make a Linux X11 QT/GTK2 (I don't know which one) application compile and run on my 2021 MacBook Pro running macOS 14.1. All the windows open fine, but ...

1
2 3 4 5
22