Tag Archives: linux
What is Character Driver?
A character device driver is one that transfers data directly to and from a user process. This is the most common type of device driver and there are plenty of simple examples in the source tree. Character device drivers may … Continue reading
Common linux virtual directories
Common Linux Virtual Directories ================================= Directory Usage / Root of virtual directory. No files are placed here (normally) /bin … Continue reading
Linux Filesystem
Linux Filesystem ================ – In windows, physical drive determines the pathname of the file. – Windows assigns a letter to each disk drive. – Each directory contains its own directory structure for accesing files stored in it. – For eg. … Continue reading
How to get help in Linux – Fedora
To get help in fedora ===================== To learn about any new command, function or utility in Fedora we can get help from it. It has 3 such commands :- i) man pages – These are manual pages . – It … Continue reading
How to change default prompt in BASH shell
To change default prompt :- ======================== – We can change default prompt by assigning the character to it. – Each character have a specific meaning. BASH Shell Prompt Characters :- Character Description \a Bell Character \d Date in format “Day … Continue reading
Command line Prompt – PS1, PS2
Command line Prompt =================== Environmental variables that controls Command line Prompt PS1 : Controls the format of default command line prompt. PS2 : Controls the format of second-tier command line prompt. PS3 : Controls the format of tertiary command line … Continue reading
Linux Run Levels
Linux Run Levels ================ Run Level Description 0 Halt 1 Single-User mode 2 Multi-user mode, usually … Continue reading
Boot process of linux
The boot process of linux ========================= – After you turn on your Linux System, linux kernel loads into memory and runs. – Firstly, it runs the init process. – init program is usually located at /sbin/init. – init process has … Continue reading
Sockets – Basics
Sockets ======= A socket is a communication mechanism that allows client/server systems to be developed either locally,on a single machine, or across networks. – It is a communication mechanism – It allows client/server systems to developed either locally or across … Continue reading
Basic linklist operations
RCS file: header.h,v Working file: header.h head: 1.1 branch: locks: strict a: 1.1 access list: symbolic names: keyword substitution: kv total revisions: 1; selected revisions: 1 description: stdio.h and stdlib.h are added. —————————- revision 1.1 locked by: a; date: 2015/07/02 … Continue reading
How to Send a signal -Using Kill command
Send a signal by Kill command ======================= – To send a signal to a process other than current task. – It has prototype :- int kill(pid_t pid, int signo); – It is included using header :- #include<signal.h> – The system … Continue reading
How to register a signal
Register a signal ================== – Program can handle a signal using signal library function signal(). – signal() is used to register the signal handler function with kernel on behalf of current process. – It is included in header :- #include<header.h> … Continue reading
About Signals
Signals ======== – A signal is an event generated by UNIX/LINUX system in response to some condition. – On receipt of a signal, process may in turn take some action. – Signals are generated by some error conditions such as:- … Continue reading
Replacing a Process Image
Replacing a Process Image ========================= – The exec function replaces current process with a new process. – The path of new process is specified as argument to exec. – It is defined in header : #include<unistd.h> – Last argument of … Continue reading