alias

Scala packaging and import examples

This article is a collection of Scala packaging and import examples. I created most of these examples when I was writing the Scala Cookbook. I share them here without much discussion, but for more examples and discussion, please check out the Cookbook.

Packages imported by default

By default, three packages are implicitly imported for you:

Unix/Linux ‘alias’ command examples

Unix and Linux aliases are a really nice way of customizing the command line to work the way you want it to work. With alias commands, you're essentially doing a little programming, and creating new Unix and Linux commands custom-tailored to the way you work. You can create aliases to use instead of existing commands, and you can also create aliases as Linux command pipelines.

Git shortcuts/aliases - How to create

Git shortcuts FAQ: Can I create Git shortcuts (aliases) so I don't have to type out full Git commands like "git commit..."?

I've been reading the Pro Git book a lot lately, and the short answer is yes, you can create Git shortcuts so you don't have to type out the long Git commands. Here are several Git shortcut commands (referred to as "git aliases") from the Pro Git book:

Linux ‘find’ command recipes

Thinking about my own work when using Linux and Unix systems, a lot of the work is based around files, and when you're working with files, tools like the Linux find command are very helpful. So, I've decided to put together this list of find command examples/recipes that I'll update from time to time when I use the find command in different ways.

How to find all files beneath the current directory that end with the .jsp extension:

Linux alias command: How to create and use Linux aliases

Unix/Linux aliases FAQ: Can you share some example of the Linux alias command, as well as some alias command examples?

Using Linux aliases

Aliases in Unix and Linux operating systems are cool. They let you define your own commands, or command shortcuts, so you can customize the command line, and make it work the way you want it to work. In this tutorial I'll share several Linux aliases that I use on a daily basis.

Linux - grouping commands in parentheses, aliases

One other Unix command while I'm in the neighborhood. Somewhat along the lines of what I was doing on Monday -- looking at the size of Apache log files -- I wanted to generate a sorted list of log files for May and June only. Here's how to solve that problem by grouping Unix commands:

(may;jun) | sort +4n

In this example, I'm grouping the commands 'may' and 'jun' together using the parentheses, and piping their combined output into the sort command. With the sort command, I'm sorting numerically by the 5th column.