Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
1answer
13 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 ...
0
votes
0answers
15 views

Reinstall vmware fusion and vm cannot run

First I explain why I reinstall vmware fusion: ubuntu on vmware fusion cannot detect my external hard disk. This forum tells me to reinstall the vmware fusion while my security is unlocked(for more ...
-1
votes
0answers
63 views

Batch compress files with same name, and also grab the images folder

I have folders that contain pairs of html and js files with the same name. But I also have an images folder that needs to be included in each zip, as it contains the bitmaps the js file calls. This ...
1
vote
0answers
22 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
37 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
385 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
36 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 ...
0
votes
1answer
56 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
45 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
49 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
43 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
24 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
262 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
32 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 ...
3
votes
0answers
187 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
2answers
99 views

When switching from Mojave to Ubuntu, then back to macOS, I cannot reinstall Mojave

I had to switch from macOS to Linux momentarily for a short project and now that I'm done, I want to go back to macOS. Prior to installing Ubuntu on my Mac, I was running Mojave as my OS. I tried ...
2
votes
1answer
36 views

Determining unknown filesystems from OSX

Years ago I set up a Linux-based multimedia PC for my parents to store all their music and movies on, as that's the OS I use on my home computers and so if/when things went pear-shaped I'd be able to ...
0
votes
1answer
46 views

How do I format a big disk (4TB) for use in both macOS and a Raspberry Pi?

I need to setup a big hard disk (4TB) so that I'll be able to use it in both macOS and in a Raspberry Pi. Up to now all my attempts failed - at the moment I have formatted it so that it uses GPT, ...
0
votes
1answer
98 views

booting linux from external drive on mac

I had Linux installed on USB using pure EFI boot. I had been using this tutorial. Everything was working flawlessly to the moment of installing Windows using Mac Boot Camp. Now I don't see the EFI ...
0
votes
1answer
66 views

Need help making Windows bootable after installing Linux

I used this questions's answer to install Linux(I installed Mint, however, not Ubuntu) and followed along. I do believe I didn't follow the answer properly, as I still have a placeholder partition ...
0
votes
1answer
150 views

How to split CSV file by Column values into multiple files on a Mac? awk?

HELP!!! Trying to split a csv file admin_bids_view.csv into multiple files. The CSV has 2000 rows and 7 columns. I would like a new file per ID number in column 1. Example data below: Have tried ...
3
votes
2answers
60 views

Terminal: how to use `at`?

Could someone provide some example usages for the at command? I'm finding the man super confusing. $ man at For example, if we wanted to run a command 10 minutes from now, can this be done using at?...
0
votes
1answer
17 views

Format Linux partition USB SD

I have a Transcend SD Card 256GB I was installing CentOS in one partition of my SD Card, testing the OS in my MacBook Air. Now I can't remove the partition and restore my SD. sh-3.2# diskutil list /...
0
votes
1answer
28 views

Can't get iMac to stop booting Ubuntu

I've just inherited an iMac from a departed coworker. It is a 27" unibody model with sandy bridge i5 (not slim, so, from mid 2011). It came automatically booting Ubuntu 18.04.1 LTS as its default OS ...
1
vote
1answer
22 views

Read a Linux Disk in MacOS?

I have a two-disk NAS in RAID 1 that's not cooperating. I tried taking one of the disks out and plugging it into my iMac via a USB enclosure to copy the files off of it, but MacOS can't read the disk. ...
0
votes
1answer
48 views

How to properly remove a Linux partition without messing up your drive?

I know this seems like an beginner / dumb question, since an obvious answer would be: Open Disk Utility Remove Linux partition However it seems that it might not be that easy, and that following ...
1
vote
1answer
216 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, ...
0
votes
1answer
41 views

Dual booting Mid 2012 Macbook Pro multiple SSDs Errors

I have an old Mid-2012 Macbook Pro. I replaced the the old HDD with a new SSD and removed the optical drive and replaced it with another SSD. I migrated everything from the old HDD to the new SSD ...
2
votes
3answers
34 views

Hidden ‘in use’ file preventing Office MAC 2011 uninstall

I am moving from Mac Office 2011 to Office 365. After running the uninstaller, An invisible file in the Excel package, Microsoft Office > Microsoft Excel > Contents > Resources > En.lproj > Help > Art ...
1
vote
2answers
719 views

How do I delete qmasterd in Incompatible Software folder?

I have this pesky file "qmasterd" that has been moved to the "Incompatible Software" folder by the macOS Installer. It must have been lying around on my Mac from years ago when I had Final Cut Pro v6 ...
0
votes
1answer
64 views

Where is lynx.cfg stored on mac?

I would like to configure my lynx installation but need the /etc/lynx-cur/lynx.cfg. Where is the stored on a mac? I essentially just did. brew install lynx
0
votes
1answer
262 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 ...
1
vote
0answers
633 views

Linux on Mac, dual-boot without rEFind EFI issues

So I followed the instructions here This actually worked great. I was able to install ubuntu and the dual boot is working, however, in my startup window I have a dummy Windows option that boots to ...
1
vote
1answer
27 views

Get out of booting into Ubuntu on multi-OS Mac

I installed Ubuntu on my iMac (Retina 21" late 2015) alongside macOS and rEFInd. Now, I believe the iMac boots automatically to Ubuntu in console mode. I tried a lot of combinations of keys, but ...
4
votes
3answers
2k views

Install ffmpeg on iPhone

Can I use ffmpeg on my iPhone and edit videos in my camera roll with it?
2
votes
1answer
571 views

Is there anyway to use GNOME terminal on macOS?

Can I download GNOME terminal on macOS?
1
vote
3answers
827 views

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

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 ...
1
vote
2answers
175 views

Triple-booting Ubuntu on MacPro w/ Win10 and High Sierra (two separate drives)

I am running a 2009 MacPro (5,1) with two separate hard drives: on one, I've installed MacOS High Sierra. On the second, I used Bootcamp to install Windows 10 (legacy/BIOS, not EFI), then installed ...
2
votes
1answer
2k views

Command line to find bluetooth device's MAC address [duplicate]

Is there a way to get the MAC address of the Bluetooth device in my Mac? I am using a MacBook Pro running macOS High Sierra. I am looking mainly for macOS but the command could also be for another ...
0
votes
2answers
112 views

Boot Camp keeps booting to Ubuntu instead of Windows

I have a macos and Windows 10 already installed. I went ahead and installed ubuntu via EFI, and I think I really messed something up. Every time I boot and select Windows it goes to the purple ...
0
votes
1answer
21 views

Replace string with new line + string in a big file

I need to replace the string ),( with )\n,( in a 10GB file. The \n in this case obviously stands for a newline. I've tried so with this command: sed -i '' '/),(/ s//),\n(/g' bigfile.sql However, ...
0
votes
0answers
32 views

Time machine tells me UID or GID have changed but they don't seem so!

Using tmutil compare to show the changes between the latest snapshot and the current state of the disk, I am told that most of, if not all, my files had their UID or GID changed. Here is one line from ...
1
vote
1answer
48 views

Create symlinks in time machine backup?

I have a time machine backup /Volumes/MyTimeMachine/Backups.backupdb/MyMachine. Exactly as Apple creates a Latest symlink pointing toward the latest snapshot, I would like to create symlinks toward ...
1
vote
1answer
464 views

Endpoint has been activated through legacy launch on Mac Mini

Asking this here as I don't think it's a Linux problem. My Mac Mini sits on a desktop and is the 'central authority' for all of my backups. I have nine Linux virtual machines on a server on which ...
1
vote
1answer
24 views

What process is using UDP port?

I am trying to install a server that needs to use the port 3052 and it's not working. I have a feeling another process has that port. I see: % netstat -anv | grep 3052 udp4 0 0 *.3052 ...
0
votes
1answer
146 views

Which filesystems support symbolic links?

I'm copying a big archive of files from a Linux host to an external USB hard drive, that will then plug into a macOS host. The copy should preserve the archive's many symbolic links (ln -s). What ...
2
votes
2answers
366 views

Can't open a PDF from Terminal on Mac because it ‘couldn't get a file descriptor referring to the console’

I tried to use the command: open <filename.pdf> but the message I got was Couldn't get a file descriptor referring to the console What can I do?
0
votes
1answer
74 views

bsdtar gives (Empty error message) when trying to extract an ISO

On High Sierra 10.13.6 (17G65), trying to bsdtar -xf something.iso fails with: bsdtar: (Empty error message) bsdtar: Error exit delayed from previous errors. I have plenty of disk space left and ...
4
votes
0answers
2k views

MacOS Startup Disk error: “Running Bless to Place Boot Files Failed” (triple boot, MacPro 4,1 -> 5,1)

My question is, how do I add a (properly-booting) Ubuntu volume to High Sierra's "Startup Disk" Menu? Running MacOS High Sierra, Windows 10 (Legacy, not EFI), and Ubuntu 18.04 (triple-booting on a ...
1
vote
0answers
148 views

su -fm nobody asks for “Old Password”

Why would "su -fm nobody" prompt to change the nobody password on one MacOS system but not on others? I am curious about this because system scripts such as locate.updatedb that run as the ...