Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I need get network info on the Mac from terminal prompt, in linux I usually get this
info by profiles
Thanks to #doon,
Here is the solution
netstat -ib | grep -e "en1" -m 1 | awk '{print $10}'
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
The below cmd works only for the static file or feeded data that exist; however to copy output for the running services like top cmds, I didn't find any source in MAC.
top | pbcopy
Is there any tweak for it?
In order to pipe the output of the top command we have to set the number of samples to 1. In MacOS this can be done as follows:
top -l 1 | pbcopy
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I installed bash in my Anaconda prompt, and this is what I'm seeing:
bash-4.3$
and I would like to see something like:
zzzz#zzvdhdc/users/xxx/myactualdirectory
use \w for the current directory:
PS1='\w $'
see man bash for more options to change your promt.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
Should I pipe ps -ax | grep <name> | grep -q <longername>, or is there a nicer method? PS, the second grep in my example is to remove the first grep process from the output.
Thanks
In Linux there exists a command for that, it is called pgrep. On Ubuntu it is in the package procps together with pkill.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
I cannot seem to find anywhere how to open a specific port on OS X Yosemite. I understand that I can use 'Little Snitch' in order to open a port, but I would love to do it from the command line.
This is for a Firewall port.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
This morning an Oh-my-zsh update.
Since then, each time I launch my terminal :
grep: unrecognized option `--exclude-dir=.cvs'
Idem when I try to use git-flow
any idea ?
Grep versions lower than 2.5.3 do not have this option. Try to upgrade your grep, or comment out the lines
for PATTERN in .cvs .git .hg .svn; do
GREP_OPTIONS+="--exclude-dir=$PATTERN "
done
at .oh-my-zsh/lib/grep.zsh line 9. Then it works fine again.