#Day12 Linux Command Cheat Sheet

#Day12 Linux Command Cheat Sheet

✔️Navigation and File System:
⚬ls: List the contents of the current directory
⚬cd: Change directory
⚬pwd: Print the working directory
⚬mkdir: Create a new directory
⚬rmdir: Remove a directory

✔️File Manipulation:
⚬cp: Copy a file
⚬mv: Move a file
⚬rm: Remove a file

✔️Text Editing:
⚬nano: Open a text editor
⚬cat: Concatenate files
⚬grep: Search for patterns in files

✔️System Administration:
⚬sudo: Run a command as another user

✔️File and Directory Permissions
⚬chmod: Change the permissions of a file or directory
⚬chown: Change the owner of a file or directory
⚬chgrp: Change the group of a file or directory

✔️Processes:
⚬ps: List all running processes
⚬top: Display a real-time list of running processes
⚬kill: Terminate a running process

✔️Networking:
⚬ping: Send a ping request to a host
⚬ifconfig: Display information about network interfaces
⚬traceroute: Trace the route to a host

✔️Other Useful Commands:
⚬man: Display the manual page for a command
⚬history: Display a list of recently executed commands
⚬clear: Clear the terminal screen

✔️Troubleshooting:
⚬dmesg: Display kernel messages
⚬strace: Trace the system calls made by a process
⚬ltrace: Trace the library calls made by a process

input files. It's particularly useful for batch text editing.

diff - Find Differences Between Files--The diff command is used to find differences between two text files. It highlights changes, making it valuable for code and configuration comparisons.

find - Search for Files and Directories--The find command is used to search for files and directories based on specific criteria. It's invaluable for locating and managing files on a system.

free - Display System Memory Information--The free command provides information about system memory usage, including the amount of free and used memory, swap memory, and kernel buffers.

ssh - Secure Shell--The ssh command is used to connect to remote hosts securely. It allows users to log in to a remote system and execute commands remotely.

ssh-keygen - Generate SSH Key Pairs--ssh-keygen is used to generate public and private key pairs for secure authentication, enabling passwordless remote connections.

nslookup - DNS Lookup Tool--nslookup, short for "Name Server Lookup," is a tool used to check DNS hostnames and IP addresses. It's essential for troubleshooting network-related issues.

curl - Transfer Data Using Various Protocols--curl is a versatile tool for transferring data to or from a server using various protocols, including HTTP, HTTPS, and FTP. It's commonly used for automating web-related tasks.

tr - Translate or Delete Characters--The tr command, short for "translation," is used to translate or delete characters in a text stream. It's a handy tool for text manipulation.

apt-get - Package Management in Debian-Based Systems--The apt-get command is used to manage packages on Debian-based Linux systems. It allows you to install, update, and remove packages and repositories.

df and du - Disk Space and Usage--The df command displays available disk space and usage information, while the du command reports the size of directory trees and their contents.

htop - Real-Time System Resource Monitoring--htop is a real-time system resource monitoring tool that provides an interactive view of processes, system load, and resource utilization.

tnc - Test Network Connection--The tnc command, or "Test Network Connection," is a valuable tool for diagnosing network connectivity issues by providing diagnostic information for a connection.