Server rental store

Linux Server Administration Guide

Linux server administration encompasses the essential skills needed to manage, maintain, and troubleshoot Linux-based servers. Whether you are running a VPS or a dedicated server, mastering these fundamentals is critical.

Essential Commands

File System Navigation

ls -la # list files with details and hidden files cd /var/www # change directory pwd # print working directory du -sh /var/* # disk usage summary df -h # filesystem disk space

File Operations

cp -r source/ dest/ # copy recursively mv oldname newname # move or rename rm -rf directory/ # remove directory (use with caution) chmod 755 script.sh # set permissions chown user:group file # change ownership

Text Processing

cat /var/log/syslog # view file contents tail -f /var/log/nginx/access.log # follow log in real time grep "error" /var/log/syslog # search for patterns nano /etc/nginx/nginx.conf # edit files

User Management

Creating Users

sudo adduser newuser # create user interactively sudo usermod -aG sudo newuser # add to sudo group sudo passwd newuser # set or change password

Managing Permissions

Linux permissions follow the owner-group-others model:

Category:Server Management