DEV Community

Akash Yadav
Akash Yadav

Posted on

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

Top comments (0)