<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Iamaruloly on Medium]]></title>
        <description><![CDATA[Stories by Iamaruloly on Medium]]></description>
        <link>https://medium.com/@iamaruloly?source=rss-a7526bcfabc7------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*1M7N-8dlFcBHKFoF</url>
            <title>Stories by Iamaruloly on Medium</title>
            <link>https://medium.com/@iamaruloly?source=rss-a7526bcfabc7------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 20:13:31 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@iamaruloly/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Windows System Administration: GUI, CMD, PowerShell & Security]]></title>
            <link>https://medium.com/@iamaruloly/windows-system-administration-gui-cmd-powershell-security-c4bd3a521b36?source=rss-a7526bcfabc7------2</link>
            <guid isPermaLink="false">https://medium.com/p/c4bd3a521b36</guid>
            <category><![CDATA[windows]]></category>
            <category><![CDATA[information-technology]]></category>
            <category><![CDATA[system-administration]]></category>
            <category><![CDATA[powershell]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Iamaruloly]]></dc:creator>
            <pubDate>Tue, 17 Nov 2026 12:08:22 GMT</pubDate>
            <atom:updated>2026-11-17T12:08:22.704Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8pjXWiN_mFMTXeQm" /><figcaption>Photo by <a href="https://unsplash.com/@philipsfuture?utm_source=medium&amp;utm_medium=referral">Philip Oroni</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Windows System Administration: A Comprehensive Guide to GUI, CMD, PowerShell, Security, and Troubleshooting</h3><p><em>An in-depth technical reference to understanding, administering, securing, and troubleshooting Microsoft Windows through graphical tools and the command line.</em></p><h3>Introduction</h3><p>Windows administration involves much more than navigating File Explorer, installing applications, or changing settings through Control Panel.</p><p>A modern Windows operating system consists of interconnected components responsible for process execution, memory allocation, hardware abstraction, identity management, storage, networking, service orchestration, logging, and security enforcement.</p><p>For IT professionals, understanding these components is essential.</p><p>A desktop support technician may need to diagnose a device-driver issue. A systems administrator may investigate a failed Windows service. A network engineer may examine routing or DNS resolution. A security analyst may review authentication events, process activity, and access controls.</p><p>Although these tasks appear different, they share a common requirement: understanding how Windows operates beneath its graphical interface.</p><p>Windows provides several complementary administration environments:</p><ul><li><strong>Graphical User Interface (GUI):</strong> Settings, Microsoft Management Console, Task Manager, Event Viewer, Device Manager, and other graphical utilities.</li><li><strong>Command Prompt (CMD):</strong> Traditional Windows command-line tools and batch execution.</li><li><strong>Windows PowerShell:</strong> Object-oriented command execution, scripting, automation, and system administration.</li><li><strong>Windows Terminal:</strong> A modern terminal application capable of hosting PowerShell, Command Prompt, and other supported shells.</li><li><strong>Windows Management Infrastructure:</strong> Technologies such as Windows Management Instrumentation (WMI), Common Information Model (CIM), and Windows Remote Management (WinRM).</li></ul><p>The objective of this guide is to connect these technologies into a practical understanding of Windows administration.</p><p>The examples primarily target Windows 11 and supported Windows environments. Availability can vary by Windows edition, version, administrative privileges, and organizational policy.</p><h3>1. Windows Architecture and Operating System Fundamentals</h3><h3>1.1 Understanding Windows NT Architecture</h3><p>Modern desktop and server versions of Windows belong to the Windows NT operating system family.</p><p>Windows NT uses a hybrid kernel architecture, combining kernel-mode components with user-mode services and applications.</p><p>At a high level, Windows can be understood through several layers.</p><h3>User Mode</h3><p>User mode is where most applications execute.</p><p>Examples include:</p><ul><li>Web browsers.</li><li>Office applications.</li><li>File Explorer.</li><li>PowerShell.</li><li>Command Prompt.</li><li>Many Windows services.</li></ul><p>User-mode applications operate within restricted execution environments.</p><p>They cannot directly access arbitrary kernel memory or hardware resources.</p><p>Instead, they request operating system services through supported interfaces.</p><h3>Kernel Mode</h3><p>Kernel mode provides privileged access to core operating system resources.</p><p>Important components include:</p><p><strong>Windows Kernel</strong></p><p>Responsible for low-level execution mechanisms such as thread scheduling and synchronization.</p><p><strong>Windows Executive</strong></p><p>Provides higher-level operating system services, including memory management, object management, process management, and I/O management.</p><p><strong>Device Drivers</strong></p><p>Enable communication with hardware and other kernel-level components.</p><p><strong>Hardware Abstraction Layer (HAL)</strong></p><p>Provides abstractions for selected hardware-specific functionality.</p><p>Understanding the distinction between user mode and kernel mode helps explain why a faulty application may crash independently while a serious kernel-mode failure can affect the entire operating system.</p><h3>1.2 Processes and Threads</h3><p>A process represents an execution environment containing resources such as virtual memory, handles, and security context.</p><p>A thread is a schedulable unit of execution within a process.</p><p>A single process may contain multiple threads.</p><p>Windows assigns each process a process identifier, commonly called a PID.</p><h3>GUI: Task Manager</h3><p>Open:</p><p>Ctrl + Shift + Esc</p><p>Use the <strong>Details</strong> tab to inspect process IDs, process names, and other available properties.</p><h3>CMD</h3><p>tasklist</p><p>Displays running processes.</p><p>tasklist /v</p><p>Displays additional process information.</p><h3>PowerShell</h3><p>Get-Process</p><p>Displays process objects.</p><p>To inspect selected properties:</p><p>Get-Process | Select-Object Name, Id, CPU, WorkingSet64</p><p>This displays process names, IDs, accumulated CPU time, and working-set memory values.</p><p><strong>Professional insight:</strong> High CPU usage, high memory consumption, and application unresponsiveness are different symptoms. Identifying the responsible process is only the first step; determining whether the behavior is expected requires context.</p><h3>2. Windows GUI Administration Tools</h3><h3>2.1 Microsoft Management Console</h3><p>Microsoft Management Console (MMC) provides a framework for hosting administrative snap-ins.</p><p>Many traditional Windows management utilities use this framework.</p><p>Examples include:</p><p>compmgmt.msc — Computer Management.</p><p>eventvwr.msc — Event Viewer.</p><p>services.msc — Services.</p><p>devmgmt.msc — Device Manager.</p><p>diskmgmt.msc — Disk Management.</p><p>certmgr.msc — Certificates for the current user.</p><p>taskschd.msc — Task Scheduler.</p><p>perfmon.msc — Performance Monitor.</p><p>secpol.msc — Local Security Policy, where available.</p><p>gpedit.msc — Local Group Policy Editor, where available.</p><p>These tools can be opened using <strong>Windows + R</strong>, followed by the appropriate command.</p><p>Some snap-ins are unavailable on certain Windows editions.</p><h3>2.2 Computer Management</h3><p>Computer Management consolidates several administrative functions.</p><p>It can provide access to:</p><ul><li>Event Viewer.</li><li>Shared Folders.</li><li>Local Users and Groups, where supported.</li><li>Performance tools.</li><li>Device Manager.</li><li>Disk Management.</li><li>Services.</li></ul><p>Open:</p><p>compmgmt.msc</p><p>This is particularly useful for local troubleshooting because it brings several management tools into one interface.</p><h3>2.3 System Information</h3><p>The System Information utility provides a detailed overview of hardware and software configuration.</p><p>Open:</p><p>msinfo32</p><p>Important areas include:</p><p><strong>System Summary</strong></p><p>Operating system, BIOS/UEFI information, installed memory, and system model.</p><p><strong>Hardware Resources</strong></p><p>Resource assignments and related hardware information.</p><p><strong>Components</strong></p><p>Information about devices and system components.</p><p><strong>Software Environment</strong></p><p>Selected driver, service, and software information.</p><h3>CLI Equivalent</h3><p>systeminfo</p><p>PowerShell:</p><p>Get-ComputerInfo</p><p>These tools are useful when documenting a system baseline or investigating compatibility issues.</p><h3>3. Windows Filesystem and Storage Architecture</h3><h3>3.1 Understanding NTFS</h3><p>NTFS is a commonly used filesystem for Windows system volumes.</p><p>It supports features including:</p><ul><li>Access control lists.</li><li>File and directory permissions.</li><li>Journaling.</li><li>File compression.</li><li>Disk quotas.</li><li>Alternate data streams.</li><li>Encryption through Encrypting File System on supported configurations.</li></ul><p>NTFS permissions are an important part of Windows access control.</p><h3>3.2 Windows Directory Structure</h3><p>Several directories have particular administrative significance.</p><p><strong>C:\Windows</strong></p><p>Contains operating system components.</p><p><strong>C:\Windows\System32</strong></p><p>Contains native Windows system utilities, libraries, and components.</p><p><strong>C:\Windows\SysWOW64</strong></p><p>On 64-bit Windows, contains many components supporting 32-bit applications.</p><p><strong>C:\Program Files</strong></p><p>Common installation location for native 64-bit applications.</p><p><strong>C:\Program Files (x86)</strong></p><p>Common installation location for 32-bit applications on 64-bit Windows.</p><p><strong>C:\Users</strong></p><p>Contains user profile directories.</p><p><strong>C:\ProgramData</strong></p><p>Stores application data intended to be shared across users or used system-wide.</p><p><strong>C:\Windows\Temp</strong></p><p>A location used for certain temporary files.</p><p>Administrators should avoid manually modifying system directories without a specific, validated reason.</p><h3>3.3 Disk Management</h3><h3>GUI</h3><p>Open:</p><p>diskmgmt.msc</p><p>Disk Management displays physical disks, partitions, volumes, and drive-letter assignments.</p><p>Important concepts include:</p><p><strong>Physical Disk</strong></p><p>The underlying storage device.</p><p><strong>Partition</strong></p><p>A defined region of a physical disk.</p><p><strong>Volume</strong></p><p>A storage unit exposed to the operating system, potentially backed by one or more storage structures.</p><p><strong>Filesystem</strong></p><p>The structure used to organize and access data.</p><p><strong>Mount Point</strong></p><p>A location through which a volume is made accessible.</p><h3>PowerShell</h3><p>Get-Disk</p><p>Displays disk information.</p><p>Get-Partition</p><p>Displays partition information.</p><p>Get-Volume</p><p>Displays volume information.</p><p>To inspect filesystem capacity:</p><p>Get-Volume | Select-Object DriveLetter, FileSystem, Size, SizeRemaining</p><p>These commands are useful for inventory and storage troubleshooting.</p><p>Avoid performing partition modifications without backups and a documented change plan.</p><h3>4. Windows Command Prompt Administration</h3><p>Command Prompt remains relevant because many Windows diagnostic tools are traditional executables rather than PowerShell cmdlets.</p><h3>4.1 Filesystem Navigation</h3><p>cd</p><p>Displays the current directory.</p><p>dir</p><p>Lists directory contents.</p><p>dir /a</p><p>Includes hidden and system entries.</p><p>dir /s</p><p>Lists directory contents recursively.</p><p>tree</p><p>Displays a directory hierarchy.</p><p>tree /f</p><p>Includes filenames.</p><p>cls</p><p>Clears the console display.</p><h3>4.2 File Operations</h3><p>Create a practice directory:</p><p>mkdir &quot;%USERPROFILE%\AdminPractice&quot;</p><p>Move into it:</p><p>cd /d &quot;%USERPROFILE%\AdminPractice&quot;</p><p>Create a text file:</p><p>echo Windows Administration &gt; notes.txt</p><p>Read the file:</p><p>type notes.txt</p><p>Copy the file:</p><p>copy notes.txt backup.txt</p><p>Rename the file:</p><p>ren backup.txt notes-copy.txt</p><p>Compare files:</p><p>fc notes.txt notes-copy.txt</p><p>The fc utility compares file contents.</p><h3>4.3 Environment Variables</h3><p>Environment variables store values used by Windows and applications.</p><p>Examples include:</p><p>%USERNAME%</p><p>Current username.</p><p>%COMPUTERNAME%</p><p>Computer name.</p><p>%USERPROFILE%</p><p>User profile directory.</p><p>%TEMP%</p><p>Temporary directory path.</p><p>%PATH%</p><p>Executable search paths.</p><p>To display the current user’s profile directory:</p><p>echo %USERPROFILE%</p><p>To list environment variables:</p><p>set</p><p>Environment variables are useful in scripts because they reduce dependence on hardcoded paths.</p><h3>5. PowerShell for Professional Administration</h3><p>PowerShell is one of the most important tools for Windows administration.</p><p>Unlike traditional shells that primarily exchange text, PowerShell pipelines pass structured objects.</p><h3>5.1 Cmdlets and Verb-Noun Naming</h3><p>PowerShell commands commonly follow a Verb-Noun naming convention.</p><p>Examples include:</p><p>Get-Process</p><p>Get-Service</p><p>Get-ComputerInfo</p><p>Get-EventLog</p><p>Get-WinEvent</p><p>Get-ChildItem</p><p>Get-NetIPConfiguration</p><p>This naming convention improves discoverability.</p><h3>5.2 Discovering Commands</h3><p>To search for commands:</p><p>Get-Command *Service*</p><p>To inspect help:</p><p>Get-Help Get-Service</p><p>To display examples:</p><p>Get-Help Get-Service -Examples</p><p>To inspect command syntax:</p><p>Get-Command Get-Service -Syntax</p><h3>5.3 Working With Objects</h3><p>Example:</p><p>Get-Process | Select-Object Name, Id, CPU</p><p>This selects specific properties from process objects.</p><p>To sort by CPU time:</p><p>Get-Process | Sort-Object CPU -Descending | Select-Object -First 10 Name, Id, CPU</p><p>The result identifies processes with the highest accumulated CPU time, not necessarily the highest instantaneous CPU utilization.</p><p>This distinction matters when interpreting performance information.</p><h3>5.4 Filtering Information</h3><p>Example:</p><p>Get-Service | Where-Object Status -eq &#39;Running&#39;</p><p>Displays running services.</p><p>To select specific fields:</p><p>Get-Service | Where-Object Status -eq &#39;Running&#39; | Select-Object Name, DisplayName, Status</p><p>This illustrates the relationship between retrieval, filtering, and output selection.</p><h3>5.5 Exporting Administrative Data</h3><p>To export a process inventory:</p><p>Get-Process | Select-Object Name, Id, CPU | Export-Csv &quot;$HOME\processes.csv&quot; -NoTypeInformation</p><p>This creates a CSV file in the current user’s home directory.</p><p>Exporting structured information is useful for documentation, inventory, and analysis.</p><h3>6. Windows Identity, Authentication, and Authorization</h3><p>Windows security relies on identities, groups, access tokens, and permissions.</p><h3>6.1 User Accounts</h3><p>Windows supports local accounts and, in managed environments, organizational identities.</p><p>Accounts can be assigned different permissions and group memberships.</p><h3>GUI</h3><p>Open:</p><p><strong>Settings → Accounts</strong></p><p>For supported editions:</p><p>lusrmgr.msc</p><p>Opens Local Users and Groups.</p><h3>CMD</h3><p>whoami</p><p>Displays the current account.</p><p>whoami /all</p><p>Displays detailed identity, group, and privilege information.</p><h3>PowerShell</h3><p>Get-LocalUser</p><p>Lists local users on supported Windows installations.</p><p>Get-LocalGroup</p><p>Lists local groups.</p><p>Get-LocalGroupMember -Group &quot;Administrators&quot;</p><p>Displays members of the local Administrators group.</p><p>The availability of these commands depends on the environment and PowerShell installation.</p><h3>6.2 Security Identifiers</h3><p>Windows uses Security Identifiers (SIDs) to identify security principals.</p><p>A SID is not the same thing as a username.</p><p>Names can change, while SIDs provide persistent identifiers within their intended security context.</p><p>To display the current user’s SID:</p><p>whoami /user</p><h3>6.3 Access Tokens</h3><p>After successful authentication, Windows creates an access token representing the security context used for access checks.</p><p>An access token can contain:</p><ul><li>User SID.</li><li>Group SIDs.</li><li>Privileges.</li><li>Integrity level.</li><li>Other security attributes.</li></ul><p>Access checks evaluate relevant security information and object permissions to determine whether an operation is allowed.</p><h3>6.4 User Account Control</h3><p>User Account Control (UAC) helps manage elevation of administrative privileges.</p><p>It does not replace proper account separation, access control, or endpoint security.</p><p>For routine administration, the principle of least privilege remains important.</p><h3>7. NTFS Permissions and Access Control Lists</h3><h3>7.1 Understanding ACLs</h3><p>An Access Control List (ACL) contains access control entries that define permissions for security principals.</p><p>Windows commonly distinguishes between:</p><p><strong>Discretionary Access Control Lists (DACLs)</strong></p><p>Specify access permissions.</p><p><strong>System Access Control Lists (SACLs)</strong></p><p>Specify auditing rules and certain other security-related information.</p><h3>7.2 GUI: Inspecting Permissions</h3><ol><li>Right-click a file or folder.</li><li>Select Properties.</li><li>Open the Security tab.</li><li>Select Advanced for additional permission information.</li></ol><p>You may encounter:</p><ul><li>Explicit permissions.</li><li>Inherited permissions.</li><li>Ownership.</li><li>Effective access.</li></ul><h3>7.3 CMD: Inspecting ACLs</h3><p>icacls &quot;%USERPROFILE%\Documents&quot;</p><p>Displays permissions associated with the specified directory.</p><h3>7.4 PowerShell: Inspecting ACLs</h3><p>Get-Acl &quot;$HOME\Documents&quot; | Format-List</p><p>Displays ACL-related properties.</p><p>For a concise view:</p><p>(Get-Acl &quot;$HOME\Documents&quot;).Access</p><p>This displays access rules.</p><h3>7.5 Share Permissions vs NTFS Permissions</h3><p>When a folder is accessed over an SMB share, both share permissions and NTFS permissions can affect access.</p><p>The effective access is constrained by the applicable permission checks.</p><p>This distinction is important when troubleshooting a user who can access a folder locally but not through a network share.</p><h3>8. Windows Services and Background Operations</h3><p>Windows services provide functionality that may run independently of an interactive user session.</p><p>Examples include services for updates, networking, printing, and event logging.</p><h3>8.1 GUI: Services</h3><p>Open:</p><p>services.msc</p><p>Important fields include:</p><ul><li>Service name.</li><li>Display name.</li><li>Status.</li><li>Startup type.</li><li>Log On As account.</li></ul><h3>8.2 CMD: Service Control</h3><p>sc query</p><p>Displays service information.</p><p>To inspect Windows Update:</p><p>sc query wuauserv</p><h3>8.3 PowerShell</h3><p>Get-Service</p><p>Displays services.</p><p>Get-Service -Name wuauserv</p><p>Displays Windows Update service information.</p><p>To list running services:</p><p>Get-Service | Where-Object Status -eq &#39;Running&#39;</p><h3>8.4 Service Troubleshooting</h3><p>When investigating a failed service, consider:</p><ol><li>Is the service installed?</li><li>Is it currently running?</li><li>What startup configuration does it use?</li><li>Does it depend on other services?</li><li>Are there relevant errors in Event Viewer?</li><li>Does the service account have the required permissions?</li><li>Has the configuration changed recently?</li></ol><p>Avoid restarting or disabling critical services without understanding their dependencies and operational impact.</p><h3>9. Windows Networking and Connectivity Troubleshooting</h3><p>Windows networking involves interfaces, IP addressing, routing, DNS resolution, and transport-layer communication.</p><h3>9.1 GUI: Network Configuration</h3><p>Open:</p><p><strong>Settings → Network &amp; internet</strong></p><p>Inspect:</p><ul><li>Connection status.</li><li>IP configuration.</li><li>DNS configuration.</li><li>Network adapter information.</li><li>Proxy settings.</li></ul><p>For adapter properties, the traditional Network Connections interface may also be useful.</p><p>Open:</p><p>ncpa.cpl</p><h3>9.2 CMD: IP Configuration</h3><p>ipconfig /all</p><p>Displays detailed network adapter configuration.</p><p>Relevant fields include:</p><ul><li>IPv4 and IPv6 addresses.</li><li>Subnet information.</li><li>Default gateway.</li><li>DNS servers.</li><li>DHCP configuration.</li><li>Adapter identifiers.</li></ul><h3>9.3 DNS Resolution</h3><p>nslookup example.com</p><p>Queries DNS information.</p><p>PowerShell:</p><p>Resolve-DnsName example.com</p><p>Displays DNS resolution results using the DNS client cmdlet.</p><p>DNS resolution failures can occur even when basic IP connectivity is functioning.</p><h3>9.4 Connectivity Testing</h3><p>CMD:</p><p>ping example.com</p><p>PowerShell:</p><p>Test-Connection example.com -Count 4</p><p>These commands can help test reachability, although ICMP filtering may affect results.</p><h3>9.5 TCP Port Testing</h3><p>PowerShell:</p><p>Test-NetConnection example.com -Port 443</p><p>This tests TCP connectivity to the specified destination and port.</p><p>A successful TCP connection does not, by itself, confirm that an application is functioning correctly.</p><h3>9.6 Routing</h3><p>CMD:</p><p>route print</p><p>Displays routing tables.</p><p>PowerShell:</p><p>Get-NetRoute</p><p>Displays route information.</p><h3>9.7 Network Connections</h3><p>CMD:</p><p>netstat -ano</p><p>Displays connections and listening sockets with numeric addresses and PIDs.</p><p>PowerShell:</p><p>Get-NetTCPConnection</p><p>Displays TCP connection information.</p><h3>9.8 A Practical Troubleshooting Sequence</h3><p>When a user reports that a website cannot be reached:</p><ol><li>Confirm the network adapter is connected.</li><li>Inspect the assigned IP configuration.</li><li>Check whether a default gateway is configured.</li><li>Test basic local connectivity.</li><li>Test DNS resolution.</li><li>Test connectivity to the relevant destination and port.</li><li>Review proxy, VPN, firewall, and application-specific settings.</li><li>Compare results with another known-working device where appropriate.</li></ol><p>A structured troubleshooting process is more reliable than changing several settings at once.</p><h3>10. Windows Firewall and Endpoint Security</h3><p>Windows includes security controls intended to protect endpoints and network communications.</p><h3>10.1 Windows Security GUI</h3><p>Open:</p><p><strong>Windows Security</strong></p><p>Important areas include:</p><ul><li>Virus &amp; threat protection.</li><li>Firewall &amp; network protection.</li><li>App &amp; browser control.</li><li>Device security.</li><li>Account protection.</li></ul><p>Feature availability depends on hardware, Windows edition, and organizational management.</p><h3>10.2 Windows Defender Firewall</h3><p>The firewall controls network traffic according to configured rules.</p><h3>GUI</h3><p>Open:</p><p>wf.msc</p><p>This opens Windows Defender Firewall with Advanced Security.</p><p>Administrators can inspect inbound and outbound rules, profiles, and monitoring information.</p><h3>PowerShell</h3><p>Get-NetFirewallProfile</p><p>Displays firewall profile configuration.</p><p>To inspect enabled firewall rules:</p><p>Get-NetFirewallRule -Enabled True | Select-Object -First 20 DisplayName, Direction, Action</p><p>This retrieves a limited sample of enabled rules.</p><h3>10.3 Microsoft Defender Antivirus</h3><p>On supported systems using Microsoft Defender Antivirus:</p><p>Get-MpComputerStatus</p><p>Displays available antivirus status information.</p><p>In managed environments, endpoint protection may be controlled through organizational policies or other security platforms.</p><h3>11. Windows Event Logging and Investigation</h3><p>Windows Event Logs provide records of operating system, application, and security-related activity.</p><h3>11.1 Event Viewer</h3><p>Open:</p><p>eventvwr.msc</p><p>Important log categories include:</p><p><strong>Application</strong></p><p>Events generated by applications.</p><p><strong>System</strong></p><p>Events generated by Windows components, drivers, and services.</p><p><strong>Security</strong></p><p>Events associated with configured security auditing.</p><h3>11.2 PowerShell: Get-WinEvent</h3><p>Retrieve recent System events:</p><p>Get-WinEvent -LogName System -MaxEvents 20</p><p>Retrieve recent Application events:</p><p>Get-WinEvent -LogName Application -MaxEvents 20</p><p>Retrieve recent error-level System events:</p><p>Get-WinEvent -FilterHashtable @{LogName=&#39;System&#39;; Level=2} -MaxEvents 20</p><p>This helps narrow results to errors.</p><h3>11.3 Interpreting Events</h3><p>Important fields include:</p><ul><li>Timestamp.</li><li>Event ID.</li><li>Provider.</li><li>Severity.</li><li>Message.</li><li>Computer name.</li><li>Relevant event data.</li></ul><p>An event ID should not be interpreted in isolation.</p><p>The event provider, operating system version, surrounding events, and affected component all matter.</p><p>For example, an application crash event may identify a faulting application and module, but additional investigation may be necessary to establish the underlying cause.</p><h3>12. Windows Performance Monitoring</h3><p>Performance troubleshooting requires distinguishing symptoms from causes.</p><h3>12.1 Task Manager</h3><p>Useful for quick inspection of:</p><ul><li>CPU utilization.</li><li>Memory consumption.</li><li>Disk activity.</li><li>Network throughput.</li><li>GPU activity.</li></ul><h3>12.2 Resource Monitor</h3><p>Open:</p><p>resmon</p><p>Resource Monitor provides additional visibility into CPU, memory, disk, and network activity.</p><h3>12.3 Performance Monitor</h3><p>Open:</p><p>perfmon</p><p>Performance Monitor supports performance counters and data collection.</p><p>Common areas of investigation include:</p><ul><li>Processor utilization.</li><li>Available memory.</li><li>Disk latency.</li><li>Network throughput.</li><li>Process resource usage.</li></ul><h3>12.4 PowerShell: Performance Counters</h3><p>Example:</p><p>Get-Counter &#39;\Processor(_Total)\% Processor Time&#39;</p><p>Retrieves a processor utilization counter on systems where that counter is available.</p><p>Another example:</p><p>Get-Counter &#39;\Memory\Available MBytes&#39;</p><p>Retrieves available memory information.</p><p>Counter names and availability can vary by system and language configuration.</p><p><strong>Professional insight:</strong> A single performance sample rarely provides enough information to diagnose an intermittent issue. Trends, workload context, and timing are often more useful.</p><h3>13. Windows Update, Maintenance, and Recovery</h3><p>Windows requires regular maintenance to remain supported, secure, and reliable.</p><h3>13.1 Windows Update</h3><h3>GUI</h3><p>Open:</p><p><strong>Settings → Windows Update</strong></p><p>Review available updates, update history, and restart requirements.</p><p>Managed devices may receive updates through organizational tools and policies.</p><h3>13.2 System File Checker</h3><p>Command:</p><p>sfc /scannow</p><p>Checks protected Windows system files and attempts repairs where applicable.</p><p>This command generally requires an elevated terminal.</p><h3>13.3 Deployment Image Servicing and Management</h3><p>DISM provides tools for servicing Windows images and the running operating system.</p><p>A commonly used repair command is:</p><p>DISM /Online /Cleanup-Image /RestoreHealth</p><p>This attempts to repair the component store used by Windows servicing.</p><p>Use these commands as part of a troubleshooting process when there is evidence of system component corruption.</p><h3>13.4 Reliability Monitor</h3><p>Open:</p><p>perfmon /rel</p><p>Reliability Monitor provides a timeline of selected application failures, Windows failures, and other reliability-related events.</p><p>It can be useful for correlating a reported issue with recent system changes.</p><h3>13.5 Recovery Planning</h3><p>Before significant system changes, consider:</p><ul><li>Verified backups.</li><li>Recovery options.</li><li>Device encryption recovery information.</li><li>Administrative access.</li><li>Business impact.</li><li>Rollback procedures.</li></ul><p>A recovery plan should be established before a failure occurs.</p><h3>14. Windows Automation and Scripting Fundamentals</h3><p>Automation helps administrators perform repeatable tasks consistently.</p><p>PowerShell is particularly useful because it supports structured data and scripting.</p><h3>14.1 Variables</h3><p>Example:</p><p>$ComputerName = $env:COMPUTERNAME</p><p>Display the value:</p><p>$ComputerName</p><h3>14.2 Conditional Logic</h3><p>Example:</p><p>if (Test-Path &quot;$HOME\Documents&quot;) { &quot;Documents folder exists&quot; }</p><p>This checks whether the specified path exists.</p><h3>14.3 Working With Collections</h3><p>Example:</p><p>Get-Service | Where-Object Status -eq &#39;Running&#39;</p><p>Returns running services.</p><h3>14.4 Creating Reports</h3><p>Example:</p><p>Get-ComputerInfo | Select-Object CsName, WindowsProductName, OsArchitecture | Export-Csv &quot;$HOME\system-report.csv&quot; -NoTypeInformation</p><p>Creates a basic system information report.</p><h3>14.5 Automation Considerations</h3><p>Professional automation should account for:</p><ul><li>Error handling.</li><li>Logging.</li><li>Permissions.</li><li>Input validation.</li><li>Testing.</li><li>Idempotency.</li><li>Change control.</li><li>Rollback procedures.</li></ul><p>An automated command can affect many systems quickly, so reliability and safety are especially important.</p><h3>15. A Practical Windows Administration Lab</h3><p>This exercise focuses on inspection and documentation rather than modifying critical settings.</p><h3>Step 1: Identify the Operating System</h3><p>GUI:</p><p>Open Settings → System → About.</p><p>CMD:</p><p>systeminfo</p><p>PowerShell:</p><p>Get-ComputerInfo | Select-Object WindowsProductName, OsArchitecture</p><p>Compare the information returned by each method.</p><h3>Step 2: Inspect Running Processes</h3><p>GUI:</p><p>Open Task Manager.</p><p>CMD:</p><p>tasklist</p><p>PowerShell:</p><p>Get-Process | Sort-Object CPU -Descending | Select-Object -First 10 Name, Id, CPU</p><p>Observe differences between the interfaces.</p><h3>Step 3: Inspect Storage</h3><p>GUI:</p><p>Open Disk Management.</p><p>PowerShell:</p><p>Get-Disk</p><p>Get-Partition</p><p>Get-Volume</p><p>Identify the system volume and review its capacity without changing partitions.</p><h3>Step 4: Inspect Network Configuration</h3><p>GUI:</p><p>Open Settings → Network &amp; internet.</p><p>CMD:</p><p>ipconfig /all</p><p>PowerShell:</p><p>Get-NetIPConfiguration</p><p>Compare interface names, IP addresses, and gateway information.</p><h3>Step 5: Inspect Services</h3><p>GUI:</p><p>Open Services.</p><p>PowerShell:</p><p>Get-Service | Where-Object Status -eq &#39;Running&#39;</p><p>Observe which services are active.</p><h3>Step 6: Review Recent System Events</h3><p>GUI:</p><p>Open Event Viewer.</p><p>PowerShell:</p><p>Get-WinEvent -LogName System -MaxEvents 10</p><p>Review event timestamps, providers, and messages.</p><h3>Step 7: Generate a Basic Report</h3><p>PowerShell:</p><p>Get-ComputerInfo | Select-Object CsName, WindowsProductName, OsArchitecture | Export-Csv &quot;$HOME\windows-inventory.csv&quot; -NoTypeInformation</p><p>Open the resulting CSV file to inspect the collected information.</p><p>This demonstrates a fundamental administration workflow: inspect, compare, document, and interpret.</p><h3>16. Professional Windows Administration Principles</h3><p>Technical knowledge is only one part of effective system administration.</p><p>A reliable administrator also follows disciplined operational practices.</p><h3>Principle of Least Privilege</h3><p>Use only the permissions required for the task.</p><p>Avoid unnecessary administrative elevation.</p><h3>Change Management</h3><p>Understand the intended outcome and potential impact before changing system configuration.</p><h3>Documentation</h3><p>Record relevant system information, configuration changes, and troubleshooting findings.</p><h3>Verification</h3><p>Confirm that an action produced the expected result.</p><p>Do not assume success simply because a command completed without an obvious error.</p><h3>Monitoring</h3><p>Use logs, performance counters, and system status information to identify abnormal behavior.</p><h3>Recovery Readiness</h3><p>Maintain appropriate backups and understand recovery options.</p><h3>Security Awareness</h3><p>Treat unfamiliar scripts, executables, and configuration changes cautiously.</p><h3>Continuous Learning</h3><p>Windows administration tools and capabilities evolve.</p><p>Use current Microsoft documentation when working with version-specific features.</p><h3>Conclusion: Understanding Windows as an Operating System, Not Just a Desktop</h3><p>Windows administration becomes more effective when graphical tools and command-line utilities are treated as complementary interfaces rather than separate disciplines.</p><p>The GUI provides accessibility and visual context.</p><p>Command Prompt provides established diagnostic utilities.</p><p>PowerShell provides structured administration and automation.</p><p>Event Viewer supports investigation.</p><p>Performance Monitor supports resource analysis.</p><p>Windows Security provides visibility into endpoint protection.</p><p>Storage and networking tools help explain how the operating system interacts with hardware and infrastructure.</p><p>For an IT professional, the objective is not to memorize every utility or command.</p><p>It is to understand how Windows components interact, recognize the appropriate tool for a problem, interpret the information returned, and make controlled changes when necessary.</p><p>A strong Windows administrator should be able to answer four questions:</p><p><strong>What is happening?</strong></p><p><strong>Why is it happening?</strong></p><p><strong>How can I verify the cause?</strong></p><p><strong>What is the safest and most reliable way to resolve it?</strong></p><p>Those questions turn basic operating system knowledge into practical administration skills.</p><h3>Official References and Further Reading</h3><p><strong>Microsoft Learn — Windows Documentation</strong></p><p><a href="https://learn.microsoft.com/windows/">https://learn.microsoft.com/windows/</a></p><p><strong>Microsoft Learn — Windows Client Documentation</strong></p><p><a href="https://learn.microsoft.com/windows/client-management/">https://learn.microsoft.com/windows/client-management/</a></p><p><strong>Microsoft Learn — PowerShell Documentation</strong></p><p><a href="https://learn.microsoft.com/powershell/">https://learn.microsoft.com/powershell/</a></p><p><strong>Microsoft Learn — Windows Commands</strong></p><p><a href="https://learn.microsoft.com/windows-server/administration/windows-commands/windows-commands">https://learn.microsoft.com/windows-server/administration/windows-commands/windows-commands</a></p><p><strong>Microsoft Learn — Windows Security</strong></p><p><a href="https://learn.microsoft.com/windows/security/">https://learn.microsoft.com/windows/security/</a></p><p><strong>Microsoft Sysinternals</strong></p><p><a href="https://learn.microsoft.com/sysinternals/">https://learn.microsoft.com/sysinternals/</a></p><p><strong>Microsoft Support — Windows</strong></p><p><a href="https://support.microsoft.com/windows">https://support.microsoft.com/windows</a></p><p><em>This article is an independent technical learning resource focused on Windows administration, troubleshooting, and operating system fundamentals. Examples are intended for authorized systems and should be evaluated before use in production environments.</em></p><p><strong>Suggested Medium Topics:</strong> Windows, PowerShell, System Administration, Windows Security, IT Infrastructure</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c4bd3a521b36" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Linux Mint for Beginners: A Practical Guide to Linux Commands]]></title>
            <link>https://medium.com/@iamaruloly/linux-mint-for-beginners-a-practical-guide-to-linux-commands-4f8025e3d5df?source=rss-a7526bcfabc7------2</link>
            <guid isPermaLink="false">https://medium.com/p/4f8025e3d5df</guid>
            <category><![CDATA[operating-systems]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[linux-mint]]></category>
            <category><![CDATA[linux-commands]]></category>
            <category><![CDATA[open-source]]></category>
            <dc:creator><![CDATA[Iamaruloly]]></dc:creator>
            <pubDate>Tue, 17 Nov 2026 11:10:30 GMT</pubDate>
            <atom:updated>2026-11-17T11:10:30.721Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*7IcXk4ltKsGgKWvG" /><figcaption>Photo by <a href="https://unsplash.com/@lukash?utm_source=medium&amp;utm_medium=referral">Lukas</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Linux Mint Explained: A Practical Guide to Linux Commands, System Administration, and the Terminal 🐧</h3><p><em>Understanding Linux from the ground up — from navigating directories to managing permissions, processes, networking, software, and system services.</em></p><h3>Introduction: Why Learning Linux Matters</h3><p>Linux is everywhere, even when we don’t notice it.</p><p>It powers web servers, cloud infrastructure, development environments, embedded devices, and many of the systems that keep modern technology running.</p><p>Yet for someone just getting started, Linux can feel unfamiliar.</p><p>The terminal might look like a blank screen where you’re expected to remember dozens of complicated commands.</p><p>But that’s not really how learning Linux works.</p><p>You don’t need to memorize hundreds of commands to become comfortable with the operating system. What matters is understanding what each command does, why it exists, and when it is useful.</p><p>Linux Mint is an excellent environment for learning these fundamentals.</p><p>It provides a familiar graphical desktop while allowing users to explore the command line, understand system behavior, and gradually develop practical Linux skills.</p><p>This guide focuses on Linux Mint and explains essential terminal commands, file management, permissions, processes, networking, software management, and troubleshooting.</p><p>The examples are designed for beginners and can be practiced on your own Linux Mint computer.</p><h3>1. Understanding Linux Mint and the Terminal</h3><h3>What Is Linux Mint?</h3><p>Linux Mint is a Linux distribution that combines the Linux kernel with system utilities, applications, software repositories, and a graphical desktop environment.</p><p>The main Linux Mint edition is based on Ubuntu, while Linux Mint Debian Edition (LMDE) is based on Debian.</p><p>Linux Mint is commonly available with Cinnamon, MATE, and Xfce desktop environments.</p><p>These desktop environments control how the graphical interface looks and behaves.</p><p>The Linux kernel, however, is responsible for fundamental operating system functions such as:</p><ul><li>Managing processes.</li><li>Allocating memory.</li><li>Communicating with hardware.</li><li>Managing device drivers.</li><li>Supporting filesystems.</li><li>Providing interfaces used by applications.</li></ul><p>Understanding the difference between the kernel, the distribution, and the desktop environment is useful because they are related but separate parts of the system.</p><h3>What Is a Terminal?</h3><p>A terminal is an application that provides a text-based interface for interacting with the operating system.</p><p>When you type a command, a shell interprets it and determines what action to perform.</p><p>Bash is a commonly used shell on Linux Mint.</p><p>To open the terminal, press:</p><p><strong>Ctrl + Alt + T</strong></p><p>A typical prompt looks like this:</p><p>alex@mint-pc:~$</p><p>Breaking it down:</p><ul><li>alex represents the current username.</li><li>mint-pc represents the hostname.</li><li>~ indicates the user&#39;s home directory.</li><li>$ commonly indicates a regular user shell.</li></ul><p>A root shell often uses #, although prompts can be customized.</p><p>The terminal and shell are not the same thing.</p><p>The terminal provides the interface, while the shell interprets commands.</p><p>This distinction becomes important when learning shell scripting and automation.</p><h3>2. Navigating the Linux Filesystem</h3><p>One of the first things to understand about Linux is how files and directories are organized.</p><p>Unlike Windows, where drives commonly appear as C:\ or D:\, Linux uses a unified directory hierarchy beginning at /.</p><p>This directory is called the filesystem root.</p><p>Other filesystems can be attached to this hierarchy through mount points.</p><h3>pwd — Print Working Directory</h3><p>Command:</p><p>pwd</p><p>Purpose:</p><p>Displays the absolute path of your current working directory.</p><p>Example output:</p><p>/home/alex</p><p>Why it matters:</p><p>When navigating through directories, it is easy to forget your current location. pwd provides a quick way to confirm where you are before creating, modifying, or removing files.</p><h3>ls — List Directory Contents</h3><p>Command:</p><p>ls</p><p>Purpose:</p><p>Displays visible files and directories.</p><p>Useful variations:</p><p>ls -l</p><p>Displays a detailed listing, including permissions, ownership, file size, and modification time.</p><p>ls -a</p><p>Displays hidden entries, including filenames beginning with a dot.</p><p>ls -lh</p><p>Displays detailed information with human-readable file sizes.</p><p>ls -lah</p><p>Combines detailed information, hidden entries, and readable sizes.</p><p>For example, a home directory might contain:</p><p>.bashrc</p><p>.profile</p><p>.config</p><p>Documents</p><p>Downloads</p><p>Pictures</p><p>Files beginning with a dot are normally hidden from basic directory listings.</p><p>They are not automatically secure or encrypted. The dot is simply part of a naming convention.</p><h3>cd — Change Directory</h3><p>Command:</p><p>cd Documents</p><p>Moves into the Documents directory relative to your current location.</p><p>Other useful variations:</p><p>cd ..</p><p>Moves to the parent directory.</p><p>cd ~</p><p>Returns to the current user’s home directory.</p><p>cd /</p><p>Moves to the filesystem root.</p><p>cd -</p><p>Returns to the previous working directory.</p><h3>Absolute and Relative Paths</h3><p>An absolute path begins at the filesystem root.</p><p>Example:</p><p>/home/alex/Documents</p><p>A relative path is interpreted from your current working directory.</p><p>Example:</p><p>Documents/notes.txt</p><p>This distinction matters when running commands that refer to files.</p><p>A command may fail simply because the file exists somewhere other than the directory you are currently using.</p><h3>3. Understanding Important Linux Directories</h3><p>Linux follows a structured directory hierarchy.</p><p>Knowing the purpose of common directories helps you understand where applications, configuration files, logs, and user information are stored.</p><h3>/home — User Files</h3><p>The /home directory commonly contains regular users&#39; home directories.</p><p>Example:</p><p>/home/alex</p><p>Personal documents, downloads, user-specific application settings, and other files are commonly stored here.</p><h3>/etc — System Configuration</h3><p>The /etc directory contains system-wide configuration files.</p><p>For example:</p><p>/etc/hostname</p><p>Stores the configured hostname on many Linux systems.</p><p>/etc/os-release</p><p>Contains operating system identification information.</p><p>Many files in /etc require administrative privileges to modify.</p><h3>/var — Variable Data</h3><p>The /var directory contains information that changes while the system operates.</p><p>Examples include logs, caches, and application state.</p><p>The /var/log directory commonly contains system and application logs.</p><h3>/tmp — Temporary Files</h3><p>The /tmp directory provides temporary storage for applications and processes.</p><p>Files stored here may be removed automatically depending on system configuration.</p><h3>/usr — Applications and Shared Resources</h3><p>The /usr directory contains many installed programs, libraries, and shared resources.</p><p>For example:</p><p>/usr/bin</p><p>Contains numerous executable programs.</p><h3>/proc — Process and Kernel Information</h3><p>The /proc directory is a virtual filesystem that exposes information about running processes and the kernel.</p><p>For example:</p><p>cat /proc/cpuinfo</p><p>Displays processor-related information.</p><p>cat /proc/meminfo</p><p>Displays detailed memory statistics.</p><p>These entries are generated dynamically rather than behaving like ordinary documents stored permanently on disk.</p><h3>/dev — Device Interfaces</h3><p>The /dev directory contains special files representing device interfaces.</p><p>Linux provides ways for programs to interact with devices through these interfaces.</p><h3>/root — Root User’s Home</h3><p>The /root directory is normally the home directory of the root user.</p><p>It is different from /, which represents the top of the entire filesystem hierarchy.</p><h3>4. Creating and Managing Files</h3><p>File management is one of the most common activities performed through the terminal.</p><p>Before practicing, create a separate workspace.</p><p>mkdir -p ~/linux-practice</p><p>Then enter it:</p><p>cd ~/linux-practice</p><p>This keeps your experiments away from important system files.</p><h3>mkdir — Create Directories</h3><p>Command:</p><p>mkdir projects</p><p>Creates a directory named projects.</p><p>To create nested directories:</p><p>mkdir -p projects/linux/basics</p><p>The -p option creates missing parent directories.</p><h3>touch — Create Files</h3><p>Command:</p><p>touch notes.txt</p><p>Creates an empty file if it does not already exist.</p><p>If the file already exists, touch normally updates its access and modification timestamps.</p><h3>cp — Copy Files</h3><p>Command:</p><p>cp notes.txt notes-backup.txt</p><p>Creates a copy of the file.</p><p>To copy a directory and its contents:</p><p>cp -r projects projects-backup</p><p>The -r option enables recursive copying.</p><h3>mv — Move or Rename</h3><p>Command:</p><p>mv notes.txt linux-notes.txt</p><p>Renames the file.</p><p>To move a file into another directory:</p><p>mv linux-notes.txt projects/</p><p>The same command can be used for both moving and renaming.</p><h3>rm — Remove Files</h3><p>Command:</p><p>rm notes-backup.txt</p><p>Removes the specified file.</p><p>For interactive confirmation:</p><p>rm -i notes-backup.txt</p><p>The -i option requests confirmation before deletion.</p><p>Unlike deleting a file through a graphical file manager, rm normally does not move it to the Trash.</p><p>Avoid running deletion commands copied from unfamiliar sources without understanding their effects.</p><h3>rmdir — Remove Empty Directories</h3><p>Command:</p><p>rmdir empty-folder</p><p>Removes a directory only if it is empty.</p><p>This makes it useful when cleaning up empty practice directories.</p><h3>5. Reading, Editing, and Inspecting Files</h3><p>Linux administrators frequently work with text files.</p><p>Configuration files, scripts, and many logs can be inspected using simple terminal tools.</p><h3>cat — Display File Contents</h3><p>Command:</p><p>cat notes.txt</p><p>Displays the contents of a file directly in the terminal.</p><p>It works best for relatively short files.</p><h3>less — Read Long Files</h3><p>Command:</p><p>less /etc/services</p><p>Opens a file in a scrollable viewer.</p><p>Useful controls:</p><ul><li>Space — Move forward.</li><li>b — Move backward.</li><li>/word — Search for text.</li><li>n — Move to the next search result.</li><li>q — Quit.</li></ul><h3>head — View the Beginning</h3><p>Command:</p><p>head -n 10 notes.txt</p><p>Displays the first ten lines.</p><p>This is useful when inspecting the beginning of a configuration file or dataset.</p><h3>tail — View the End</h3><p>Command:</p><p>tail -n 10 notes.txt</p><p>Displays the final ten lines.</p><p>For a log file you have permission to read:</p><p>tail -f application.log</p><p>The -f option follows new content as it is appended.</p><p>Press Ctrl + C to stop following the file.</p><h3>nano — Edit Text Files</h3><p>Command:</p><p>nano notes.txt</p><p>Opens the Nano text editor.</p><p>Useful shortcuts:</p><ul><li>Ctrl + O — Save.</li><li>Enter — Confirm the filename.</li><li>Ctrl + X — Exit.</li><li>Ctrl + W — Search.</li></ul><p>Nano is particularly beginner-friendly because it displays common shortcuts at the bottom of the screen.</p><h3>wc — Count Lines, Words, and Bytes</h3><p>Commands:</p><p>wc -l notes.txt</p><p>Counts lines.</p><p>wc -w notes.txt</p><p>Counts words.</p><p>wc -c notes.txt</p><p>Counts bytes.</p><p>This is useful when working with logs, scripts, or large text files.</p><h3>6. Searching for Files and Text</h3><p>Searching becomes increasingly important as you work with larger directories and more complicated systems.</p><h3>find — Locate Files and Directories</h3><p>Command:</p><p>find ~/Documents -type f -name &quot;*.txt&quot;</p><p>Searches for regular files ending in .txt inside Documents.</p><p>Explanation:</p><ul><li>find begins the search.</li><li>~/Documents identifies the starting directory.</li><li>-type f selects regular files.</li><li>-name &quot;*.txt&quot; matches filenames ending in .txt.</li></ul><p>To search for directories:</p><p>find ~/Documents -type d</p><p>To search for files by name regardless of capitalization:</p><p>find ~/Documents -iname &quot;*.pdf&quot;</p><h3>grep — Search Inside Files</h3><p>Command:</p><p>grep &quot;Linux&quot; notes.txt</p><p>Displays lines containing the exact text Linux.</p><p>Useful variations:</p><p>grep -i &quot;linux&quot; notes.txt</p><p>Ignores capitalization.</p><p>grep -n &quot;Linux&quot; notes.txt</p><p>Displays matching line numbers.</p><p>grep -rn &quot;Linux&quot; ~/Documents</p><p>Searches recursively and includes line numbers.</p><h3>which — Find Executables</h3><p>Command:</p><p>which python3</p><p>Displays the path to the executable located through the command search path.</p><p>For a broader explanation of how Bash interprets a command:</p><p>type cd</p><p>This is useful because some commands, such as cd, are shell builtins rather than separate executable programs.</p><h3>7. Linux Users, Groups, and Permissions</h3><p>Linux is designed to support multiple users.</p><p>Each user can have an account, files, processes, and assigned permissions.</p><p>Access control helps prevent one account from freely modifying another account’s information.</p><h3>whoami — Identify Your User</h3><p>Command:</p><p>whoami</p><p>Displays the current effective username.</p><h3>id — View User and Group Information</h3><p>Command:</p><p>id</p><p>Displays information such as the user ID, primary group ID, and group memberships.</p><h3>groups — View Group Membership</h3><p>Command:</p><p>groups</p><p>Displays the groups associated with the current user.</p><h3>Understanding File Permissions</h3><p>Run:</p><p>ls -l</p><p>Example:</p><p>-rw-r--r-- 1 alex alex 120 notes.txt</p><p>Focus on:</p><p>-rw-r--r--</p><p>The first character identifies the file type.</p><p>The next three characters represent owner permissions.</p><p>The following three represent group permissions.</p><p>The final three represent permissions for others.</p><p>Permission symbols:</p><ul><li>r — Read.</li><li>w — Write.</li><li>x — Execute.</li></ul><p>For directories, execute permission allows traversal, while read and write permissions have directory-specific meanings.</p><h3>chmod — Change Permissions</h3><p>Command:</p><p>chmod u+x script.sh</p><p>Adds execute permission for the owner.</p><p>Another example:</p><p>chmod 600 notes.txt</p><p>This grants read and write access to the owner and removes group and other permissions.</p><p>Numeric permissions are calculated using:</p><ul><li>Read = 4.</li><li>Write = 2.</li><li>Execute = 1.</li></ul><p>For example:</p><p>chmod 755 script.sh</p><p>Gives the owner read, write, and execute permissions.</p><p>Group members and others receive read and execute permissions.</p><h3>Understanding sudo</h3><p>Some operations require elevated privileges.</p><p>Linux Mint commonly uses sudo for authorized administrative operations.</p><p>Example:</p><p>sudo apt update</p><p>When prompted, enter your account password.</p><p>The terminal normally does not display characters while the password is being typed.</p><p>Only use sudo when necessary because administrative commands can modify critical system resources.</p><h3>8. Managing Software With APT</h3><p>Linux Mint uses package management tools to install, update, and remove software.</p><p>APT works with configured software repositories and handles package dependencies.</p><h3>Refresh Package Information</h3><p>sudo apt update</p><p>Downloads updated package index information.</p><p>It does not install every available update.</p><h3>View Available Updates</h3><p>apt list --upgradable</p><p>Displays packages with newer versions available.</p><h3>Install Updates</h3><p>sudo apt upgrade</p><p>Installs available upgrades according to APT’s dependency rules.</p><p>Review the proposed changes before confirming.</p><h3>Search for Packages</h3><p>apt search htop</p><p>Searches for packages matching the search term.</p><h3>Inspect a Package</h3><p>apt show htop</p><p>Displays package details, including its description and dependencies.</p><h3>Install a Package</h3><p>sudo apt install htop</p><p>Installs the htop process monitor.</p><h3>Remove a Package</h3><p>sudo apt remove htop</p><p>Removes the package while potentially retaining configuration files.</p><h3>Remove Unneeded Dependencies</h3><p>sudo apt autoremove</p><p>Proposes removing automatically installed dependencies that are no longer required.</p><p>Review the list before proceeding.</p><p>Linux Mint also provides a graphical Update Manager, which is useful for managing regular software updates and kernel updates.</p><h3>9. Monitoring Processes and System Performance</h3><p>A process is an executing instance of a program.</p><p>Each process has an identifier known as a PID, or process ID.</p><p>Understanding processes is important when investigating slow performance, unresponsive applications, or unusual resource usage.</p><h3>ps — Display Processes</h3><p>Command:</p><p>ps aux</p><p>Displays a broad list of running processes.</p><p>Common information includes:</p><ul><li>USER — Process owner.</li><li>PID — Process ID.</li><li>%CPU — CPU usage.</li><li>%MEM — Memory usage.</li><li>COMMAND — Command associated with the process.</li></ul><h3>top — Real-Time Monitoring</h3><p>Command:</p><p>top</p><p>Displays continuously updated information about processes and resource usage.</p><p>Press q to exit.</p><h3>htop — Interactive Process Viewer</h3><p>Command:</p><p>htop</p><p>Provides an interactive process-monitoring interface if installed.</p><p>It can make CPU, memory, and process information easier to explore.</p><h3>pgrep — Find Process IDs</h3><p>Command:</p><p>pgrep -a bash</p><p>Finds matching Bash processes and displays their command lines.</p><h3>kill — Send Signals to Processes</h3><p>Command:</p><p>kill 1234</p><p>Sends the default termination signal to process ID 1234.</p><p>Replace the number with the actual PID of a process you own and intend to stop.</p><p>A process may handle or ignore certain signals, and permissions still apply.</p><h3>10. Checking CPU, Memory, and Storage</h3><p>Linux includes tools for examining how hardware resources are being used.</p><h3>uname — Kernel Information</h3><p>uname -a</p><p>Displays information about the kernel and system architecture.</p><h3>lscpu — CPU Information</h3><p>lscpu</p><p>Displays processor architecture, model information, CPU topology, and other details.</p><h3>free — Memory Usage</h3><p>free -h</p><p>Displays RAM and swap usage in readable units.</p><p>The available memory value is particularly useful because Linux uses memory for caching.</p><p>Low unused memory does not automatically indicate a problem.</p><h3>df — Filesystem Space</h3><p>df -h</p><p>Displays used and available filesystem space.</p><h3>du — Directory Usage</h3><p>du -sh ~/Documents</p><p>Displays the total disk usage of the Documents directory.</p><h3>lsblk — Storage Devices</h3><p>lsblk -f</p><p>Displays block devices, filesystems, labels, UUIDs, and mount information where available.</p><h3>findmnt — Mounted Filesystems</h3><p>findmnt</p><p>Displays the mounted filesystem hierarchy.</p><p>These commands can help investigate insufficient storage, resource usage, and filesystem configuration.</p><h3>11. Understanding Linux Networking</h3><p>Networking commands help explain how your computer communicates with other systems.</p><h3>ip addr — Network Interfaces</h3><p>ip addr</p><p>Displays interfaces and their configured addresses.</p><p>For a shorter overview:</p><p>ip -br addr</p><h3>ip route — Routing Information</h3><p>ip route</p><p>Displays the routing table.</p><p>A default route indicates where traffic is normally sent when no more specific route applies.</p><h3>hostname -I — Local IP Addresses</h3><p>hostname -I</p><p>Displays assigned IP addresses.</p><h3>ping — Connectivity Testing</h3><p>ping -c 4 127.0.0.1</p><p>Tests the local IPv4 loopback interface.</p><p>ping -c 4 example.com</p><p>Sends four ICMP echo requests to a domain.</p><p>A failed ping does not always mean the destination is unavailable, because some systems block ICMP traffic.</p><h3>getent — Name Resolution</h3><p>getent ahosts example.com</p><p>Uses the system’s configured name-resolution mechanisms to look up addresses.</p><h3>ss — Network Sockets</h3><p>ss -tuln</p><p>Displays listening TCP and UDP sockets with numeric addresses and ports.</p><h3>nmcli — NetworkManager</h3><p>nmcli device status</p><p>Displays network device status.</p><p>nmcli connection show</p><p>Lists configured network connections.</p><p>These commands are useful for diagnosing local network problems and understanding how Linux Mint connects to networks.</p><h3>12. Understanding System Services and Logs</h3><p>Linux Mint uses systemd to manage many system services.</p><p>Services are programs that provide functions in the background.</p><p>Examples include network management, logging, and scheduled system operations.</p><h3>systemctl — Service Information</h3><p>systemctl --type=service --state=running</p><p>Lists running services.</p><p>systemctl status NetworkManager</p><p>Displays information about NetworkManager.</p><h3>journalctl — System Logs</h3><p>journalctl -b</p><p>Displays journal entries from the current boot.</p><p>journalctl -n 30</p><p>Displays the most recent 30 entries.</p><p>journalctl -b -p warning</p><p>Displays warning-level and more severe messages from the current boot.</p><p>journalctl -u NetworkManager -n 30</p><p>Displays recent logs associated with NetworkManager.</p><p>Logs help reveal what the system has been doing and can provide clues when troubleshooting problems.</p><p>Always review log contents before sharing them publicly because they may contain private information.</p><h3>13. Pipes, Redirection, and Shell Features</h3><p>One of Linux’s strengths is the ability to combine commands.</p><h3>Pipes</h3><p>The pipe symbol | sends the standard output of one command to another command&#39;s standard input.</p><p>Example:</p><p>ls -la | less</p><p>This displays a directory listing through the less viewer.</p><p>Another example:</p><p>ps aux | grep firefox</p><p>Searches process information for lines containing firefox.</p><h3>Output Redirection</h3><p>The &gt; symbol writes command output to a file.</p><p>Example:</p><p>echo &quot;Learning Linux Mint&quot; &gt; notes.txt</p><p>This replaces the existing contents of the destination file.</p><h3>Appending Output</h3><p>The &gt;&gt; symbol appends output.</p><p>Example:</p><p>echo &quot;More Linux notes&quot; &gt;&gt; notes.txt</p><h3>tee</h3><p>The tee command displays output while writing it to a file.</p><p>Example:</p><p>uname -a | tee system-info.txt</p><h3>Command History</h3><p>history</p><p>Displays previously recorded shell commands.</p><h3>Environment Variables</h3><p>echo &quot;$HOME&quot;</p><p>Displays the home directory.</p><p>echo &quot;$PATH&quot;</p><p>Displays the directories searched for external commands.</p><p>These features are important because they allow simple commands to be combined into more useful workflows.</p><h3>14. Useful Terminal Keyboard Shortcuts</h3><p>A few shortcuts can significantly improve terminal efficiency.</p><p><strong>Ctrl + C</strong></p><p>Interrupts the current foreground command.</p><p><strong>Ctrl + L</strong></p><p>Clears the visible terminal display.</p><p><strong>Ctrl + A</strong></p><p>Moves the cursor to the beginning of the command line.</p><p><strong>Ctrl + E</strong></p><p>Moves the cursor to the end.</p><p><strong>Ctrl + R</strong></p><p>Searches command history.</p><p><strong>Tab</strong></p><p>Attempts command or filename completion.</p><p><strong>Up Arrow</strong></p><p>Recalls previously entered commands.</p><p><strong>Ctrl + D</strong></p><p>Sends an end-of-input indication, which can exit an interactive shell in certain circumstances.</p><h3>15. A Practical Linux Mint Exercise</h3><p>The best way to understand Linux commands is to use them.</p><p>This exercise combines directory navigation, file creation, copying, searching, comparison, and hashing.</p><p>All commands operate inside a practice directory in your home folder.</p><h3>Step 1 — Create a Directory</h3><p>mkdir -p ~/linux-practice</p><h3>Step 2 — Enter the Directory</h3><p>cd ~/linux-practice</p><h3>Step 3 — Create a File</h3><p>echo &quot;Hello Linux Mint&quot; &gt; hello.txt</p><h3>Step 4 — Read the File</h3><p>cat hello.txt</p><p>Expected output:</p><p>Hello Linux Mint</p><h3>Step 5 — Copy the File</h3><p>cp hello.txt backup.txt</p><h3>Step 6 — List Files</h3><p>ls -l</p><p>You should see both files.</p><h3>Step 7 — Search for Text</h3><p>grep &quot;Linux&quot; hello.txt</p><h3>Step 8 — Compare Files</h3><p>diff hello.txt backup.txt</p><p>If the contents are identical, diff normally produces no output.</p><h3>Step 9 — Generate SHA-256 Hashes</h3><p>sha256sum hello.txt backup.txt</p><p>Both files should produce identical digests.</p><p>This demonstrates how Linux commands can work together to perform everyday tasks.</p><h3>16. Common Mistakes Beginners Should Avoid</h3><h3>Running Every Command With sudo</h3><p>Not every operation requires administrative privileges.</p><p>Using sudo unnecessarily increases the potential impact of mistakes.</p><h3>Copying Commands Without Reading Them</h3><p>Always understand what a command does before executing it.</p><p>Pay particular attention to commands that modify permissions, remove files, change system configuration, or execute downloaded scripts.</p><h3>Confusing Root and Home Directories</h3><p>/ represents the filesystem root.</p><p>~ normally represents your home directory.</p><p>/root is normally the root user&#39;s home directory.</p><h3>Assuming Hidden Files Are Protected</h3><p>A filename beginning with a dot is hidden from ordinary directory listings, but it is not automatically protected.</p><h3>Ignoring Updates</h3><p>Linux Mint still requires security updates and routine maintenance.</p><p>The graphical Update Manager provides a convenient way to review and install updates.</p><h3>Treating System Snapshots as Complete Backups</h3><p>Timeshift is useful for system snapshots and recovery.</p><p>However, important personal documents should also be backed up separately.</p><h3>17. Final Thoughts: Learning Linux Is About Understanding the System</h3><p>Learning Linux becomes much easier when you stop viewing commands as isolated instructions.</p><p>Every command reveals something about how the operating system works.</p><p>pwd tells you where you are.</p><p>ls shows what exists in a directory.</p><p>cd helps you navigate.</p><p>chmod introduces access control.</p><p>ps shows running processes.</p><p>free helps explain memory usage.</p><p>ip reveals network configuration.</p><p>apt helps manage software.</p><p>journalctl provides information about system activity.</p><p>These are not just commands to memorize.</p><p>They are tools for understanding your computer.</p><p>Linux Mint provides a comfortable environment for developing these skills because you can use the graphical desktop while gradually exploring the terminal.</p><p>Start with a few commands.</p><p>Practice them.</p><p>Understand their output.</p><p>Then move on to more advanced topics.</p><p>Over time, the terminal stops feeling unfamiliar and starts becoming a practical tool for solving problems.</p><p><strong>The goal isn’t to know every Linux command. The goal is to understand Linux well enough to know which command you need, why you need it, and what it will do.</strong></p><h3>Resources and Further Learning</h3><p><strong>Linux Mint Official Website</strong></p><p><a href="https://linuxmint.com/">https://linuxmint.com/</a></p><p><strong>Linux Mint Documentation</strong></p><p><a href="https://linuxmint.com/documentation.php">https://linuxmint.com/documentation.php</a></p><p><strong>Linux Mint User Guide</strong></p><p><a href="https://linuxmint-user-guide.readthedocs.io/">https://linuxmint-user-guide.readthedocs.io/</a></p><p><strong>GNU Bash Reference Manual</strong></p><p><a href="https://www.gnu.org/software/bash/manual/">https://www.gnu.org/software/bash/manual/</a></p><p><strong>Linux Manual Pages</strong></p><p><a href="https://man7.org/linux/man-pages/">https://man7.org/linux/man-pages/</a></p><p><em>This article is an independent educational guide focused on Linux Mint and practical Linux command-line fundamentals. Commands should be reviewed before use on important systems.</em></p><p>#Linux #LinuxMint #LinuxCommands #OpenSource #SystemAdministration</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4f8025e3d5df" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>