We are committed to provide service 24 X 7

Deals, Shopping, Training, Tools

Tag: Linux

Process Identification in Linux – Tutorial & Example

In this article we will discuss, how to differentiate and identify each process in linux. Process ID Each process in Linux has a unique id and has a parent.  We can get the process id of a running process and its parent’s process id using following functions, Advertisements pid_t getpid() pid_t getppid() File to be …

Process Identification in Linux – Tutorial & ExampleRead More

POSIX : How to get thread Id of a pthread in Linux | pthread_self() | pthread_equals()

In this article we will discuss how to get thread id of a pthread and compare different thread ids. How to get thread id of current thread Use pthread_self() to get the current thread id i.e. Advertisements #include <pthread.h> pthread_t pthread_self(void); It returns the thread id as pthread_t object for the calling thread. As main function is …

POSIX : How to get thread Id of a pthread in Linux | pthread_self() | pthread_equals()Read More

Linux: Create directory or folder using mkdir command

In this article we will discuss how to create a single or multiple directories in Linux using mkdir command. Then we will see various examples like, creating folders with space in name or creating folders with different permissions or creating nested directories recursively in single command. Table of Contents mkdir command – Introduction Create a …

Linux: Create directory or folder using mkdir commandRead More

Find latest modified files in a directory in Linux (Recursively)

In this article, we will learn about different ways to find the latest modified files in a folder and its subfolders in Linux. Table Of Contents Option 1 : Using ‘-mtime’ along with find command Option 2 : Using ‘-newermt’ along with find command Option 3 : Using ‘-mmin’ along with find command Summary: We …

Find latest modified files in a directory in Linux (Recursively)Read More

Change permissions for Directory & Sub-directories in Linux

In this article we will discuss different ways to change the permissions of a folder and all files or subdirectories inside it in Linux. Table Of Contents Introduction Permission Types Change permissions of a Directory & all files/sub-directories in it using chmod command: Example:1 Example:2 Find and Change Permissions of selected files/sub-directories inside a diretory …

Change permissions for Directory & Sub-directories in LinuxRead More

Cart

Your Cart is Empty

Back To Shop