tr is an UNIX utility for translating, or deleting, or squeezing repeated characters. It will read from STDIN and write to STDOUT. tr stands for translate. Syntax The syntax of tr command is: $ tr [OPTION] SET1 [SET2] Translation If both the SET1 and SET2 are specified and ‘-d’ OPTION is not specified, then tr [...]
2012
Loops are very basic and very useful programming facility that facilitates programmer to execute any block of code lines repeatedly and can be controlled as per conditions added by programmer. It saves writing code several times for same task. There are three types of loops in C. For loop Do while loop While loop 1. [...]
Every file in Linux is associated with timestamps, which specifies the last access time, last modification time and last change time. Whenever we create a new file, or modify an existing file or its attributes, these timestamps will be updated automatically. Touch command is used to change these timestamps (access time, modification time, and change [...]
GCC Compiler is a very powerful and popular C compiler for various Linux distributions. This article explains some of the popular GCC compiler options. An Example C Code The following basic C code (main.c) will used in this article : #include<stdio.h> int main(void) { printf("\n The Geek Stuff\n"); return 0; } GCC Compiler Options 1. [...]
Network tools like wireshark, tcpdump, etc, are fairly popular for packet sniffing. This article provides a basic overview of the libpcap library which forms the base of packet sniffing for many network monitoring tools including wireshark, tcpdump, snort, etc. What is Packet Sniffing and How it Works? Packet sniffing is a technique through which the [...]
GnuPG stands for GNU Privacy Guard. GnuPG is an open implementation of OpenPGP ( Pretty Good Privacy ) standard as defined in RFC 4880. In this article we will cover the installation and the basics of generating keys using gnupg. This article is part of our ongoing series on Cryptography. If you are new to [...]
Bitwise operators are used to manipulate one or more bits from integral operands like char, int, short, long. In this article, we will see the basics of bitwise operators, and some useful tips for manipulating the bits to achieve a task. This article assumes that you know the basics of Truth Table for various operators. [...]
Linux split and join commands are very helpful when you are manipulating large files. This article explains how to use Linux split and join command with descriptive examples. Join and split command syntax: join [OPTION]… FILE1 FILE2 split [OPTION]… [INPUT [PREFIX]] Linux Split Command Examples 1. Basic Split Example Here is a basic example of [...]