Giter VIP home page Giter VIP logo

commands's Introduction

Commands of kali linux and windows 🧰

Kali Linux Commands:

Basic Commands:

  1. ls

    List files and directories in the current folder.
  2. cd

    Change current directory.
  3. pwd

    Print the current working directory.
  4. mkdir

    Create a new directory.
  5. cp

    Copy files or directories.
  6. mv

    Move or rename files and directories.
  7. rm

    Remove or delete files and directories.
  8. cat

    Display the contents of a file.
  9. echo

    Display text on the terminal.
  10. chmod

    Change file permissions.

Intermediate Commands:

  1. ps

    Display information about active processes.
  2. top

    Display and update sorted information about processes.
  3. kill

    Terminate or send signals to processes.
  4. ifconfig

    Configure and display network interface parameters.
  5. ping

    Test network connectivity to a specific IP address.
  6. netstat

    Display network connections, routing tables, interface statistics.
  7. grep

    Search for a pattern in files.
  8. tar

    Create and extract tar archives.
  9. nano

    Text editor for the command line.
  10. wget

    Download files from the internet.

Advanced Commands:

  1. nmap

    Network Mapper - scan and discover network hosts.
  2. airmon-ng

    Enable or disable monitor mode on wireless interfaces.
  3. arpspoof

    Spoof ARP replies to redirect traffic on a local network.
  4. wireshark

    Network protocol analyzer.
  5. john

    Password cracker.
  6. hydra

    Password brute-force tool.
  7. iptables

    Configure and manage IP packet filter rules.
  8. tcpdump

    Dump traffic on a network.
  9. metasploit

    Penetration testing framework.
  10. snort

    Network intrusion detection and prevention system.

Professional Commands:

  1. gpg

    GNU Privacy Guard - encrypt and sign data.
  2. sqlmap

    Automated SQL injection and database takeover tool.
  3. aircrack-ng

    Wi-Fi security auditing suite.
  4. setoolkit

    Social Engineering Toolkit - manipulate people into performing actions.
  5. hashcat

    Advanced password recovery.
  6. volatility

    Memory forensics framework.
  7. docker

    Containerization platform.
  8. exploitdb

    Exploit database archive.
  9. autopsy

    Digital forensics platform.
  10. mitmproxy

    Man-in-the-middle proxy for HTTP and HTTPS.

Windows Commands:

Basic Commands:

  1. cd

    Change current directory.
  2. dir

    List files and directories in the current folder.
  3. echo

    Display text on the console.
  4. copy

    Copy files or directories.
  5. del

    Delete files.
  6. ipconfig

    Display IP configuration for all network interfaces.
  7. mkdir

    Create a new directory.

Certainly! Below is the command in Markdown format with a description:

### Create Directories and Files in a Single Line

To create multiple directories and files in a single line using Command Prompt:

mkdir directory1\subdirectory1\subdirectory2 && echo Hello > directory1\subdirectory1\subdirectory2\file1.txt && echo World > directory1\subdirectory1\subdirectory2\file2.txt


#### Explanation:

- `mkdir directory1\subdirectory1\subdirectory2`: Creates the specified directory structure.
- `&&`: Executes the next command only if the preceding one succeeds.
- `echo Hello > directory1\subdirectory1\subdirectory2\file1.txt`: Creates a file named `file1.txt` and writes "Hello" to it.
- `echo World > directory1\subdirectory1\subdirectory2\file2.txt`: Creates a file named `file2.txt` and writes "World" to it.

Create Directory Structure for Nepal

Using Command Prompt (cmd)

The following command creates a directory structure for Nepal in Command Prompt, including provinces and wards. Each province has a unique number (1 to 7), and within province 3, there are 19 wards.

mkdir nepal
cd nepal
for /l %i in (1,1,7) do mkdir "province%i"
cd province3
for /l %j in (1,1,19) do mkdir "ward%j"
mkdir nepal && cd nepal && (for /l %i in (1,1,7) do mkdir "province%i") && (cd province3 && for /l %j in (1,1,19) do mkdir "ward%j")
  • mkdir nepal: Creates the main "nepal" directory.
  • cd nepal: Changes into the "nepal" directory.
  • for /l %i in (1,1,7) do mkdir "province%i": Uses a loop to create directories "province1" through "province7."
  • cd province3: Changes into "province3."
  • for /l %j in (1,1,19) do mkdir "ward%j": Uses a loop to create "ward1" through "ward19" within "province3."

Using PowerShell

The following command creates a directory structure for Nepal in PowerShell, including provinces and wards. Each province has a unique number (1 to 7), and within province 3, there are 19 wards.

New-Item -ItemType Directory -Path "nepal" -Force
Set-Location "nepal"
for ($i=1; $i -le 7; $i++) { New-Item -ItemType Directory -Name "province$i" -Force }
Set-Location "province3"
for ($j=1; $j -le 19; $j++) { New-Item -ItemType Directory -Name "ward$j" -Force }
New-Item -ItemType Directory -Path "nepal" -Force ; Set-Location "nepal" ; for ($i=1; $i -le 7; $i++) { New-Item -ItemType Directory -Name "province$i" -Force } ; Set-Location "province3" ; for ($j=1; $j -le 19; $j++) { New-Item -ItemType Directory -Name "ward$j" -Force }
  • New-Item -ItemType Directory -Path "nepal" -Force: Creates the main "nepal" directory.
  • Set-Location "nepal": Changes into the "nepal" directory.
  • for ($i=1; $i -le 7; $i++) { New-Item -ItemType Directory -Name "province$i" -Force }: Uses a loop to create directories "province1" through "province7."
  • Set-Location "province3": Changes into "province3."
  • for ($j=1; $j -le 19; $j++) { New-Item -ItemType Directory -Name "ward$j" -Force }: Uses a loop to create "ward1" through "ward19" within "province3."

8. **ren**
   ```markdown
   Rename files or directories.
  1. type

    Display the contents of a text file.
  2. cls

    Clear the console screen.

Intermediate Commands:

  1. tasklist

    Display a list of running processes.
  2. netstat

    Display active network connections and listening ports.
  3. xcopy

    Copy files and directories with additional options.
  4. sfc

    System File Checker - scan and repair system files.
  5. chkdsk

    Check and repair disk errors.
  6. robocopy

    Robust file and folder copying with more options than copy.
  7. systeminfo

    Display detailed configuration information about the computer.
  8. ver

    Display the current Windows version.
  9. find

    Search for a specific string in files.
  10. regedit

    Registry Editor - modify Windows Registry settings.

Advanced Commands:

  1. gpupdate

    Force an immediate update of Group Policy.
  2. diskpart

    Disk Partitioner - manage disk partitions.
  3. pnputil

    Install or manage plug-and-play devices.
  4. schtasks

    Schedule tasks to run at specified times.
  5. wmic

    Windows Management Instrumentation Command-line - system information and configuration.
  6. bcdedit

    Boot Configuration Data Editor - configure boot options.
  7. netsh

    Network Shell - configure network settings.
  8. powercfg

    Power Configuration - configure power settings.
  9. cipher

    Encrypt or decrypt files and folders.
  10. dism

    Deployment Image Service and Management Tool - service and repair Windows images.

Professional Commands:

  1. **ica

cls**

Display or modify Access Control Lists (ACLs) for files and folders.
  1. perfmon

    Performance Monitor - monitor and log system performance.
  2. gpresult

    Display Group Policy settings and applied policies.
  3. dcdiag

    Domain Controller Diagnostic Tool - diagnose domain controller issues.
  4. sc

    Service Control - manage services.
  5. auditpol

    Configure security auditing policies.
  6. taskkill

    Terminate or stop a running process or application.
  7. fsutil

    File System Utility - perform various file system operations.
  8. wevtutil

    Event Viewer Utility - manage event logs.
  9. takeown

    Take ownership of files or directories.

commands's People

Contributors

hackthacker avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.