How to Multitask at the Linux Command Line with Screen

screencli-smallI’ll admit up front – it’s embarrassingly late for me to have discovered screen. Friends and coworkers have been suggesting it to me for years, but it wasn’t until recently that I had a concrete need for it. Now I wish I’d had it all along. In short, screen gives you the equivalent of the “workspaces” you find in Gnome, KDE, and other desktop environments, but for the command line. It may not sound like much, but like the graphical equivalent, you begin to see the power after a few uses. Today we’re going to cover some screen basics useful for your home desktop but especially useful if you use remote access tools like SSH.
[Read more...]

Fetching Files with wget

Perhaps your X server has crashed. Or you’re working on a shell script. Or you’re SSHed into a headless server. For one reason or another, if you need to fetch a file and a web browser’s not an option, you might want to look into wget. If you’ve used the Linux shell much and worked with scripts or package installers, there’s a good chance you’ve seen wget in action. At the simplest level, it does just what the name implies and gets a file from the web (or FTP). Underneath that, though, is some clever functionality.
[Read more...]

Mastering the Bash History

bash-history-terminalThe Bourne Again Shell, better known as bash, is the default for most Linux distributions. It’s extremely powerful as far as command shells go, and holds all kinds of nifty tricks for those willing to learn. One of the best features is, in my opinion, the command history system.

There are many options to use with the bash history, some of them I use nearly every time I open a command shell. Today I’ll be covering some of the most useful aspects of the history, but I certainly won’t be able to cover them all.
[Read more...]