A structured hands-on project to learn and practice core Linux system administration, networking, and automation. Built on Fedora Linux, this repository contains practical scripts and configurations for daily sysadmin tasks.
configs/- Configuration files and templates.logs/- Directory for storing local system diagnostic reports.notes/- Markdown files with command references and theory (e.g.,commands.md).scripts/- Executable Bash scripts for automation and diagnostics.
- Navigating the Linux filesystem (absolute and relative paths).
- Managing file permissions and ownership (
chmod,chown). - Process management and monitoring (
ps,grep,kill). - Reading and filtering system logs (
journalctl,tail). - Disk space management (
df,du).
- Checking network interfaces and routing tables (
ip a,ip r). - Testing external connectivity and DNS resolution (
ping). - Monitoring active ports and listening sockets (
ss -tulpn). - Verifying system firewall status (
firewalld).
sysreport.sh: Generates a quick system health summary (current date, uptime, and root filesystem usage) and logs it for review.backup.sh: Performs an automated, incremental backup of the project directory to a dedicated backup location usingrsync.- Systemd Integration: Configured user-level
systemdservices and timers (backup.serviceandbackup.timer) to automate the backup process hourly in the background. - Shell Customization: Created custom bash aliases (e.g.,
syslog) in.bashrcfor streamlined log reading.
Here are the essential commands learned and used in this project:
File & Directory Operations:
mkdir <dir>- Create a new directory.mkdir -p <path>- Create a directory and its parents if they don't exist.touch <file>- Create an empty file.cp <source> <dest>- Copy files.mv <source> <dest>- Move or rename files/directories.rm <file>- Remove a file.rm -r <dir>- Remove a directory and all its contents recursively.rmdir <dir>- Remove an empty directory.find . -name "<name>"- Search for a file by name in the current directory.
System & Process Monitoring:
df -h- Show available disk space in human-readable format.du -sh <dir>- Calculate the total size of a specific directory.ps -aux- List all running processes.kill <PID>- Terminate a process gracefully (use-9for force kill).
Services & Logs (systemd):
systemctl status <service>- Check if a system service is running.systemctl --user start <service>- Start a user-level service.systemctl --user list-timers- Show active scheduled tasks.journalctl -n 20- Show the last 20 log entries.
To run the system diagnostic script:
./scripts/sysreport.sh > logs/sysreport.txtTo trigger the backup script manually:
./scripts/backup.sh- Linux OS (Tested on Fedora)
rsyncfor incremental backupssystemdfor task scheduling