Posts

Showing posts from October, 2015

How to archive files in linux using tar command

Image
Data archiving in Linux is the method of  storing one or more files into a single file for backup or distribution (transferring files locally or through network)  purpose. There are many tools available in Linux that can perform data archiving. In this post we will discuss  about tar, which is the basic command line archiving utility available in Linux. tar command can archive files on a local disk as well as on a tape device. Similarly it can extract data from an archive file as well as from the tape device. The syntax of tar command is

Regular Expressions explained with grep command.

Image
In our earlier post regarding standard wildcard we saw how wildcards are mostly used with shell commands to replace or represent  one or more characters. Eventhogh similar to standard wildcard, a regular expression or regex is a method of using a sequence of characters to match a wider range of search patterns. In this tutorial I will try to explain regular expressions using grep, awk and sed commands. Before that lets see different regex operators and their meanings.