Useful Linux Commands for debugging and system management

ยท

1 min read

In this blog post, I'll share some of the Linux commands I use regularly.

๐…๐ข๐ฅ๐ž ๐š๐ง๐ ๐ƒ๐ข๐ซ๐ž๐œ๐ญ๐จ๐ซ๐ฒ ๐Œ๐š๐ง๐š๐ ๐ž๐ฆ๐ž๐ง๐ญ:
* ls: List directory contents.
* cd: Change directory.
* pwd: Print working directory.
* mkdir: Create a new directory.
* rm: Remove files or directories.
* cp: Copy files or directories.
* mv: Move or rename files or directories.

๐”๐ฌ๐ž๐ซ ๐š๐ง๐ ๐๐ž๐ซ๐ฆ๐ข๐ฌ๐ฌ๐ข๐จ๐ง ๐Œ๐š๐ง๐š๐ ๐ž๐ฆ๐ž๐ง๐ญ:
* useradd: Add a new user.
* passwd: Set or change user passwords.
* chown: Change file ownership.
* chmod: Modify file permissions.
* su: Switch user.
* sudo: Execute commands with superuser privileges.

๐๐ซ๐จ๐œ๐ž๐ฌ๐ฌ ๐š๐ง๐ ๐’๐ž๐ซ๐ฏ๐ข๐œ๐ž ๐Œ๐š๐ง๐š๐ ๐ž๐ฆ๐ž๐ง๐ญ:
* ps: Display running processes.
* top: Monitor system processes.
* kill: Terminate processes.
* systemctl: Manage system services
* service: Manage services

๐๐ž๐ญ๐ฐ๐จ๐ซ๐ค๐ข๐ง๐  ๐š๐ง๐ ๐’๐ฒ๐ฌ๐ญ๐ž๐ฆ ๐Œ๐จ๐ง๐ข๐ญ๐จ๐ซ๐ข๐ง๐ :
* ifconfig or ip: Configure network interfaces.
* netstat: Display network statistics.
* ping: Test network connectivity.
* df: Show disk space usage.
* free: Display memory usage.
* uptime: Show system uptime.

If you're interested in learning more about DevOps, follow this blog for more such insights in the field of DevOps. This is just the start!

I also post on LinkedIn, you can connect with me there as well.

ย