Infosec Matrix

Collection of Best Writeups for HackTheBox, Portswigger, Bug Bounty, TryHackme, OverTheWire, PwnCollege, PicoCTF, and More.

Follow publication

Member-only story

15 Lesser-Known but Powerful Linux Commands You Need to Know

Karthikeyan Nagaraj
Infosec Matrix
Published in
5 min readNov 5, 2024

--

Image by rem-baba.medium.com

Introduction

For many Linux users, the command line is an essential tool for managing and interacting with their systems. While common commands like ls, cd, cp, and grep are well-known, there are lesser-known commands and options that can make your Linux experience more powerful and efficient. In this article, we’ll dive into some hidden gems of the Linux command line that can elevate your workflow and expand your command-line toolbox.

1. ncdu (NCurses Disk Usage)

What It Does: ncdu is a disk usage analyzer that provides a user-friendly way to navigate and understand disk space usage in your system.

How to Use:

sudo apt install ncdu
ncdu /

Why It’s Useful: Unlike du, which can produce a lot of output, ncdu provides an interactive and visual way to identify which directories are taking up the most space. Perfect for quickly reclaiming disk space on a cluttered system.

2. htop (Interactive Process Viewer)

What It Does: htop is an interactive process viewer that’s more advanced than top, providing a colorful, real-time overview of running processes, CPU, and memory usage.

How to Use:

sudo apt install htop
htop

Why It’s Useful: Unlike top, htop lets you scroll vertically and horizontally, making it easy to navigate processes and see full command lines. It also supports mouse interactions for ease of use.

3. bat (A Cat Alternative)

What It Does: bat is a modern replacement for cat, with syntax highlighting and Git integration.

How to Use:

sudo apt install bat
bat filename.txt

Why It’s Useful: If you work with code or configuration files, bat highlights syntax and shows line numbers, making it easier to read and debug.

4. fzf (Fuzzy Finder)

--

--

Infosec Matrix
Infosec Matrix

Published in Infosec Matrix

Collection of Best Writeups for HackTheBox, Portswigger, Bug Bounty, TryHackme, OverTheWire, PwnCollege, PicoCTF, and More.

Karthikeyan Nagaraj
Karthikeyan Nagaraj

Written by Karthikeyan Nagaraj

Entrepreneur | Writer | Cyber Security Consultant | AI Researcher TopMate - https://topmate.io/cyberw1ng

Write a response