Cyber Defence

id Command in Linux: Display User and Group Information

The id command prints user and group identity for any account on the system. It shows the real user ID, primary group…

6 hours ago

sed Delete Lines: Remove Lines by Number, Pattern, or Range

sed processes input line by line, applies your commands, and writes the result to standard output. The original file stays untouched…

6 hours ago

How to Rename Directories in Linux: mv, Loops, and rename

Linux provides two main tools for renaming directories: mv for single renames and the rename utility for batch pattern-based operations. How to Rename a…

6 hours ago

w Command in Linux: Show Logged-In Users and System Activity

The w command in Linux shows who is currently logged in to the system and what each user is doing. It combines…

6 hours ago

sysctl Command in Linux: View and Change Kernel Parameters

The sysctl command reads and modifies Linux kernel parameters from the command line. Changes take effect immediately at runtime but are not…

1 day ago

whereis Command in Linux: Find Binary, Source, and Man Pages

The whereis command locates the binary, source, and manual page files for a given command. Unlike which, it searches beyond $PATH, it checks hard-coded…

1 day ago

git clone: Clone a Repository from Remote or Local Sources

git clone copies an existing Git repository into a new directory on your local machine. It initializes a .git directory, downloads all remote…

1 day ago

How to Copy Files and Directories in Linux: cp and rsync

The two main tools for copying files and directories in Linux are cp and rsync. cp handles quick, local file and directory copies. rsync is the better…

1 day ago

jobs Command in Linux: List and Manage Background Processes

The jobs command is a Bash builtin that lists all background and suspended processes belonging to the current shell session. It shows…

2 days ago

dmesg Command in Linux: Read and Filter Kernel Messages

The Linux kernel writes messages to the kernel ring buffer throughout the boot process and while the system is running.…

2 days ago