Linux / Linux Basics
Linux Basics

Linux Basics

A practical introduction to the Linux command line, file system, user management, permissions, and essential tools for working in hybrid cloud environments.
Command Line File System Permissions Users & Groups Package Management Processes

Essential command reference

Navigation and files
# Print working directory
pwd

# List files with details
ls -lah

# Change directory
cd /etc/nginx

# Create a directory
mkdir -p /opt/myapp/logs

# Find files by name
find /var/log -name "*.log" -mtime -7
Permissions and ownership
# Make a script executable
chmod +x deploy.sh

# Set owner and group
chown -R www-data:www-data /var/www/html

# View permissions
ls -l /etc/passwd

# Add user to group
usermod -aG sudo username
Services and processes
# Check service status
systemctl status nginx

# Start, stop, restart
systemctl start nginx
systemctl restart nginx

# Enable on boot
systemctl enable nginx

# View running processes
ps aux | grep nginx