Category Archives: C-Programming

Concepts Of Linux Programming – Files and Filesystem

The file is the most basic and fundamental abstraction in Linux. Linux follows the everything-is-a-file philosophy (although not as strictly as some other systems, such as Plan 9).Consequently, much interaction occurs via reading of and writing to files, even when the object in question is not what you would consider a normal file. In order to be accessed, a file

Read more

Simple utility to allocate memory on a Linux Machine

1. What can I use this for? Test swap Test behaviors on a machine when there is little memory available ————————————————————————- 2. Usage ———————————————————— Installation cd /tmp vim memtest.c <enter the contents in the file and save it> vim Makefile <enter the contents in the file and save it> sudo make install ————————————————————————– Makefile all: memtest.c $(CC) memtest.c -o memtest

Read more