Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 7
Essential Unix/Linux Commands
for Database Management
A Guide to File Management, Permissions, Process, Disk, and Network Monitoring 1. File Management • • ls – List directory contents • • cd – Change directory • • cp – Copy files • • mv – Move or rename files • • rm – Remove files • • mkdir – Create directories • • rmdir – Remove empty directories 2. Permissions • • chmod – Change file permissions • • chown – Change file owner and group • • umask – Set default file permissions 3. Process Management • • ps – View active processes • • top – Monitor system resources in real-time • • kill – Terminate processes • • nohup – Run commands in the background 4. Disk and System Monitoring • • df – Show disk space usage • • du – Estimate file space usage • • free – Display memory usage • • uptime – Show how long the system has been running 5. Networking • • ping – Test network connectivity • • netstat – Display network connections • • ss – Show socket statistics 6. Database-Specific Commands • • sqlplus (Oracle) or mysql – Access DB command-line tools • • Backup and restore scripts often integrate Unix commands like tar and gzip.