Sort command sorts the lines of a text file. Following are several practical examples on how to use the sort command based on the following sample text file that has employee information in the format:
[continue reading…]

xargs is a very powerful command that takes output of a command and pass it as argument of another command. Following are some practical examples on how to use xargs effectively.
[continue reading…]

Convert a file to all upper-case using tr command as shown below.
[continue reading…]

Join command combines lines from two files based on a common field.

In the example below, we have two files – employee.txt and salary.txt. Both have employee-id as common field. So, we can use join command to combine the data from these two files using employee-id as shown below.
[continue reading…]

Sometime while debugging a shell script, you may not want to see either the standard output or standard error message. Use /dev/null as shown below for suppressing the output.
[continue reading…]

find is frequently used command to find files in the UNIX filesystem based on numerous conditions. Let us review some practice examples of find command.
[continue reading…]

grep command is used to search files for a specific text. This is incredibly powerful command with lots of options.

[continue reading…]

To get some useful statistics about the current ssh session, do the following. This works only on SSH2 client.
[continue reading…]

When you’ve logged on to the remotehost using ssh from the localhost, you may want to come back to the localhost to perform some activity and go back to remote host again. In this case, you don’t need to disconnect the ssh session to the remote host. Instead, follow the steps below.
[continue reading…]

Sometimes it is necessary to view debug messages to troubleshoot any SSH connection issues. pass -v (lowercase v) option to the ssh as shown below to view the ssh debug messages.
[continue reading…]