feat: add post feedback system with like/dislike functionality
feat: implement fingerprint-based voting to prevent duplicate votes
feat: add database setup documentation for likes/dislikes feature
feat: update social icons styling for better mobile responsiveness
feat: add node adapter for standalone server deployment
chore: update dependencies including astro and fingerprintjs
fix: move social icons to top of footer for better visibility
refactor: clean up meta tags in PostHead component
docs: add comprehensive database schema and API documentation
feat(components): add BuyMeCoffee component with animated SVG and hover effects
feat(components): implement BuyMeCoffee donation link with styling and animations
feat(components): create BuyMeCoffee component with responsive design and interactive elements
style: update SVG paths with fill-background class for consistent styling
style: update SVG paths and styling for better visual consistency and hover effects
style: update BuyMeCoffee component with new SVG animations and styling
feat: add hover animations and transitions to BuyMeCoffee component
refactor: reorganize SVG paths and groups in BuyMeCoffee component for better readability
The changes include:
- Adding new SVG animations and styling for the BuyMeCoffee component
- Implementing hover animations and transitions to enhance user interaction
- Refactoring the SVG structure for improved code organization and maintainability
These changes were made to improve the visual appeal and user experience of the BuyMeCoffee component while keeping the codebase clean and maintainable.
refactor(navbar): simplify class names and remove unused comments
feat(navbar): add dark mode text color support and improve mobile menu styling
feat(navbar): enhance footer with copyright, separator, and open-source link
refactor(navbar): streamline mobile menu button styling and transitions
refactor(consts): update social links and icon map
feat(consts): add Instagram and Phone social links
chore(consts): remove LinkedIn and update icon mappings
chore(blog): remove outdated blog posts
feat(blog): clean up content directory by deleting irrelevant posts
chore(content): remove outdated blog posts
The commit removes a large number of outdated blog posts that were no longer relevant or aligned with the current content strategy. This cleanup helps maintain a more focused and up-to-date blog section.
chore: remove outdated blog posts and clean up content directory
Delete multiple outdated blog post files to streamline the content directory and improve maintainability. The removed posts were no longer relevant and cluttered the repository. This cleanup helps focus on current and future content.
chore: remove outdated blog posts and related content
The commit removes a large number of outdated blog posts and related content from the repository. These files were no longer relevant or maintained, and their removal helps clean up the codebase and reduce clutter. The changes include deleting various markdown files under the `src/content/blog/` directory that covered topics like cybersecurity, data analytics, cloud computing, and cryptocurrency regulation. This cleanup aligns with the project's goal to maintain only current and relevant content.
chore(content): remove outdated blog posts
The commit removes a large number of outdated blog posts that were no longer relevant or aligned with the current content strategy. This cleanup helps maintain a focused and up-to-date content repository.
chore: remove outdated blog content
Deleted multiple outdated blog posts to clean up the repository and remove irrelevant content. The posts were no longer aligned with the current focus and direction of the project. This cleanup helps maintain a more organized and relevant codebase.
chore(content): remove outdated blog posts
Deleted multiple outdated blog posts covering various tech topics including development, startups, and certifications. The content was no longer relevant or aligned with current best practices. This cleanup helps maintain a focused and up-to-date content repository.
chore: remove outdated blog posts
The diff shows the deletion of multiple blog post files that appear to be outdated or no longer relevant. This cleanup will help maintain content quality and relevance on the site.
chore(content): remove outdated and irrelevant blog posts
This commit removes a large number of blog posts that were either outdated, irrelevant, or of low quality. The removed posts covered a wide range of topics including quantum computing, machine learning, cloud computing, and various technical tutorials. Many of these posts were auto-generated or contained generic content that didn't provide real value to readers.
The removal of these posts helps:
- Improve overall content quality
- Reduce maintenance burden
- Focus on more relevant and valuable content
- Clean up the repository structure
No existing links or references to these posts were being maintained, so their removal shouldn't impact users. This cleanup aligns with our goal of maintaining a focused, high-quality content repository.
chore(content): remove outdated blog posts
The commit removes a large number of outdated blog posts that were no longer relevant or maintained. This cleanup helps keep the content fresh and focused on current topics.
chore(content): remove outdated blog posts
The commit removes a large number of outdated blog post files that were no longer relevant or needed. This cleanup helps declutter the content directory and removes potentially stale or incorrect information. The files deleted covered a wide range of tech-related topics but were determined to be no longer useful for the current site.
chore(content): remove outdated blog posts
Deleted multiple outdated blog posts covering various tech topics including AI, edge computing, blockchain, and sustainability. These posts were no longer relevant or accurate given recent advancements in technology. The removal helps maintain content quality and ensures readers only access up-to-date information.
chore(content): remove all blog posts to clean up repository
This commit removes all existing blog post content files from the repository. The files were deleted to clean up the content directory and prepare for new content to be added in the future. The removal includes a wide range of blog posts covering various tech topics, indicating a complete content refresh is planned.
chore(content): remove outdated blog posts and articles
The commit removes a large number of outdated blog posts and articles from the content directory. These files were likely stale content that was no longer relevant or useful. The removal helps clean up the repository and maintain only current, valuable content.
*::before,
*::after {
@apply border-border;
}
+
body {
@apply bg-background text-foreground font-sans;
font-feature-settings:
'rlig' 1,
'calt' 1;
}
+
h1,
h2,
h3,
h4,
h5,
h6 {
- @apply font-custom;
+ @apply font-custom scroll-mt-20;
}
+
+ h1 {
+ @apply text-4xl font-bold;
+ }
+
+ h2 {
+ @apply text-3xl font-bold;
+ }
+
+ h3 {
+ @apply text-2xl font-bold;
+ }
+
+ h4 {
+ @apply text-xl font-bold;
+ }
+
+ h5 {
+ @apply text-lg font-bold;
+ }
+
+ h6 {
+ @apply text-base font-bold;
+ }
+
+ p {
+ @apply text-base;
+ }
+
+ a {
+ @apply text-primary hover:text-primary-foreground transition-colors;
+ }
+
+ code {
+ @apply font-mono text-sm bg-muted px-1 py-0.5 rounded;
+ }
+
+ pre {
+ @apply font-mono text-sm bg-muted p-4 rounded overflow-x-auto;
+ }
+
+ blockquote {
+ @apply border-l-4 border-primary pl-4 italic;
+ }
+
+ ul {
+ @apply list-disc pl-5;
+ }
+
+ ol {
+ @apply list-decimal pl-5;
+ }
+
+ li {
+ @apply mb-1;
+ }
+
+ table {
+ @apply w-full border-collapse;
+ }
+
+ th {
+ @apply bg-muted text-left p-2 border;
+ }
+
+ td {
+ @apply p-2 border;
+ }
+
+ img {
+ @apply max-w-full h-auto;
+ }
+
+ hr {
+ @apply border-t border-border my-4;
+ }
}
This commit is contained in:
@@ -1,200 +0,0 @@
|
||||
---
|
||||
title: "10 essential linux commands for aspiring sysadmins"
|
||||
description: "Explore 10 essential linux commands for aspiring sysadmins in this detailed guide, offering insights, strategies, and practical tips to enhance your understanding and application of the topic."
|
||||
date: 2025-04-11
|
||||
tags: ["essential", "linux", "commands", "aspiring", "sysadmins"]
|
||||
authors: ["Cojocaru David", "ChatGPT"]
|
||||
---
|
||||
|
||||
# 10 Essential Linux Commands Every Aspiring SysAdmin Should Know
|
||||
|
||||
Linux commands are the bedrock of system administration. Whether you're provisioning servers, diagnosing issues, or automating repetitive tasks, fluency in these commands is crucial for efficiency and control. This guide will introduce you to **10 Essential Linux Commands Every Aspiring SysAdmin Should Know**, providing practical examples to get you started. Master these, and you'll be well on your way to navigating Linux environments with confidence.
|
||||
|
||||
## 1. `ls` – List Directory Contents: Your First Look
|
||||
|
||||
The `ls` command is your go-to for a quick overview of a directory's contents. It's simple yet powerful.
|
||||
|
||||
### Key Options:
|
||||
|
||||
- `ls -l`: Provides a detailed listing, showing permissions, owner, size, and modification date. Think of it as the "long" format.
|
||||
- `ls -a`: Reveals all files, including hidden files (those prefixed with a dot `.`).
|
||||
- `ls -h`: Displays file sizes in a human-readable format (e.g., 1K, 234M, 2G) for easier interpretation.
|
||||
- `ls -t`: Sorts the output by modification time, with the most recently modified files appearing first.
|
||||
|
||||
Example:
|
||||
|
||||
```
|
||||
ls -lath
|
||||
```
|
||||
|
||||
This command combines several options for a comprehensive listing: long format, all files (including hidden), human-readable sizes, and sorted by modification time.
|
||||
|
||||
## 2. `cd` – Change Directory: Navigating the Filesystem
|
||||
|
||||
The `cd` command is your vehicle for moving around the Linux filesystem.
|
||||
|
||||
### Common Uses:
|
||||
|
||||
- `cd /path/to/directory`: Moves to a directory specified by its absolute path.
|
||||
- `cd ..`: Steps up one directory level (the parent directory).
|
||||
- `cd ~`: Returns you to your home directory.
|
||||
- `cd -`: Takes you back to the previous directory you were in.
|
||||
|
||||
Example:
|
||||
|
||||
```
|
||||
cd /var/log
|
||||
```
|
||||
|
||||
This command will change your current directory to the `/var/log` directory, commonly used for storing system logs.
|
||||
|
||||
## 3. `grep` – Search Text Patterns: Finding Needles in Haystacks
|
||||
|
||||
`grep` is a powerful text search utility. It helps you quickly find specific patterns within files.
|
||||
|
||||
### Useful Flags:
|
||||
|
||||
- `grep -i`: Performs a case-insensitive search.
|
||||
- `grep -r`: Recursively searches through directories and their subdirectories.
|
||||
- `grep -v`: Inverts the match, displaying lines that _do not_ contain the specified pattern.
|
||||
- `grep -n`: Shows the line number where the match was found.
|
||||
|
||||
Example:
|
||||
|
||||
```
|
||||
grep -i "error" /var/log/syslog
|
||||
```
|
||||
|
||||
This command searches the `/var/log/syslog` file for any line containing the word "error", regardless of case.
|
||||
|
||||
## 4. `chmod` – Change File Permissions: Controlling Access
|
||||
|
||||
`chmod` is used to modify file permissions, a crucial aspect of Linux security.
|
||||
|
||||
### Permission Basics:
|
||||
|
||||
- `chmod 755 file`: Sets permissions to `rwxr-xr-x`, granting the owner read, write, and execute permissions, and the group/others read and execute permissions.
|
||||
- `chmod +x script.sh`: Adds execute permission to the `script.sh` file, making it executable.
|
||||
- `chmod u=rwx,g=rx,o=r file`: A symbolic way to set permissions: owner (u) gets read, write, and execute, group (g) gets read and execute, and others (o) get read.
|
||||
|
||||
Example:
|
||||
|
||||
```
|
||||
chmod 644 config.conf
|
||||
```
|
||||
|
||||
This command sets the permissions of `config.conf` to `rw-r--r--`, allowing the owner to read and write, and the group and others to only read.
|
||||
|
||||
## 5. `sudo` – Execute Commands as Superuser: Elevated Privileges
|
||||
|
||||
`sudo` allows you to execute commands with administrative privileges.
|
||||
|
||||
### Best Practices:
|
||||
|
||||
- Use `sudo` only when necessary. Overuse increases security risks.
|
||||
- Use `sudo -u username command` to run a command as a specific user.
|
||||
|
||||
Example:
|
||||
|
||||
```
|
||||
sudo apt update
|
||||
```
|
||||
|
||||
This command updates the package lists for upgrades (requires root privileges).
|
||||
|
||||
## 6. `df` – Check Disk Space Usage: Keeping an Eye on Storage
|
||||
|
||||
`df` provides information about disk space usage on your system.
|
||||
|
||||
### Helpful Options:
|
||||
|
||||
- `df -h`: Displays sizes in a human-readable format (KB, MB, GB).
|
||||
- `df -T`: Shows the filesystem type of each mounted filesystem.
|
||||
|
||||
Example:
|
||||
|
||||
```
|
||||
df -hT
|
||||
```
|
||||
|
||||
This command shows disk space usage in a human-readable format, including the filesystem type.
|
||||
|
||||
## 7. `top` – Monitor System Processes: Real-Time Insights
|
||||
|
||||
`top` provides a dynamic, real-time view of system processes, CPU usage, memory consumption, and other important metrics.
|
||||
|
||||
### Key Features:
|
||||
|
||||
- Press `q` to exit `top`.
|
||||
- Press `P` to sort processes by CPU usage.
|
||||
- Press `M` to sort processes by memory usage.
|
||||
- Press `1` to show each CPU core individually.
|
||||
|
||||
Example:
|
||||
|
||||
```
|
||||
top
|
||||
```
|
||||
|
||||
Simply running `top` will launch the interactive process monitor.
|
||||
|
||||
## 8. `tar` – Archive Files: Bundling and Compression
|
||||
|
||||
`tar` archives multiple files into a single file, often combined with compression tools like `gzip` or `bzip2`.
|
||||
|
||||
### Common Commands:
|
||||
|
||||
- `tar -cvf archive.tar files/`: Creates a new archive named `archive.tar` containing the files and directories in `files/`.
|
||||
- `tar -xvf archive.tar`: Extracts the contents of `archive.tar`.
|
||||
- `tar -czvf archive.tar.gz files/`: Creates a compressed archive using gzip.
|
||||
- `tar -xvzf archive.tar.gz`: Extracts a gzip-compressed archive.
|
||||
|
||||
Example:
|
||||
|
||||
```
|
||||
tar -czvf backup.tar.gz /home/user
|
||||
```
|
||||
|
||||
This command creates a gzip-compressed archive named `backup.tar.gz` containing the contents of the `/home/user` directory.
|
||||
|
||||
## 9. `ssh` – Secure Remote Access: Connecting to Remote Servers
|
||||
|
||||
`ssh` provides a secure way to connect to remote servers.
|
||||
|
||||
### Basic Usage:
|
||||
|
||||
- `ssh user@hostname`: Connects to the remote server `hostname` as the user `user`.
|
||||
- `ssh -p port user@host`: Connects to the remote server on a custom port.
|
||||
|
||||
Example:
|
||||
|
||||
```
|
||||
ssh admin@192.168.1.100
|
||||
```
|
||||
|
||||
This command connects to the server at IP address `192.168.1.100` as the user `admin`.
|
||||
|
||||
## 10. `systemctl` – Manage System Services: Controlling Daemons
|
||||
|
||||
`systemctl` is used to manage systemd services, which are background processes that run on your system.
|
||||
|
||||
### Essential Commands:
|
||||
|
||||
- `systemctl start service`: Starts a service.
|
||||
- `systemctl stop service`: Stops a service.
|
||||
- `systemctl restart service`: Restarts a service.
|
||||
- `systemctl status service`: Shows the current status of a service.
|
||||
- `systemctl enable service`: Enables a service to start automatically on boot.
|
||||
- `systemctl disable service`: Disables a service from starting automatically on boot.
|
||||
|
||||
Example:
|
||||
|
||||
```
|
||||
systemctl restart nginx
|
||||
```
|
||||
|
||||
This command restarts the `nginx` web server.
|
||||
|
||||
## Conclusion
|
||||
|
||||
These **10 Essential Linux Commands** are a solid foundation for any aspiring system administrator. Regular practice and exploration will solidify your understanding and unlock their full potential. Keep experimenting, consulting the `man` pages (e.g., `man ls` for `ls` command documentation), and building real-world projects. The command line is a powerful tool – embrace it! Good luck!
|
||||
Reference in New Issue
Block a user