chmod: Changes file permissions (read, write, execute).
- Example:
chmod +x script.sh(makes a script executable).
chmod: Changes file permissions (read, write, execute).
chmod +x script.sh (makes a script executable).chown: Changes file owner.
chown kali:kali file.txtid: Prints real and effective User IDs (UIDs) and Group IDs (GIDs).
ip a (or ifconfig): Displays network interface information (IP addresses, MAC addresses).
ping: Tests connectivity to a host on a network.
ping google.comnetstat: Displays network connections, routing tables, and interface statistics.
ssh: Secure Shell client for securely connecting to a remote machine.
ssh user@192.168.1.10wget: Downloads files from the web non-interactively.
curl: Transfers data from or to a server, supporting various protocols (used for web requests).
traceroute: Displays the route/path a packet takes to reach a host.
grep: Searches for a pattern in files or command output. (One of the most powerful commands).
cat logfile.txt | grep "ERROR" (searches for “ERROR” in the log file).