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)

1
vote
0answers
37 views

How to use the stdin as a file

I have a command that wants a file as input, but I get the input from the stdin and I don't want to create a temporary file. I would like to do the following: #!/bin/bash osadecompile /dev/stdin <...
0
votes
0answers
30 views

How to rename files in external hard drive in Mac

I am trying to use Terminal to rename my file, but it always says permission denied. I have tried the following: sudo chmod u+wrx test.txt mv test.txt test2.txt it doesn't work. So, I try to check ...
0
votes
1answer
35 views

Passwordless (key based) SSH Access to a Linux system from a MAC?

New Edits: So I went back and did some significant testing and revised my opinions about my problem a little. First, here's a link to a thorough and quickly graspable diagram of the SSH Handshake (...
0
votes
0answers
28 views

what are Squamariaceae and Marcgravia processes which consume lot of cpu on macOS Mojave

I rencently found that two processes called Squamariaceae and Marcgravia where launched every now and then on my laptop and I wonder about their purposes. Indeed, I had never seen them before and ...
1
vote
1answer
27 views

macOS version file

This is kind of a weird one, does anyone know what contains the information of the version of macOS? is it written to some file? If so where does the file reside and can it be edited to a different ...
2
votes
1answer
14 views

How to install ocx file to wine

I am using Mac OS 10.14.5, and I am trying to run an exe file. So I did brew install wine. Then, using wine to run the program yields the following error: 0009:fixme:actctx:parse_depend_manifests ...
1
vote
1answer
15 views

Sugar on a Stick install from MacOS

Help! Has anyone recently made a bootable USB for Sugar on a Stick (SoaS with Fedora 30) using a Mac? Is running a Fedora VM and doing there the right thing to do?
1
vote
0answers
21 views

temporarily suspend/disable FileVault

Is there a way, or does anyone know of a way to temporarily disable or suspend File Vault disk encryption? I know fdesetup disable will decrypt the entire disk (which i don't want), but is there a way ...
1
vote
2answers
47 views

sed find and replace string

I have these lines in multiple files: <update>2013-02-10</update> <version>1.15</version> and I want to replace them with (new date and version): <update>2019-06-30<...
0
votes
3answers
67 views

Comparing two .csv files and write into 3rd file

so i have two files file1.csv (about 4000 rows) 1234 yxds 4352 fsfk 8765 fdgj 7874 hffe 9038 fjro 8297 fhjs and file2.cvs (about 50 rows) 1234 "number" "date" "OS" 4352 "number" "date" "OS" 8765 "...
1
vote
0answers
23 views

Difficulty with configuring paths before compiling

I'm running MacOS Mojave 10.14.2 with Homebrew and MacPorts installed; I'm attempting to install the dsniff suite via the command line, and I installed Xcode's command line tools for this purpose--I ...
0
votes
1answer
41 views

Prevent cronjob's from writing to /var/mail/$USER?

In macOS, cronjobs configured with crontab have the command output and/or error messages (if the cron doesn't succeed) written to the /var/mail/$USER file. Can this be prevented? I've tried: * * * * *...
3
votes
2answers
73 views

Sort file by group of lines

If I have a file with contents similar to: FirstSection Unique first line in first section Unique second line in first section SecondSection Unique first line in second section ...
0
votes
1answer
39 views

Command to list all user accounts as well as their last logged in information?

I am using this line of script to return back the list of my user accounts on a Mac via Terminal: dscl . list /Users | grep -v '_' While it returns the list of all user accounts, I also need for it ...
0
votes
0answers
36 views

Mac OS X with a Dell Vostro 3770 [closed]

Bought an USB Stick for an Dell Vostro 3770 (setup guide) with an Intel Duo Core CPU, but not sure if VM will stay the only option, as rEFInd knows the Stick but not getting bootx64.efi. I tried both ...
1
vote
1answer
43 views

How to multiboot on 1 drive: Android desktop fork, Windows 10, Lubuntu, and Mac OSx?

The problem I want to have 4 OS, an Android OS preferably Phoenix OS, Lubuntu, Windows 10, and Mac OS X on one hardrive in a similar manner to a dual boot just having 4 instead of 2. Specs Model # ...
0
votes
3answers
40 views

Assign $pwd to $PATH variable conditionally

I want to add my current working directory with its project-specific bin directories to my $PATH when the directories are present. So I added these lines to my .zshrc: [ -d "$(pwd)/vendor/bin" ] &...
1
vote
2answers
42 views

how to change the path of vim command

I have two versions of vim installed on macOS: a default version, /usr/bin/vim, and MacVim (via Homebrew), /usr/local/bin/vim. When I type vim, the default program is invoked. I want to use MacVim ...
2
votes
3answers
59 views

On a Mac, how can I list contents of a non-current directory without showing backup files (ending with ~), preferably with BSD command ls?

My system: OS: MacOS / Mac OS X (Mojave 10.14.5) OS core: Darwin (18.6.0) Kernel: Darwin Kernel / XNU (18.6.0 / xnu-4903.261.4~2/RELEASE_X86_64) ls: version unknown, but man ls gives a page from the ...
-1
votes
1answer
10 views

how to download ebi fastq link via command line using wget/curl

I have loads of data (fastq) to download from ENA database. Example: ERS076383 ERS012262 ERS160574 ERS349280 etc Link to download via browser: https://www.ebi.ac.uk/ena/data/warehouse/filereport?...
1
vote
2answers
57 views

Ctrl + U deletes whole line regardless of cursor position

I am learning terminal tips. In this tutorial, the guy says that Ctrl + U deletes everything from the cursor until the end of line. In my case, it always deletes the whole line. I am using zsh on ...
-1
votes
1answer
57 views

Is dd on OS X the same as the UNIX version?

Although I considered asking this question in apple.stackexchange, my gut tells me the 'NIX crowd is more likely to produce a better response. In what ways is the dd (OS X version) command any ...
0
votes
2answers
49 views

Sort and mv files based on filename (with spaces), recursively

I have made a mistake and dumped files together into the same directory. Luckily I can sort them based on the filename: ''' 2019-02-19 20.18.58.ndpi_2_2688_2240.jpg ''' Where the # bit or 2 in this ...
1
vote
3answers
44 views

Remove character pattern at beginning and end of filenames

I have a bunch of files that I'd like to rename. Their filenames are in a certain format: p1.uniquenameA#blah_a p2.uniquenameB#blah_b p3.uniquenameC#blah_c p4.uniquenameD#blah_d p5.uniquenameE#blah_e ...
0
votes
2answers
27 views

How to remove a particular part of the filename for multiple filenames in macOS

I have these files in a directory. Mabel-A10_GTAGAGGA_L001_R1_001.fastq.gz Mabel-A5_GGACTCCT_L001_R1_001.fastq.gz Mabel-A11_GCTCATGA_L001_R1_001.fastq.gz Mabel-A6_TAGGCATG_L001_R1_001.fastq.gz I ...
1
vote
1answer
50 views

Accidentally overwrote .py file, can the original be retrieved?

I have a python file named initialization.py. When trying to copy-paste contents into a blank file, I used ctrl + x to copy/cut, closed the original file, and accidentally used ctrl + x again in the ...
0
votes
0answers
22 views

Fetching the IP address on OS X Mojave

I used this command to fetch the IP address of my workstation (running OS X 10.14.5 ) in a script, but I am wondering if somebody out there/OS X has a better solution. ifconfig en0 | grep netmask | ...
1
vote
0answers
53 views

Unbuffer converting all characters to bell?

When I pipe a large-ish output through unbuffer, all I end up getting is an endless stream of the bell character (u0007). See here, a 1631-character string of arbitrary content piped through unbuffer ...
2
votes
3answers
42 views

wc -l to count lines all txt files in folders and subfolders

I have a few hundred txt files in several subfolders and I would like the count the lines in each txt file. I can do this for all txt files in the current directory by using: for f in *.txt; do wc -l ...
1
vote
0answers
21 views

Output defined variables in current session

In the terminal I define the following variable: TEST_MY_VAR="something" echo $TEST_MY_VAR # output: something I expect this to be added to my current session. If I open a new terminal and try to ...
4
votes
1answer
79 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
20 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) ...
1
vote
1answer
44 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
24 views

SSD migration partitioning planning [closed]

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 ...
1
vote
1answer
38 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
54 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
19 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
37 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
19 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
37 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
66 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
66 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
37 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
73 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
23 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
45 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
125 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 ...