Remove Mac OSX's dot underscore files
Answer:
To list the dot underscore files in a Mac directory, you can use:
# find . -name '._*' -exec ls {} \;
To remove them, you can try:
# find . -name '._*' -exec rm -v {} \;
Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.
Remove Mac OSX's dot underscore files
Answer:
To list the dot underscore files in a Mac directory, you can use:
# find . -name '._*' -exec ls {} \;
To remove them, you can try:
# find . -name '._*' -exec rm -v {} \;
How to clear terminal's shell buffer in Mac OS X
Answer:
To clear your terminal's shell buffer in Mac OS X, you can use COMMAND + K
How to disable services auto startup if they are installed using home brew
Answer:
For services installed using home brew, usually they will tell you how to turn on/off auto start when you use the command, e.g.
# brew info redis
redis: stable 2.4.17, devel 2.6.0-rc7, HEAD
http://redis.io/
Not installed
https://github.com/mxcl/homebrew/commits/master/Library/Formula/redis.rb
==> Caveats
If this is your first install, automatically load on login with:
mkdir -p ~/Library/LaunchAgents
cp /usr/local/Cellar/redis/2.4.17/homebrew.mxcl.redis.plist ~/Library/LaunchAgents/
launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.redis.plist
If this is an upgrade and you already have the homebrew.mxcl.redis.plist loaded:
launchctl unload -w ~/Library/LaunchAgents/homebrew.mxcl.redis.plist
cp /usr/local/Cellar/redis/2.4.17/homebrew.mxcl.redis.plist ~/Library/LaunchAgents/
launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.redis.plist
To start redis manually:
redis-server /usr/local/etc/redis.conf
To access the server:
redis-cli
How to show all listening ports in Mac OSX
Answer:
To show all the listening ports in Mac OSX, try
# lsof -iTCP -sTCP:LISTEN
Show hidden files in Mac file dialogs
Answer:
To show hidden files in Mac file dialogs (e.g. Open/Save file dialog), you can use the shortcut
shift + command + .
That's it.