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:
[click to continue…]

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.
[click to continue…]

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

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.
[click to continue…]

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.
[click to continue…]

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.
[click to continue…]

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

[click to continue…]

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

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.
[click to continue…]

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.
[click to continue…]