As a Red Hat Linux System Administrator, mastering the art of efficient and effective administration is key to keeping your systems running smoothly. To help you navigate through the complexities of daily tasks, we've crafted a comprehensive cheatsheet that's tailored to your needs. Whether you're a seasoned pro or just starting your journey, this cheatsheet is your go-to reference for conquering administrative challenges like a true expert.
**User and Group Management:**
- Creating users and groups is a breeze:
- `useradd username` - Create a new user
- `passwd username` - Set user password
- `groupadd groupname` - Create a new group
- `usermod -aG groupname username` - Add user to a group
- `usermod -g groupname username` - Change user's primary group
**File and Directory Operations:**
- Organize and manage files and directories effortlessly:
- `mkdir directory_name` - Create a directory
- `rm filename` - Remove a file
- `rm -r directory_name` - Remove a directory (and its contents)
- `cp source_file destination` - Copy a file
- `mv old_name new_name` - Move/rename a file
- `chmod permissions filename/directory` - Change permissions
- `chown owner:group filename/directory` - Change ownership
**Package Management:**
- Keeping your packages up to date is crucial:
- `yum install package_name` - Install a package
- `yum update` - Update all packages
- `yum list installed` - List installed packages
- `yum remove package_name` - Remove a package
**Service Management:**
- Managing services has never been easier:
- `systemctl start/stop/restart service_name` - Control services
- `systemctl enable service_name` - Enable a service at boot
**Network Configuration:**
- Networking made simpler:
- `ip addr show` - Display network interfaces
- `ifconfig interface_name IP_address` - Configure network interface (temporary)
- Edit `/etc/sysconfig/network-scripts/ifcfg-interface_name` - Configure network interface (persistent)
**File Editing:**
- Edit files like a pro:
- `nano filename` - Edit using Nano
- `vim filename` - Edit using Vim
**Disk Management:**
- Keep an eye on your disks:
- `df -h` - Display disk usage
- `du -h directory_name` - Display disk space usage by directory
- `df -hT /dev/partition_name` - Check disk space on a specific partition
**System Information:**
- Get insights into your system:
- `uname -a` - Display system information
- `uptime` - Display system uptime
- `lscpu` - Display CPU information
- `free -h` - Display memory information
**Security:**
- Secure file transfer:
- `scp source_file destination` - Securely copy files over SSH
**Logs:**
- Keep track of system events:
- `journalctl` - View system logs
- `less /var/log/logfile` - View specific log file
You can download the full cheat sheet in link below!
Whether you're orchestrating user management, juggling network configurations, or ensuring the security of your system, this cheatsheet will be your trusty companion on your Red Hat Linux administration journey. Happy administering! 🚀👩💻👨💻 #LinuxAdmin #RedHatLinux #SystemAdministration #Cheatsheet