Skip to main content

All Questions

Tagged with
9 questions with no upvoted or accepted answers
4 votes
0 answers
305 views

Matching bracket selection on gnome-terminal, like Mac OSX terminal

I have recently fallen for a (non obvious) feature of the Mac OSX terminal: Given a display of some kind of deeply nested text with lots of matching brackets, parenthesis, or quotes (ie. JSON), the ...
codysehl's user avatar
  • 348
3 votes
0 answers
2k views

Why does this netcat pipeline work in macOS but not Linux?

I set up the following pipeline. This allows me to see the raw HTTP requests and responses that pass through the pipeline. Note: I use BSD nc below (this is what comes with macOS and AmazonLinux), ...
Josh Cooley's user avatar
1 vote
0 answers
746 views

macOS: How to switch default rsync with a MacPorts version

The default version of rsync (2.6.9) provided with macOS Sierra, High Sierra and Mojave does not work well with newer installations of rsync (3.1.x). For example using rsync -x on a remote machine ...
Levi's user avatar
  • 121
1 vote
0 answers
1k views

See output command terminal history in zsh terminal

I'm in an edge situation and I really need to retrieve some generate random value I executed last week in iTerm through the command: cat /dev/urandom |LC_ALL=C tr -dc 'A-Z9' | fold -w 81 | head -n 1 ...
Enot's user avatar
  • 111
1 vote
1 answer
2k views

Unable to write to NFS share, Finder hanging

I've a issue with an nfs share : this is my setup : /etc/exports : /home/delaland/sharetest 111.111.111.111(rw,all_squash,anonuid=1000,anongid=100,sync,insecure,no_subtree_check) all needed ports ...
Vincent Duprez's user avatar
0 votes
1 answer
426 views

How do I use sed to parse a string that includes hyphens?

Input example: foobar_1-1 1024 x 1024 Desired output foobar_1-1 The hyphen is causing issues here. It's causing the output to be two items in the array: foobar_1, 1 Any advice?
Patrick Hennessey's user avatar
0 votes
1 answer
684 views

How to use the lastb command from Mac terminal?

In bash on mac, when trying to list recent bad logins, the lastb command is unrecognized, while it works fine on my Linux machine. Does it need to be installed or is it a different command for macs?
pretzlstyle's user avatar
0 votes
1 answer
436 views

Cat and/or echo several things into one file on "one command line"

I know we can do things like this: stat -f%z mybigfile > RELEASENOTES.txt and echo "bytes" >> RELEASENOTES.txt Now RELEASENOTES.txt will look like this: 47556304 bytes How can I get "...
Jonny's user avatar
  • 555
0 votes
2 answers
344 views

Mac OS .bash_profile errors

I'm running Mavericks 10.9.5 and I have tried to install Metasploit from this guide. It was until the Install Homebew I used echo PATH=/usr/local/bin:/usr/local/sbin:$PATH >> ~/.bash_profile ...
Renzo's user avatar
  • 1