C Program to Execute Linux Commands

Following program shows how you can run some Linux commands from C program using C library API … Read more

Stat for file information

C program to read file properties using stat() function

Stat system call in Linux return information about a file, in the buffer pointed to by buf. … Read more

Stat for file information

C program to find file properties using stat() function

Stat() function in C is used to retrieve information about the file by accepting the filepath as … Read more

Get MAC Id using IP Address

How to Find MAC Address using IP Address ?

If you know the IP address of the Host, but its not within your physical reach but … Read more

Generate Linker map file

How to create Linker .map file in Linux ?

Understanding map files created by some of the Embedded compilers is required for the Engineers who are … Read more

LAN

How to setup Local Area Network (LAN) using switch on Ubuntu ?

Setting up LAN using switch is required if we don’t have the router but still we want … Read more

Understanding wireless beacon packet ( captured using pcap API’s )

As per Wikipedia, Beacon frame is one of the management frames in IEEE 802.11 based WLANs. It contains all the … Read more

How to disable and / or enable ICMP ping from Linux host ?

To disable the ICMP ping from certain Linux host, lets say which has IP of 192.168.0.100 use … Read more

How executable is created during compilation on Linux ?

This code is tested on Ubuntu . You may need to twick the script if you use a … Read more

What is the Difference between Process and Thread ?

Creating a new thread is very similar to forking a new process, but there are differences. When … Read more