Linux Basics Learned
Linux Basics Learned
1. Basic Commands
Linux provides several basic commands for navigating and managing files in the system.
These include:
- ls: Lists the contents of a directory.
- cd: Changes the current directory.
- cp: Copies files or directories.
- mv: Moves or renames files or directories.
- rm: Removes files or directories.
- mkdir: Creates a new directory.
- touch: Creates a new empty file.
2. File Permissions
In Linux, every file and directory has associated permissions. The permissions control who
can read, write, or execute a file. File permissions are divided into three groups: owner,
group, and others.
3. Process Management
Process management is essential for controlling and monitoring system activity. Common
commands include:
- ps: Displays a list of currently running processes.
- top: Provides a real-time view of system processes and resource usage.
- kill: Terminates a process by its process ID (PID).
4. Networking Commands
Linux provides several commands to manage and troubleshoot network settings and
connectivity:
- ping: Tests the reachability of a host on an IP network.
- ifconfig: Configures network interfaces. It is used to display the current network interface
configurations.
- netstat: Displays network connections, routing tables, interface statistics, masquerade
connections, and multicast memberships.
5. Package Management
Package management systems allow you to install, update, and remove software in Linux.
Different Linux distributions use different package management tools:
- apt: Used in Debian-based distributions like Ubuntu for package management.
- yum: Used in Red Hat-based distributions like CentOS and Fedora for package
management.