
Recap. 🙃
In Day-2 of learning DevOps, we covered what Linux is and some of its fundamental commands . Let's continue by learning more about these commands.
Basic commands in Linux.
diff: Find differences between files. Example:diff file1.txt file2.txtcompares two files.cmp: Check if files are identical. Example:cmp file1.txt file2.txtcompares byte by byte.comm: Combine diff and cmp. Example:comm file1.txt file2.txtshows common lines.sort: Sort file content. Example:sort file.txtarranges lines alphabetically.export: Set environment variables. Example:export MY_VAR=valuesets an environment variable.zip: Zip files. Example:ziparchive.zipfiles/creates a zip archive.unzip: Unzip files. Example:unziparchive.zipextracts files from a zip archive.ssh: Secure Shell. Example:ssh user@hostnameconnects to a remote server.service: Start and stop services. Example:service apache2 startmanages services.ps: Display active processes. Example:ps auxlists all processes.killandkillall: Terminate processes. Example:kill -9 PIDforcefully stops a process by its process ID.df: Display disk info. Example:df -hshows disk space usage.mount: Mount file systems. Example:mount /dev/sdb1 /mntmounts a partition to a directory.chmod: Change file permissions. Example:chmod +xscript.shmakes a script executable.chown: Grant ownership. Example:chown user:group file.txtchanges file ownership.ifconfig: Display network interfaces and IP addresses. Example:ifconfig eth0shows network details.traceroute: Trace network hops. Example:traceroutegoogle.comtraces the route to Google’s server.wget: Download files from the internet. Example:wgethttps://example.com/file.zipdownloads a file.ufw: Firewall management. Example:ufw allow 80/tcpallows incoming HTTP traffic.iptables: Base firewall. Example:iptables -A INPUT -p tcp --dport 22 -j ACCEPTallows SSH traffic.
Watch these videos to learn more Linux commands. 🐧
Thank you for reading😉.



