Stack Exchange Network

Stack Exchange network consists of 175 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 [osx]

The command line and other Unix-like aspects of Apple's macOS (Mac OS X)

3
votes
0answers
46 views

Move/copy millions of images from Macos to external drive to ubuntu server

I have created a dataset of millions (>15M, so far) of images for a machine-learning project, taking up over 500GB of storage. I created them on my Macbook Pro but want to get them to our DGX1 (GPU ...
0
votes
0answers
15 views

SSH control socket not working inside alpine-linux container on OSX

If I run the following on the Linux or Mac OSX host, I have no problem: # ssh -i id_rsa -MS ./ctrl -fTN -p22 -l root example.com # ssh -S ./ctrl -O check example.com Master running (pid=23384) ...
0
votes
0answers
18 views

MacOS freeze on starting [on hold]

When I click turn on button on my MacBook, computer turns on. System starts and loads. But when a progress bar will go to end, system make white screen and freeze. How I can repair it ? I read ...
1
vote
1answer
37 views

Burning a Linux Ubuntu bootable USB with dd

I am installing Linux on a machine and got the Ubuntu 18.04 LTS image. I formatted a 32 GB Sandisk drive on macOS with MS-DOS (FAT) format and GUID Partition Map scheme. I found the name of the disk ...
0
votes
1answer
22 views

SSD migration partitioning planning [on hold]

Objective I have used Linux tools to modernize older systems with SSD drives: format & partition new SSD (gParted) migrate OS + apps (clonezilla, ) I am seeking to upgrade a Macbook Air ...
0
votes
0answers
7 views

Mouse Hover Not Working [migrated]

This may be a simple question, but for a long time now Safari has not registered when my mouse is hovering over something (e.g. hover over a youtube video to show the progress bar, hover over a link ...
1
vote
1answer
34 views

Find hostname of Mac OS client for NFS /etc/exports (permission denied)

I'm trying to set up an NFS server to browse files from a remote Ubuntu server on a Mac client. I'm having trouble finding out what to put as my client hostname/address in the /etc/exports entry. I ...
1
vote
1answer
44 views

OS X security blocking brew installation of python

Running Darwin Home 18.5.0 Darwin Kernel Version 18.5.0: Mon Mar 11 20:40:32 PDT 2019; root:xnu-4903.251.3~3/RELEASE_X86_64 x86_64 Trying to finish updating python... but failing to link it cause of ...
10
votes
3answers
2k views

What does i386 mean on macOS Mojave?

I'm on a second-hand MacBook Pro from late 2013 (Mojave 10.14.3) and when I type arch on the Terminal, I get back i386. Shouldn't it be a x86_64? Did the seller misrepresent the item? Please see the ...
0
votes
0answers
18 views

What does @ symbol mean in file permission? [duplicate]

I started encountering the following problem when I was trying to delete a set of files when I started seeing the following error on my MAC with macOs, Mojave. "The operation can’t be completed ...
-1
votes
1answer
29 views

Error EOF Syntax Error

-bash: /Users/tj/.bash_profile: line 17: syntax error: unexpected end of file This is currently at the top of my terminal window. I need to fix this error. I have deleted the last line out of my bash ...
0
votes
0answers
18 views

ctrl+h,j,k,l not working when ssh to linux cluster

My local workflow is to use CTRL + H to move to the left vim pane, and the other usual directions CTRL + J, CTRL + K, and CTRL + L to move to other vim panes. My setup works great on my local machine....
0
votes
1answer
25 views

sh: d2j-dex2jar.sh: No such file or directory

I'm trying to use dex2jar to extract a .jar file from my .apk. I have downloaded this version: https://github.com/pxb1988/dex2jar And followed the instuctions: sh d2j-dex2jar.sh -f ~/path/to/...
0
votes
0answers
24 views

script to prompt for password for encrypted disks

I have a headless Mac mini running Darwin 15.6.0, which has several encrypted disks attached. Since it's headless, after reboot, I need to ssh in to the box, and enter the passwords for the drives. ...
2
votes
0answers
47 views

Unable to mount Mac's EFI partition from Ubuntu Live USB

I've tried to mount my mac's EFI partiton while using an ubuntu live USB, however I get the following errors: ubuntu@ubuntu:~$ sudo mount /dev/sdb2 /mnt/efi mount: /mnt/efi: /dev/sdb2 already mounted ...
1
vote
1answer
64 views

How do I boot back into my MacOS?

I had a 32GB partition for Ubuntu and then the rest for MacOS. I no longer wanted my Ubuntu partition so I formatted the partition on my MacOS. I think the boot loader must've been on that partition ...
0
votes
1answer
33 views

Can't get SSH daemon running on macOS

The server is running macOS Mojave 10.14.4. I'm unable to get the SSH daemon to start. After logging in locally, I run: $ launchctl list | grep ssh - 0 com.openssh.ssh-agent $ ps -A | grep ssh ...
0
votes
0answers
26 views

User with nearly all admin permissions but not allowed stop a single app or to delete its relevant files

How can I create a user on macos who has nearly all permissions of admin user, but is not able to stop a binary whitelisting/blacklisting system (https://github.com/google/santa) from execution nor is ...
0
votes
2answers
57 views

find exec does not work with command aliases?

macOS Trying to do a find with a -exec of a command aliased in my .bash_profile , find shows find: [alias cmd]: No such file or directory e.g. find ./ -iname *.doc -exec sha256 {} \; where alias ...
1
vote
1answer
22 views

zip excludes certain js files for no apparent reason

Trying to build a zip package for AWS Lambda that runs a node app. I'm using OSX zip to package the lambda bundle like this: zip -dg -q -FS -R function.zip index.js "*.json" node_modules However, ...
0
votes
2answers
36 views

log show command output manipulation

Following is a command executed on macOS high sierra. **`Command`** log show --info --predicate 'process="jamf" and eventMessage contains "Informing the JSS about login for user"' --start 2019-04-...
3
votes
3answers
72 views

How do I open the current directory in a new tab?

My environment Terminal.app 2.9.4 on macOS zsh 5.7.1 When I used bash, Terminal could open current directory in a new tab, but it have not been able to do that since I changed to zsh. In the app ...
-1
votes
0answers
30 views

How do I get the sunlink flag for chflags to work on MacOS?

Does anyone know how to apply the sunlink flag to a file with the MacOS chflags command? Because even when I use su it still says operation not permitted, as if I were not the superuser. I used su, ...
0
votes
0answers
20 views

macOS High Sierra “log show ” ouput

The log show command output from a macOS High Sierra is detailed below: **Command 1** log show --info --predicate 'eventMessage contains "system boot:"' log: warning: ./system_logs.logarchive ...
1
vote
0answers
17 views

Unblocking websites using /etc/hosts

I cannot unblock certain websites that were previously blocked from /etc/hosts. Here is what the file looks like: 0.0.0.0 facebook.com :: facebook.com 0.0.0.0 youtube.com :: youtube.com When I ...
1
vote
0answers
33 views

QEMU: How to convert -net flags into -device & -netdev

I'm trying to emulate Raspberry Pi via QEMU and the following works for me: qemu-system-arm \ -append "root=/dev/sda2 panic=1 rootfstype=ext4 rw" \ -boot c \ -cpu arm1176 \ -drive "...
0
votes
1answer
33 views

Parsing “mdls” output

The following script takes a user input (path to a mounted macOS volume such as /Volumes/Macintosh\ HD/) #!/bin/bash # Author: Swasti Bhushan Deb # macOS 10.13.3 # kMDItemWhereFroms.sh read -e -p "...
1
vote
1answer
16 views

Configuring a MacOS-based rpmbuild to deliver platform-independent RPMs

I need to build an RPM for a Java software package on MacOS. I'm using rpmbuild from homebrew, version 4.14.2.1. The toolchain is set up correctly, and I get a valid RPM at the end. There is just one ...
1
vote
0answers
29 views

how to remove leading space in command line argument [duplicate]

I am losing my mind here.. have tried every combination of functions that strip whitespace but I can't get rid of this particular whitespace I want to write a convenience alias so that typing runit ...
1
vote
1answer
66 views

Creating directory tree based on file name

I have a large number of files with the following structure: [Lion] 2015 Africa Book.pdf [Lion] 2015 Africa Magazine.pdf [Lion] 2016 Africa Book.pdf [Lion] 2016 Africa Magazine.pdf [Lion] 2015 Asia ...
1
vote
1answer
19 views

MacOS: Changing screen capture location

I make a lot of presentations that involve many screenshots, and I want an easier way to organize them by project. I'm trying to write a simple function that changes the location where screenshots are ...
1
vote
2answers
58 views

Combining two outputs using AWK

I have a bash command (on macOS High Sierra) as: sudo cat /private/var/log/system.log*| awk 'BEGIN {print "\n"} {print "Month\tDay\tTime\t\tSystemMessage"} /SHUTDOWN_TIME/{print $1,$2,$3,$8}'|sort -...
0
votes
0answers
12 views

Kernel task with very large amounts of data written

While looking for something else completely different, I saw this a tase “kernel_task”; it seems to be writing an outrageous amount of data.
1
vote
1answer
27 views

I'm using iTerm to run the command line on my mac. Its in a mode I don't recognize

I like to use iterm on my mac. Recently when I open iTerm or a new tab, it's in a mode I don't recognize. whenever I start typing a command, iTerm lists all previous versions of that command. see ...
1
vote
1answer
31 views

Output of a command going in background on Mac

I have an issue on my Mac. HQSML-1584960:puppet rmoham860$ git diff [2]+ Stopped git diff HQSML-1584960:puppet rmoham860$ jobs -l [1]- 37022 Stopped (tty output): 22git diff [2]+ ...
0
votes
1answer
19 views

Viewing the system.log.0.gz under /private/var/log in macOS

Am trying to view the contents of a system log -system.log.0 ,system.log.2 using macOS terminal .The logs are located under /private/var/log (macOS) I have tried zcat,gunzip etc.but with no fruitful ...
0
votes
1answer
45 views

Can you hide files and folders on MacOS the same way as Linux?

I'm trying to make a Python script that creates a hidden folder for a specific file I'm creating across any platform. I'm aware you can do this easily with Linux by placing "." as the beginning of a ...
0
votes
0answers
17 views

Rewrite files last modified date

I have a folder of contents which I wish to archive. Each file has a different last modified date. Is there a way to change the last modified date of all the files to a specific one from the past? I ...
0
votes
1answer
41 views

How do I prevent a __MACOSX from being created when I extract an archive that I created on MacOS?

From commentary in "Rewrite last modified date when unzipping archive": I have a ZIP archive that I created on MacOS. Whenever I use bsdtar xmf file.zip or unzip -DD file.zip to extract it a new ...
0
votes
1answer
49 views

Rewrite last modified date when unzipping archive

Is there a way to rewrite the last modified date of all the files inside a .zip file to the date of extraction? Basically, whenever someone unzips the archive, the last modified date of all files is ...
0
votes
1answer
72 views

sed inline and extended regex does not work together

I am trying to replace an extended regular expression using sed on macOS 10.14.3 (18D109). If I do not use the extended regular expression then the inline flag works otherwise it does not update the ...
1
vote
1answer
20 views

Bash script which would return the total space occupied by files inside a macOS diectory [duplicate]

Am trying at create a bash script which would return the total space occupied by files inside macOS diectory ~/Pictures/Photos\ Library.photoslibrary/Masters/. #!/bin/bash # AUTHOR:SWASTI BHUSHAN ...
6
votes
2answers
590 views

Loop in macOS not working

I need to execute the following shell script in my macOS terminal. The loop never executes more than its first iteration. function execute_function() { # Launch job number_of_jobs=$1 echo "...
0
votes
0answers
28 views

show history of curl requests including executing user or program?

Little Snitch just told me that curl made a silent connection to tools.google.com. I'd like to know why. is there a way to get the history of commands on my system including who executed them?
0
votes
1answer
63 views

MacOS,no swap commands?

Usually on various unix flavours for swap we have Those commands to see swap usage and activation of swap On Linux free swapon/off On Hpux swapinfo swapon/off On AIX swap ...
-2
votes
1answer
61 views

Can't grant myself permissions to use the rm command

I have a user account on my machine: $ (whoami) foo_user I've updated by /etc/sudoers file to grant myself permissions to use the rm command: User_Alias OPERATORS = foo_user Cmnd_Alias RM ...
1
vote
2answers
37 views

How to copy files with certain extensions keeping the path from remote to local machine via scp --parents?

I want to copy all *out from various subdirectories from my remote account to my local machine my trail is scp --parents -r @remote:~/path/*out . this trail doesn't work I am wondering about the ...
0
votes
0answers
28 views

Mimic command on Linux

I find it really useful when using osx to have the Control key freed up to use emacs-like shortcuts in most applications, but in Linux it tends to be used for shortcuts instead. Is there a way to ...
0
votes
0answers
11 views

How to globally install dylib created by clang on MacOS

I have this in my Makefile: test: @clang -shared -fpic -O2 -install_name libasdf.dylib -o libasdf.dylib asdf.c @cp -f asdf.h /usr/local/include @cp -f asdf.dylib /usr/local/lib ...
3
votes
1answer
56 views

Can ZFS subvolumes contain other filesystems?

I want to format a subvolume with a filesystem other than ZFS, since a program I use needs certain File System features ZFS doesn't have (Portal 2 on macOS has File System constraints). APFS has a ...