How to Remove Symbolic Links

Symbolic links, often referred to as symlinks, are a powerful feature in Unix-like operating systems that allow you to create references to files or directories in different locations. While symlinks provide flexibility and convenience, there might be instances when you need to remove them. In this guide, we will walk you through the process of […]

How to Delete the History of the Last n Commands?

Introduction Command-line interfaces (CLIs) have become an integral part of modern computing, allowing users to interact with their computers through text-based commands. One essential feature of CLIs is the command history, which stores a record of previously executed commands. While the command history can be extremely useful for recalling and reusing commands, there are times […]

How to Kill a TTY in Linux

In the Linux operating system, a TTY (short for teletypewriter) refers to a physical or virtual terminal that allows users to interact with the system through text-based input and output. Sometimes, it becomes necessary to terminate or “kill” a TTY session due to various reasons such as unresponsive processes, system maintenance, or security concerns. This […]

Find Non-ASCII Characters in Text Files in Linux

Text files often contain a variety of characters, ranging from standard alphanumeric characters to special symbols and non-ASCII characters. Non-ASCII characters can sometimes cause issues when processing text data, especially in contexts where only standard ASCII characters are expected. In this article, we will explore how to identify and locate non-ASCII characters in text files […]

Difference Between sort | uniq and sort -u

When working with data manipulation and processing in the Unix-like command-line environment, commands like sort, uniq, and their various options play a pivotal role. Both sort | uniq and sort -u are frequently used to filter and extract unique elements from a list, but they have distinct functionalities and use cases. In this article, we […]

Linux Process vs. Thread

In the world of Linux and operating systems, processes and threads are fundamental concepts that play a crucial role in managing and executing tasks. Understanding the differences between processes and threads is essential for efficient resource utilization, multitasking, and building responsive applications. In this comprehensive guide, we’ll delve into the concepts of Linux processes and […]

Linux – wget Timeout

In the world of Linux command-line utilities, wget stands out as a powerful tool for downloading files from the web. However, when dealing with downloads, especially in automated scripts or network-challenged environments, managing timeouts becomes crucial. In this article, we’ll explore how to handle timeouts effectively while using wget. We’ll cover the importance of timeouts, […]

Execute Bash Script From URL

Running Bash scripts is a common task in the world of command-line utilities and automation. Traditionally, you might create and execute these scripts locally on your machine. However, there’s an interesting and convenient way to execute Bash scripts directly from a URL. In this article, we’ll explore how to achieve this using various methods, discussing […]

Capture the SSL Handshake with tcpdump

In the world of network analysis and debugging, capturing the SSL handshake can provide valuable insights into the secure communication between clients and servers. The SSL handshake is a critical part of establishing a secure connection, and examining it can help diagnose issues, verify certificate information, and ensure proper encryption. In this article, we will […]

Linux Commands Comparison: curl vs wget

When it comes to downloading files and interacting with remote resources on the command line in Linux, two prominent utilities stand out: curl and wget. These tools serve similar purposes, yet they have distinct features and functionalities that cater to different use cases. In this article, we’ll delve into the differences between curl and wget, […]