<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Victor Kituku</title>
    <description>The latest articles on DEV Community by Victor Kituku (@victor_kituku_7f9ce64285e).</description>
    <link>https://dev.to/victor_kituku_7f9ce64285e</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3708615%2F61f62ba5-9c20-46fd-9a33-15a8ca083542.png</url>
      <title>DEV Community: Victor Kituku</title>
      <link>https://dev.to/victor_kituku_7f9ce64285e</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/victor_kituku_7f9ce64285e"/>
    <language>en</language>
    <item>
      <title>Getting Started with Linux Server Management</title>
      <dc:creator>Victor Kituku</dc:creator>
      <pubDate>Wed, 21 Jan 2026 16:34:19 +0000</pubDate>
      <link>https://dev.to/victor_kituku_7f9ce64285e/getting-started-with-linux-server-management-3b3d</link>
      <guid>https://dev.to/victor_kituku_7f9ce64285e/getting-started-with-linux-server-management-3b3d</guid>
      <description>&lt;p&gt;Today I learned some of the &lt;strong&gt;fundamental skills needed to manage a Linux server&lt;/strong&gt;. These are core concepts that anyone working with servers, DevOps, or backend systems should understand. Below is a summary of what I learned, with explanations and examples.&lt;/p&gt;




&lt;h2&gt;
  
  
  1. SSH into a Linux Server as Root
&lt;/h2&gt;

&lt;p&gt;SSH (Secure Shell) allows you to securely connect to a remote Linux server.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ssh root@server_ip_address
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;root&lt;/code&gt; is the superuser with full system access&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;server_ip_address&lt;/code&gt; is the public or private IP of the server&lt;/li&gt;
&lt;li&gt;You may be prompted for a password or use an SSH key&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;⚠️ &lt;strong&gt;Note&lt;/strong&gt;: Logging in as &lt;code&gt;root&lt;/code&gt; is powerful but risky. Best practice is to create a regular user and use sudo instead.&lt;/p&gt;




&lt;h2&gt;
  
  
  2. Creating a New User
&lt;/h2&gt;

&lt;p&gt;To create a new user:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;adduser username
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This command:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Creates a home directory&lt;/li&gt;
&lt;li&gt;Sets up default permissions&lt;/li&gt;
&lt;li&gt;Prompts you to set a password&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;adduser victor
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  3. Switching Between Users
&lt;/h2&gt;

&lt;p&gt;To switch from root to another user:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;su - username
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;su - victor
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The &lt;code&gt;-&lt;/code&gt; ensures the user’s environment variables are loaded properly.&lt;/p&gt;




&lt;h2&gt;
  
  
  4. Navigating the File System
&lt;/h2&gt;

&lt;p&gt;Linux uses a hierarchical file system. Some essential navigation commands:&lt;/p&gt;

&lt;h3&gt;
  
  
  Check current directory
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;pwd&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  List files and folders
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;ls
ls&lt;/span&gt; &lt;span class="nt"&gt;-la&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Change directory
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;cd&lt;/span&gt; /path/to/directory
&lt;span class="nb"&gt;cd&lt;/span&gt; ..
&lt;span class="nb"&gt;cd&lt;/span&gt; ~
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  5. Copying Files and Directories
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Copy a file
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;cp &lt;/span&gt;source_file destination
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Copy a directory
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;cp&lt;/span&gt; &lt;span class="nt"&gt;-r&lt;/span&gt; source_directory destination
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;cp &lt;/span&gt;config.txt /etc/myapp/
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  6. Moving and Renaming Files
&lt;/h2&gt;

&lt;p&gt;The &lt;code&gt;mv&lt;/code&gt; command is used for both moving and renaming.&lt;/p&gt;

&lt;h3&gt;
  
  
  Move a file
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;mv &lt;/span&gt;file.txt /new/location/
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Rename a file
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;mv &lt;/span&gt;oldname.txt newname.txt
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  7. Editing Files with Nano
&lt;/h2&gt;

&lt;p&gt;Nano is a beginner-friendly terminal text editor.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;nano filename
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Useful Nano shortcuts:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;CTRL + O&lt;/code&gt; → Save file&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;CTRL + X&lt;/code&gt; → Exit&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;CTRL + K&lt;/code&gt; → Cut line&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;CTRL + U&lt;/code&gt; → Paste line&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Nano is great for quick edits to config files.&lt;/p&gt;




&lt;h2&gt;
  
  
  8. Granting Sudo Privileges
&lt;/h2&gt;

&lt;p&gt;To allow a user to run administrative commands, add them to the &lt;code&gt;sudo&lt;/code&gt; group.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;usermod &lt;span class="nt"&gt;-aG&lt;/span&gt; &lt;span class="nb"&gt;sudo &lt;/span&gt;username
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;usermod &lt;span class="nt"&gt;-aG&lt;/span&gt; &lt;span class="nb"&gt;sudo &lt;/span&gt;victor
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;To apply changes immediately, log out and log back in.&lt;/p&gt;

&lt;h3&gt;
  
  
  Test sudo access:
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;sudo &lt;/span&gt;apt update
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  9. Deleting a User
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Delete a user (keep home directory)
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;deluser username
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Delete a user and their home directory
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;deluser &lt;span class="nt"&gt;--remove-home&lt;/span&gt; username
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;⚠️ Be careful — this action is &lt;strong&gt;irreversible&lt;/strong&gt;.&lt;/p&gt;




&lt;h2&gt;
  
  
  10. Why This Matters
&lt;/h2&gt;

&lt;p&gt;These skills are foundational for:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Managing cloud servers&lt;/li&gt;
&lt;li&gt;Deploying applications&lt;/li&gt;
&lt;li&gt;Securing production environments&lt;/li&gt;
&lt;li&gt;Working with Docker, CI/CD, and automation tools&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Understanding &lt;strong&gt;users, permissions, and file management&lt;/strong&gt; is essential before moving into advanced Linux or DevOps topics.&lt;/p&gt;




&lt;h2&gt;
  
  
  Final Thoughts
&lt;/h2&gt;

&lt;p&gt;Today’s learning covered:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Secure server access via SSH&lt;/li&gt;
&lt;li&gt;User creation and management&lt;/li&gt;
&lt;li&gt;Linux file system navigation&lt;/li&gt;
&lt;li&gt;File operations (copy, move, edit)&lt;/li&gt;
&lt;li&gt;Permission control using sudo&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This is the groundwork for becoming comfortable and confident on any Linux server. 💪🐧&lt;/p&gt;




</description>
      <category>linux</category>
    </item>
  </channel>
</rss>
