Skip to content

Latest commit

 

History

History
61 lines (37 loc) · 3.44 KB

README.md

File metadata and controls

61 lines (37 loc) · 3.44 KB

linux-concepts

1. Inode

An Inode is a data structure containing metadata about the files.

Uniquely existing number for all the files in linux/unix filesystem.

Screenshot from 2022-02-04 11-33-33

The first number on the left indicates the inode number. -i flag is used to get the inode number Note: The Inode doesn't contain file content, instead it has a pointer to that data.

Ref:

2. Zombie Process

A process which has finished the execution but still has entry in the process table to report to its parent process is known as a zombie process.

How to kill Zombie Process

You can’t kill a zombie process because it’s already dead. It won’t respond to any signals because it’s been removed from memory—there’s nowhere to send a SIGKILL signal. You can try sending the SIGCHLD signal to the parent process, but if it didn’t work when the child process terminated, it’s unlikely to work now, either.

The only reliable solution is to kill the parent process. When it’s terminated, its child processes are inherited by the init process, which is the first process to run in a Linux system (its process ID is 1).

Screenshot from 2022-02-04 12-09-06 Screenshot from 2022-02-04 12-11-37 Screenshot from 2022-02-04 12-10-24

NOTE: Zombies Aren’t Scary … … unless they’re in a massive horde. A few aren’t anything to worry about and a simple reboot will wipe them out.

3. Samba Server

Samba is an extremely useful networking tool for anyone who has both Windows and Unix systems on his network. Running on a Unix system, it allows Windows to share files and printers on the Unix host, and it also allows Unix users to access resources shared by Windows systems.

Samba is a suite of Unix applications that speak the Server Message Block (SMB) protocol. Microsoft Windows operating systems and the OS/2 operating system use SMB to perform client-server networking for file and printer sharing and associated operations. By supporting this protocol, Samba enables computers running Unix to get in on the action, communicating with the same networking protocol as Microsoft Windows and appearing as another Windows system on the network from the perspective of a Windows client.

4. TLB

TLB (Translation Lookaside Buffer) GFG Image

5. Copy to clipboard

`pbcopy` Use `pbcopy` with pipe for copying the output of the previous command. e.g.

cat abc.txt | pbcopy

6. `w` Command

`w` command in Linux shows logged-in users and their activities. image

Ref: