Enables widgets to be placed onto the desktop. Click and hold the widget and press F12 to drag it onto the desktop. Repeat the process again to drag a widget back onto the dashboard. You may need to log off or restart for it to take effect.
Change the file location in the second half of the string to the exact file location of your chosen picture.
otherwise you get this error message: svn: Can't move '.svn/tmp/entries' to '.svn/entries': Operation not permitted
Expand a URL, aka do a head request, and get the URL. Copy this value to clipboard.
MAC OSX doesn't come with a locate command, This will do the same thing as the locate command on a typical Linux OS. Simply add it to your ~/.bash_profile
On the Mac, the 'ls' function can sort based on month/day/time, but seems to lack ability to filter on the Year field (#9 among the long listed fields). The sorted list continuously increases the 'START' year for the most recently accessed set of files. The final month printed will be the highest month that appeared in that START year. The command does its magic on the current directory, and suitably discards all entries that are themselves directories. If you expect files dating prior to 2002, change the START year accordingly.
This keeps the user logged in but shows the login screen. Very useful when connecting remotely to an OSX-Server via VNC
sometimes this helps, when eject button fails
On Linux substitute pbpaste with `xsel --clipboard --output` or `xclip -selection clipboard -o` (untested)
This is the best way to fix this issue on OS X. If you don't have homebrew installed, now is the perfect time to fix that too. ;-) see http://crosstown.coolestguidesontheplanet.com/os-x/40-setting-up-os-x-lion-to-plug-into-homebrew-package-manager Show Sample Output
Very convenient to for sending data to the clipboard for processing. However, note that tee will affect the buffering of the output (stdout won't be update very live). Show Sample Output
Transcodes mpg2 files, that cannot be read by iMovie to m4v files. Show Sample Output
Gets the Hardware UUID of the current machine using system_profiler. Show Sample Output
OSX users as well as linux users with copy/paste buffer commands can remove duplicate items from their copy buffer with this command. I use this often when I have to copy a long list of items that I didn't generate, but I need to paste elsewhere in a list that's unique. If retaining the original order of lines isn't important to you, use the following command which is easier to remember. pbpaste | sort | uniq | pbcopy
Useful for sending as ARD command as root. Official apple sanctioned method for getting logged in user below: loggedInUser="$(python -c 'from SystemConfiguration import SCDynamicStoreCopyConsoleUser; import sys; username = (SCDynamicStoreCopyConsoleUser(None, None, None) or [None])[0]; username = [username,""][username in [u"loginwindow", None, u""]]; sys.stdout.write(username + "\n");')" Show Sample Output
Shows the WiFi signal strength without having to display thousands of lines Show Sample Output
It will print a compact ls -la list with the directories at the beginning.
--almost-all - do not list implied . and ..
--group-directories-first - group directories before files
--color - colorize the output
--no-group - in a long listing, don't print group names
--human-readable - print human readable sizes (e.g., 1K 234M 2G)
--classify - append indicator (one of */=>@|) to entries
If you want to see the owner:
ls -l --almost-all --group-directories-first --color --no-group --human-readable --classify
Show Sample Output
/macos/mojave shell script to change terminal profiles
This must be run the first time while logged into your Mac desktop, as it will graphically prompt for access permissions. Subsequent uses will not prompt, assuming you select "Always allow". Show Sample Output
commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.
Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.
» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10
Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):
Subscribe to the feed for: