OS X (and Linux!): As much as we love the command line, because it can do so much more so much faster in many cases, you can make a mistake pretty easily. If you do, just wipe out everything you typed in an instant with a simple keyboard shortcut: Control+U.When you press those keys, the entire line goes away. That is if you're at the end of the line, at least. If you move the cursor to the left, it'll only delete what's to the left and retain the text to the right. It's a simple thing, but when you make an error it saves a lot of time. If it didn't exist, you'd have to sit and press the delete key until every individual character disappeared.6 Mac OS X Terminal Tips | Colmjude
Showing posts with label Terminal. Show all posts
Showing posts with label Terminal. Show all posts
Saturday, September 7, 2013
Wipe Out a Mistyped Terminal Command with Control + U
OS X (and Linux!): As much as we love the command line, because it can do so much more so much faster in many cases, you can make a mistake pretty easily. If you do, just wipe out everything you typed in an instant with a simple keyboard shortcut: Control+U.When you press those keys, the entire line goes away. That is if you're at the end of the line, at least. If you move the cursor to the left, it'll only delete what's to the left and retain the text to the right. It's a simple thing, but when you make an error it saves a lot of time. If it didn't exist, you'd have to sit and press the delete key until every individual character disappeared.6 Mac OS X Terminal Tips | ColmjudeWednesday, September 4, 2013
Save the Output of Any Terminal Command with One Parameter
Windows/Mac/Linux: The command line (or terminal) is an extremely useful tool, but if you have a command that returns a wall of text, you can save it to a single text file with this simple parameter.By using a single parameter at the end of your normal commands, you can pipe the output directly into a basic text file. Just add "> FILENAME.txt" (no quotes) to the very end of your command. This will create a .txt file with everything you would have seen on the screen in an easy-to-copy form. So, if you wanted a list of all the files in your Movies directory, you would run the "dir" command with this parameter (for Windows users):CD C:\Users\me\Moviesdir > mymovies.txtOpen up mymovies.txt, and you'll see a list of every file in that Movies folder.If you want to put the file somewhere other than your working directory, you can spell out the location in it's entirety. For example:dir > C:\Users\JimmyJoUserMan\Documents\heywhatsinhere.txtMany of you command line veterans are very familiar with this trick, but for those still learning their way around, it's a great shortcut to have on hand.How to copy command prompt outputs to the Windows Clipboard | Ghacks
Saturday, May 25, 2013
Run Terminal Commands on Your Home PC with a Text Message
If you have an always-on computer at home, like a home server, you probably run the occasional command on it to start a process, troubleshoot something, or otherwise control it through a terminal. DIYer Steve figured out how to run commands on his Raspberry Pi just by sending a text message.Steve's process uses Google Voice and a simple script that checks his messages every minute. If he sends a text message from his phone starting with "cmd," his computer will run the command that comes after it—basically, it allows him to SSH into his computer via SMS. You probably won't perform any mega-complicated tasks, but it can be handy to have if you find yourself needing to control your computer from afar. Hit the link to download the script and tweak it for your own machine.Controlling Raspberry Pi via Text Message | Steve's Computer Vision Blog via Hack a Day
You've heard the word "server" thrown around a lot, but usually in the context of web sites or big companies that have a lot of data… Read…
Subscribe to:
Posts (Atom)