-
ls
List files and directories in the current folder.
-
cd
Change current directory.
-
pwd
Print the current working directory.
-
mkdir
Create a new directory.
-
cp
Copy files or directories.
-
mv
Move or rename files and directories.
-
rm
Remove or delete files and directories.
-
cat
Display the contents of a file.
-
echo
Display text on the terminal.
-
chmod
Change file permissions.
-
ps
Display information about active processes.
-
top
Display and update sorted information about processes.
-
kill
Terminate or send signals to processes.
-
ifconfig
Configure and display network interface parameters.
-
ping
Test network connectivity to a specific IP address.
-
netstat
Display network connections, routing tables, interface statistics.
-
grep
Search for a pattern in files.
-
tar
Create and extract tar archives.
-
nano
Text editor for the command line.
-
wget
Download files from the internet.
-
nmap
Network Mapper - scan and discover network hosts.
-
airmon-ng
Enable or disable monitor mode on wireless interfaces.
-
arpspoof
Spoof ARP replies to redirect traffic on a local network.
-
wireshark
Network protocol analyzer.
-
john
Password cracker.
-
hydra
Password brute-force tool.
-
iptables
Configure and manage IP packet filter rules.
-
tcpdump
Dump traffic on a network.
-
metasploit
Penetration testing framework.
-
snort
Network intrusion detection and prevention system.
-
gpg
GNU Privacy Guard - encrypt and sign data.
-
sqlmap
Automated SQL injection and database takeover tool.
-
aircrack-ng
Wi-Fi security auditing suite.
-
setoolkit
Social Engineering Toolkit - manipulate people into performing actions.
-
hashcat
Advanced password recovery.
-
volatility
Memory forensics framework.
-
docker
Containerization platform.
-
exploitdb
Exploit database archive.
-
autopsy
Digital forensics platform.
-
mitmproxy
Man-in-the-middle proxy for HTTP and HTTPS.
-
cd
Change current directory.
-
dir
List files and directories in the current folder.
-
echo
Display text on the console.
-
copy
Copy files or directories.
-
del
Delete files.
-
ipconfig
Display IP configuration for all network interfaces.
-
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.
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."
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.
-
type
Display the contents of a text file.
-
cls
Clear the console screen.
-
tasklist
Display a list of running processes.
-
netstat
Display active network connections and listening ports.
-
xcopy
Copy files and directories with additional options.
-
sfc
System File Checker - scan and repair system files.
-
chkdsk
Check and repair disk errors.
-
robocopy
Robust file and folder copying with more options than copy.
-
systeminfo
Display detailed configuration information about the computer.
-
ver
Display the current Windows version.
-
find
Search for a specific string in files.
-
regedit
Registry Editor - modify Windows Registry settings.
-
gpupdate
Force an immediate update of Group Policy.
-
diskpart
Disk Partitioner - manage disk partitions.
-
pnputil
Install or manage plug-and-play devices.
-
schtasks
Schedule tasks to run at specified times.
-
wmic
Windows Management Instrumentation Command-line - system information and configuration.
-
bcdedit
Boot Configuration Data Editor - configure boot options.
-
netsh
Network Shell - configure network settings.
-
powercfg
Power Configuration - configure power settings.
-
cipher
Encrypt or decrypt files and folders.
-
dism
Deployment Image Service and Management Tool - service and repair Windows images.
- **ica
cls**
Display or modify Access Control Lists (ACLs) for files and folders.
-
perfmon
Performance Monitor - monitor and log system performance.
-
gpresult
Display Group Policy settings and applied policies.
-
dcdiag
Domain Controller Diagnostic Tool - diagnose domain controller issues.
-
sc
Service Control - manage services.
-
auditpol
Configure security auditing policies.
-
taskkill
Terminate or stop a running process or application.
-
fsutil
File System Utility - perform various file system operations.
-
wevtutil
Event Viewer Utility - manage event logs.
-
takeown
Take ownership of files or directories.