osx's questions - English 1answer

1.617 osx questions.

In Unix (running MacOS High Sierra), I've seen a few different search/replace (over several files) methods, e.g.: perl -pi -w -e 's/SEARCH_FOR/REPLACE_WITH/g;' *.txt or using sed or grep, etc. The ...

How do I display images in the terminal? I am on Mac OSX mountain lion (10.8.5), and the answers in this question don't work on OSX. Is it possible at all?

I have a 100 GB of xml doc that I'm migrating to a database in waves. In vim, I can edit the file, but I'm unable to save changes with :wq, :q or :xx. I get the error message this file is read only - ...

I'm attempting to recover anything possible from a known-bad hard disk (failing, or failed). I began with dd and realized I didn't unmount. After unmounting volumes, I was able to correctly begin the ...

I've looked at the hexdump of both libc.dylib and xlib.dylib, and I can't find the symbols for the C functions in those libraries within those files. I figure they should be in there, because I've ...

After installing the last MacOS Sierra update, I lost my camera on Facetime and Skype, and in web apps; the name of the camera to be selected simply stops appearing on those apps, it is as if I do not ...

I am trying to test out the renice command on my Mac, it seems to be having no effect. This is how I'm testing it: I have a dual core CPU with hyper threading, so I run 6 instances of node -e 'while(...

This works perfectly well on any Linux : $ echo foo bar | sed -n '/foo/{/bar/{;p;}}' foo bar But fails on OSXs ancient BSD variant : ❯ echo foo bar | sed -n '/foo/{/bar/{;p;}}' sed: 1: "/foo/{/...

In GNU/Linux in order to split file into 4 equal chunks we can do something like: split temp -n 4 PREFIX_ But seems like the macOS' BSD version of split utility doesn't have -n option. What would be ...

My MAC OS is Yosemite 10.10, which has an old version of curl. I have installed Xcode and Xcode command line tools. I run cURL with the "sudo" command as “sudo curl”: sudo curl Password: ...

I want to remove files that have not the string '999' (without the '') in their name. I have tried: grep -vlr 999 . | xargs -0 rm -f -- find . -print0 | grep --null-data -v 999 | xargs -0 rm -- But ...

I tried defaults write com.apple.finderShowAllFiles true, and I got this error message: 2018-05-12 12:51:23.974 defaults[4095:111392] Rep argument is not a dictionary Defaults have not been changed. ...

I just wanted to execute the command ntpdate without typing in a password so I edited the sudoers file via Emacs editor. I simply added one line of code at the end of the file Boris Boris-MacBook-Air....

So I'm running ubuntu from a thumb drive that's plugged into my Mac. I want to access some files from the Mac harddrive while I'm booted into ubuntu, but when I click on the MacOSX harddrive to locate ...

I'm trying to install the wireless drivers because my macbook pro does not have a ethernet port, then I mount the 3 debian isos like local repositories to install the almost all of dependeces. So, ...

I have just installed the 'vagrant-vmware-fusion' 5.0.4 official plug-in from HashiCorp, in Vagrant. I am using Vagrant with VMWare Fusion 10 running in High Sierra. However, when doing the vagrant ...

Okay, so after dual-booting the Macbook(High Sierra)and installing Kali, I'm only getting prompt with the Kali Linux GRUB boot loader, which lists only one OS(Kali), when booting. I firstly made ...

my file contains lines like this: 1 10241 rs960927773 POS=10241;VP=0x05;GINFO=DDX11L1:100287102;R5;ASP I would like to remove everything from column 4 beginning with POS and ending ;GINFO= I think ...

[EDIT] SOLVED! I uninstalled vmware-tools and I'm able to switch to the proper resolution without it reverting back to the HiDPI mode. Preface: Linux Mint 18.3 VMWare Player 14 MacOS HighSierra ...

I'm on a mac and I'm using iTerm2, although this still happens in Apple's terminal. This doesn't happen in bash or any other prompt. Changing my fish_prompt doesn't affect this. I have no idea what's ...

So I got SSD with macOS X on it and HDD with just files. Can I install Debian on the second one as second OS and still use HDD as storage when using macOS?

my file looks like this (column 4 holds the duplicates): 1 14874 rs552113149 DDX11L1:100287102|WASH7P:653635 1 14877 rs879239454 DDX11L1:100287102|WASH7P:653635 1 16682 rs12405913 WASH7P:...

I am removing stop words from a text, roughly using this code I have the following $ cat file file types extensions $ cat stopwords i file types grep -vwFf stopwords file I am expecting the ...

I'm trying to curl HTTPS website in the following way: $ curl -v https://thepiratebay.se/ However it fails with the error: * About to connect() to thepiratebay.se port 443 (#0) * Trying 173.245....

Given the file with numbers from 1 to 100 (seq 1 100 > dataset.txt), and the pattern file with numbers from 1 to 20 (seq 1 20 > patterns.txt), I would like to to print all exact matches from ...

I'm looking for some standard way to get all installed packages in my Linux machines, but I'd like to achieve it independently of the distro. I found some very good answers here for some specific ...

I am trying to make a masterQueue for Chromecast. It will enable inter-app queuing. I am stuck with few network basics. I am using an older cast sdk because it provided Java API. It could be very ...

I have a machine that is outside a local network. The network is done via WiFi router. The machine is connected to one of the computers in network. So it doesn't see the network's ARP packets. I can ...

My sound volume control does not work when I'm logged in with my regular user, though the sound works correctly. What's weirder is that the sound control works when I'm logged in as guest. With my ...

I'm trying to automate cleaning up old vim undo files that are for files that have since been deleted. So far I've created a new vim script at ~/.vim/autoload/cleanupUndos.vim: function ...

so despite my numerous attempts at getting Dnsmasq to work, I'm posting here to get some help from the community. Summary: I'm trying to get all .local domains to automatically resolve to localhost or ...

I'm using mac OS (10.13.4). I somehow have a mail server running and able to send email from katie@katie.local by using the command echo "mbody" | mail -s "msub" "to_email@gmail.com" Although email ...

Background: I'm a student, and currently the Wi-Fi connection at my school is very slow (dead slow). I have an 8Gb 4G data-plan, but even with that, I'm running short at the end of the month. I ...

I have read that you can use the terminal command xxd -b to see the binary of a file. I used this command and it does show the binary but has non-binary listed to the left as line numbers and non-...

By default ifconfig will show me all available interfaces , but what if I just want to display active ones? Like, en0 only in below. en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST&...

How do I mount an SD card?

1 answers, 8.192 views mount osx
My SD card will suddenly not automount. It works on another Mac. Can someone provide a solution to mount with Terminal? $ diskutil list /dev/disk2 #: TYPE NAME ...

I know you can set or unset the hidden flag of a folder/file by doing chflags hidden foo.txt and chflags nohidden foo.txt. But is there anyway of telling whether the folder/file is currently hidden ...

I am using expr to incremement a number that comes from a file. Although the following works: NUM=$(expr $(grep customer file.txt | cut -f4 -d' ' | sort -n | tail -n 1) + 1) I am not sure if ...

TL;DR: Is this $PATH string backwards if I'm trying to source python 2.7 from the homebrew-installed version? $ echo $PATH /Library/Frameworks/Python.framework/Versions/3.4/bin:/Library/Frameworks/...

I confess I am not an expert on unix commands but I moved a file to another directory and got an error message - yet the file was moved. Why is this message 'mv: rename to to /Users/billtubbs/Library/...

Related to another question I asked here [https://unix.stackexchange.com/questions/253932/rename-folder-with-odd-characters] I'm wondering if it's possible to bypass the normal rm/rmdir/unlink ...

I have a folder on my Mac called "␀␀␀␀HFS+ Private Data". I'm trying to delete it but it contains a bunch of odd characters that are choking unlink, rm and mv, making it difficult to remove it and ...

I'd like to separate record by first word (eg DEBUG or INFO) and keep RS. but execute program, awk removes RS. How to keep it? log.txt is DEBUG:[2018-04-09 13:00:01] ========================= ...

I was just thinking about the rm -rf * command. The rm command removes any files following it, the -rf bit indicates to extend the rm command to include directories, and * means everything. So, I ...

So I have a Mac which I installed smartontools, to see my smart data. And I thought that smartd would be helpful in doing short tests on my Mac SSD But I found out via Google that smartd only runs ...

I'm using OSX terminal and trying to extract specified text of log file by regex. awk version is GNU Awk 4.2.1, API: 2.0 (GNU MPFR 4.0.1, GNU MP 6.1.2) Copyright (C) 1989, 1991-2018 Free Software ...

Working on OS X Yosemite (v10.11.5), I'm unable to mounst a Debian installer ISO (debian-8.5.0-amd64-CD-1.iso on Debian download page). I get this error... $ hdiutil mount debian-8.5.0-amd64-CD-1....

I'm trying to extract multiple lines of log by regex. but log file is large so I getting hard. (about 10GB).. I tried several ways but can't get wanted result. please give me your advise. 1st ...

Wondering if anyone has run into problems with X11 forwarding over SSH does not render GUI correctly on MacOS? I only see partial screen: I have MacOS high sierra 10.13.3 and latest XQuartz 2.7.11 ...

I have an idea for what I want to do, but am not sure exactly what to do. I want to curl http://www.bostonglobe.com/sports/tvradio/listings then somehow display a table on this page. The table is <...

Related tags

Hot questions

Language

Popular Tags