Junior
What are the main elements you managed in Linux?
sobes.tech AI
Answer from AI
I administered the following elements in Linux:
-
User and Group Management:
- Creating, modifying, deleting users and groups.
- Managing file and directory permissions (owner, group, others, rwx rights).
- Configuring sudo.
-
File System:
- Navigating and working with files and directories (
cd,ls,cp,mv,rm). - Managing disk space (
df,du). - Mounting and unmounting file systems.
- Managing logical volumes (LVM).
- Navigating and working with files and directories (
-
Process Management:
- Viewing running processes (
ps,top). - Terminating processes (
kill,killall). - Managing process priorities (
nice,renice).
- Viewing running processes (
-
Network:
- Configuring network interfaces.
- Managing routing.
- Configuring DNS.
- Working with firewalls (
iptables,firewalld). - Monitoring network activity (
netstat).
-
Package Management:
- Installing, updating, removing packages (
apt,yum,dnf). - Working with repositories.
- Installing, updating, removing packages (
-
Logging:
- Viewing and analyzing logs (
journalctl,grep). - Configuring log rotation (logrotate).
- Viewing and analyzing logs (
-
Initialization System (systemd):
- Managing service and process units.
- Configuring autostart for services.
-
Task Scheduling (cron):
- Creating and managing cron jobs.
-
Security:
- Configuring SSH.
- Managing SELinux/AppArmor.
- Conducting system audits.
Practical example of user and group management:
# Create a user "devuser" with a home directory
useradd -m devuser
# Set a password for the user "devuser"
passwd devuser
# Create a group "developers"
groupadd developers
# Add user "devuser" to the group "developers"
usermod -aG developers devuser
# View groups of user "devuser"
groups devuser