0% found this document useful (0 votes)
10 views

Module+6_+Mastering+More+Commands+In+Linux+-+Summary+Notes

Uploaded by

devamurugans179
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views

Module+6_+Mastering+More+Commands+In+Linux+-+Summary+Notes

Uploaded by

devamurugans179
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Module 6: Mastering More Commands In Linux -

Summary Notes

Linux File Permissions


- chmod: Changes file/directory permissions.
- chown: Changes the owner/group of a file/directory.
- Permissions are based on Read (r), Write (w), and Execute (x) for Owner, Group, and
Others.

Networking Commands
- ifconfig: Configures and displays network interface parameters.
- ping: Tests connectivity between two hosts.
- netstat: Displays various network-related info like network connections, routing tables,
interface stats.
- ssh: Securely connects to a remote host.
- wget: Downloads files from the internet.
- dig: Queries DNS servers for domain/IP info.
- host: Performs DNS lookups.

Process Management
- ps: Displays current processes.
- top: Displays real-time system summary and process activity.
- kill: Sends signals to terminate processes.
- pstree: Displays processes in a tree format.

System Information Commands


- uname: Displays system information.
- uptime: Shows how long the system has been running since the last reboot.
- who: Displays who is logged in.
- df: Reports disk space usage.
- du: Estimates file space usage.
- free: Displays memory and swap usage.

Tips for Using Commands:


- Combine commands with pipe (`|`) for powerful operations, e.g., `ps -aux | grep nginx`.
- Use `man <command>` to get detailed help on any command.
- Monitor system health and performance regularly using `top` or `htop`.
- Understand file permissions and ownership to secure your system effectively.
- Regularly check disk space using `df` and `du` to prevent full disk issues.

Best Practices:
- Regularly update your knowledge of commands as Linux evolves.
- Practice using commands in a safe environment before on production systems.
- Use version control for scripts to track changes and revert if necessary.
- Automate repetitive tasks with scripts using bash or other scripting languages.
- Be cautious with commands that require root privileges; double-check before execution.

Mastering Linux commands is fundamental to efficiently managing Linux environments.


Understanding and effectively utilizing these commands can significantly enhance your
productivity and system management capabilities. Keep practicing, exploring, and applying
these commands in real-world scenarios to deepen your understanding and proficiency.

You might also like