Tag Info

Hot answers tagged


Have a look at this SO thread: http://stackoverflow.com/questions/11246070/cp-parents-option-on-mac cp is available on OS X, but it does not support the --parents option, as I guessed. Instead of using cp --parents, replace it with ditto as mentioned in the SO answer.


Final Solution: Remove the Terminal saved state, located in: ~/Library/Saved Application State/com.apple.Terminal.savedState/* Then, make that folder read-only so that it can't be written to. You can use the clear command to clear your terminal window from within a script. As noted on this other thread, the following commands in sequence will clear ...


The simplest and least destructive way to stop processes that run in your user space is to logoff, and logon again. If you kill a process, it can't save any data correctly. Most system processes have good routines to handle this, but that slows things down the next time it starts and can leave things in a state where you need to clean up the mess by hand. ...


If you are running the default terminal program that shipped with your Mac then the arrow keys should move you left and right on a line or (for the up and down keys) back and forth in the shell history. When you first launch the shell and before you run your program does UP and DOWN scroll through history? If you type anything on the command line (and ...


If you're just issuing one long-running command that occasionally pops a bell, you could run the command with the output piped to less. This seems to have done the trick for me: annoyingcmd | less -R (The -R flag allows for colors to be displayed)


No need to run a terminal command to do this. Applescript can handle it without the need of a terminal command. set myList to {} tell application "Finder" set fileList to name of files of folder "Applications" of startup disk repeat with currentFile in fileList copy currentFile to the end of myList end repeat end tell choose from list ...


You can install it using homebrew. Just type the following: brew install figlet If you don't have homebrew installed, you can simply do it by typing: ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Only top voted, non community-wiki answers of a minimum length are eligible