DEV Community

Akash Yadav
Akash Yadav

Posted on

1

Basic Linux Command used in Pentesting and Other Cyber Security Domains

File Commands

  1. cd - change directory
  2. pwd - print working directory
  3. ls - list files and directory
  4. mkdir - make n directories
  5. rm - remove (delete) a file or directory
  6. rmdir - remove (delete) an empty directory
  7. cp - copy a file
  8. mv - move or rename a file
  9. touch - create a new empty file
  10. echo - write to a file

SSH Commands

  1. ssh - connect to a remote host
  2. ssh-keygen - generate a new SSH key pair
  3. ssh-copy-id - copy SSH keys to a remote host
  4. ssh-config - configure SSH client settings
  5. ssh-agent - manage SSH keys for authentication

Network Commands

  1. ping - test network connectivity
  2. ifconfig - configure network interface
  3. ip - manage network interface and addresses
  4. netstat - display network socket statistics
  5. ssh-tunnel - create a secure tunnel for network traffic
  6. curl - transfer data from a URL
  7. wget - download file from URL
  8. dig - perform DNS lookups
  9. nslookup - perform DNS lookups
  10. route - manage network routes

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay