linux

Difference between grep, sed and awk

grep: search for specific terms in a file #usage [crayon-5a35d20a02afd999599709/] Now awk and sed are completly different than grep. awk and sed are text processors. Not only do they have the ability to find what you are looking for in text, they have the ability to remove, add and modify the text as well (and […] Read more»

linux

How to build latest stable linux kernel

Go to https://www.kernel.org Goto  stable: ………[  … ] [browse] and click on browse Click on summary tab and see the bottom..you will find the url for stable release. [crayon-5a35d20a0306f867212738/]     Read more»

linux

How to use grep in llinux

GREP stands for globally search  a regular expression and print. Its syntax has following format: [crayon-5a35d20a03270947079705/] Some useful grep commands are: [crayon-5a35d20a03278113034571/]   Read more»

linux

How to write Pluggable Authentication Module (PAM) application

We are going to develop PAM application to check whether user is authenticated or not not using PAM. The detail tutorial about PAM can be found here.   First install the library for PAM in linux, in my case it is Ubuntu: [crayon-5a35d20a036c7577601260/] After that, I write the code like this: [crayon-5a35d20a036d1777660430/] Then, compile the […] Read more»

linux

how to nohup in linux

If you want to run the application from terminal with no logs in background remotely or locally, the it can be done as: [crayon-5a35d20a0397c221964071/]   Read more»

tftp

How to install tftp in Ubuntu

First install the tftp server which tftpd-hpa and tftp client which is tftp [crayon-5a35d20a03f06251569285/] Then, take default backup configuration [crayon-5a35d20a03f0f328489790/] After that, edit tftp-hpa configuration file in /etc/default/tftpd-hpa [crayon-5a35d20a03f13647341805/] Then, move the folder and change its mode and owner. [crayon-5a35d20a03f16297968534/] Finally, restart the tftpd-service and test. [crayon-5a35d20a03f1a498142917/] That’s it. Read more»

tux

Compiling a C program

Compilation refers to the process of converting a program form the textual source code, in a programming a language such as C or C++ , into machine code, the sequence of 1’s and 0’s used to control the central processing unit(CPU) of the computer. This machine code is then store in a file known as […] Read more»