Archiv des Autors: jbox-admin

Linux: Dateien in Unterverzeichnissen nach Text durchsuchen

Search sub directories recursively using grep

Pass the -r option to grep command to search recursively through an entire directory tree. With this option one can search the current directory and and all levels of subdirectories by passing the -r or -R to the grep command. The syntax is:

grep -r 'word-to-search' *

 

 

grep -r 'main()' *

The following example would search for /etc/ and all of its subdirectories for every line containing the ip address ‘192.168.1.254’:

grep -r '192.168.1.254' /etc/

macOS Crash-Meldungen auf dem Desktop deaktivieren

Do note that turning off the Crash Reporter dialog window has no effect on crash reports, which are still visible in system logs and the Console app. It simply stops the window appearing in the Mac OS X GUI.

 

 

How to Disable Crash Reporter Dialog Box in Mac OS X

You can disable the Crash Reporter dialog box by launching the Terminal and entering the following command:

defaults write com.apple.CrashReporter DialogType none

and you can reverse this to show the Crash Reporter again by entering the following at the command line:

 

defaults write com.apple.CrashReporter DialogType crashreport

 

von http://osxdaily.com/2010/02/15/disable-the-crash-reporter-dialog-in-mac-os-x/

python-version bei macPort festlegen

To make this the default Python or Python 2 (i.e., the version run by the

‚python‘ or ‚python2‘ commands), run one or both of:

 

    sudo port select –set python python27

    sudo port select –set python2 python27

 

##############################################################

# IF YOU ARE USING PYTHON FROM THE TERMINAL, PLEASE INSTALL:

#   py27-readline

# TO AVOID A LIBEDIT / PYTHON INTERACTION ISSUE.

# REF: https://trac.macports.org/ticket/48807

##############################################################