Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device.
Atlassian cookies and tracking notice, (opens new window)
Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window)
/
Introduction to the Linux Operating System
Updated Jan 24, 2022

    Introduction to the Linux Operating System

    Jan 24, 2022
      • 1 References We Like
      • 2 What is Linux?
      • 3 Working with Linux
      • 4 Connecting to a Server
      • 5 Navigating Around the Command Line
      • 6 Linux Permissions Demystified 

      References We Like

      New to Linux? Looking for an easy to understand online tutorial or book? Check this out: The Linux Command Line by William E Shotts, jr.

      What is Linux?

      Just like Windows XP, Windows 7, Windows 8, and Mac OS X, Linux is an operating system. An operating system is software that manages all of the hardware resources associated with your desktop or laptop. To put it simply – the operating system manages the communication between your software and your hardware. Without the operating system (often referred to as the “OS”), the software wouldn’t function. For more information, visit Linux.com

      Working with Linux

      While some versions of Linux include a graphical desktop, similar to Windows, server implementations of Linux however do not generally include a graphical interface. Instead, all work is done by entering commands at a text prompt called the Command Line.

      Connecting to a Server

      Logging into Linux

      To log into a Linux server you will need a user account name and password. If you are connecting to the server remotely you would have provided these as part of the SSH command, or Putty configuration. If you are using the Opmantek VM you can find the default passwords HERE: Default Credentials (Passwords) for NMIS8 VM.

      Logging In as Root

      If the last character of your Linux Prompt is # instead of $ you are logged in as root, which has superuser access. You should never be logged in as root, unless what you are doing absolutely requires that level of access.

      Navigating Around the Command Line

      The Linux Command Line, or Prompt, allows you to navigate around the file and folder structure, search for information, run programs, create scripts, and configure the server and applications.  The sections below provide a basic overview of commands you may find useful while working with Linux.

      Understanding the Linux Prompt

      The Linux Prompt provides several valuable pieces of information. The example command prompt below provides the current user (root), the host name of the server or IP address if the hostname isn't set (demo.opmantek.com) , the current directory (~) and the level of permissions you are using (# is for root access, )

      Linux Prompt
      Last login: Wed May 23 14:26:20 2018 from 192.168.10.10 [root@demo.opmantek.com ~]#

      Navigating Around / Changing Directories

      Linux organizes programs into files and folders, which are stored on drives or shares. Folders provide the concept of an organizational hierarchy in each share.

      How to Determine Where You Are NOW

      Typing pwd at the command line, then press Enter will provide the path to your current folder. Notice that the prompt indicates you are in the nmis8 folder, but the pwd command provides the full path /usr/local/nmis.

      [root@demo.opmantek.com nmis8]# pwd /usr/local/nmis8

       

      Showing a Listing of Files and Folders in the Current Directory

      As we showed above, the Linux Prompt will show you the name of the current folder, or directory, you are in. To provide a list of the files and folders in the current directory you can type ls -l at the command prompt, then press Enter. The ls command will list the directory contents, the -l is an argument passed to the ls command, which tells the command to use the long listing format. There are many more arguments available for the ls command, they can be found on the official Manual page HERE: http://linuxcommand.org/lc3_man_pages/ls1.html

      [root@demo.opmantek.com nmis8]# ls -l total 16576 drwxrwx--- 5 nmis nmis 4096 May 12 01:56 admin drwxrwx--- 2 nmis nmis 4096 Apr 28 02:45 bin drwxrwx--- 2 nmis nmis 4096 Dec 1 03:22 cgi-bin drwxrwx--- 5 nmis nmis 4096 May 23 15:03 conf lrwxrwxrwx 1 nmis nmis 21 Apr 15 2014 database -> /data/nmis8/database/ -rw-rw---- 1 nmis nmis 10626 Feb 10 2016 find.patch drwxrwx--- 5 nmis nmis 4096 Dec 1 03:22 htdocs -rw-rw---- 1 nmis nmis 11197 Dec 29 2015 index.html drwxrwxr-x 6 nmis nmis 4096 Dec 1 03:22 install -rw-rw---- 1 nmis nmis 12335212 Dec 1 03:25 install.log -rwxrwx--- 1 nmis nmis 62527 Nov 15 2017 install.pl drwxrwx--- 4 nmis nmis 4096 Dec 1 03:22 lib -rw-rw---- 1 nmis nmis 35801 Nov 15 2017 LICENSE lrwxrwxrwx 1 nmis nmis 13 Apr 15 2014 logs -> /var/log/nmis drwxrwx--- 5 nmis nmis 4096 Apr 15 2014 menu drwxrwx--- 3 nmis nmis 4096 Dec 1 03:22 mibs drwxrwx--- 2 nmis nmis 20480 Dec 1 17:53 models drwxrwxr-x 2 nmis nmis 20480 Dec 1 03:22 models-install -rw-rw---- 1 nmis nmis 1582 Nov 15 2017 README lrwxrwxrwx 1 nmis nmis 25 Apr 6 02:06 var -> /media/ramdisk/nmis8/var/

       

      Linux Permissions Demystified 

      A good read in this regard: https://blog.superuser.com/2011/04/22/linux-permissions-demystified/

       

       

      Recent updates

      Loading recently updated content…

      Search for...

        Community Home

        opCommon
        • Downloads
          Downloads
        • Downloads
          Downloads
        • Downloads
          Downloads
        • How-to articles
          How-to articles
        Results will update as you type.
        • Why opCharts Nodes and Administration Nodes have a different Node count
        • Common Node Properties
        • Admin Outages API V2
        • AB1-ABI4 Upgrade Pre-Flight Checklist
        • Accessibility for Applications
        • Activating a 20 node free forever license process
        • Administration
        • Admin Outages API
        • Admin Outages API V3 draft
        • Apache 2.4 on CentOS 6.9
        • Application Support for Dark Mode
        • Automating Admin Tasks Including Node Management
        • Change Management Best Practices
        • Configuration
        • Configuration Options for Server Performance Tuning
        • Configuring Virtual Host SSL or TLS on the Opmantek Virtual Machine
        • Delegated Authentication
        • Deploying Your NMS
        • Enabling DNS Server on Opmantek NMIS8 VM
        • Encryption of Secrets
        • Finding logged entries of processes killed by OOM Killer
        • Find License Information
        • Firstwave API Solutions
        • Firstwave Functional Capabilities - FCAPS
        • Firstwave NMIS8 Virtual Appliance: Release Notes
        • FirstWave Virtual Machine: Installation and Getting Started
        • General Troubleshooting Checklist
        • Getting Started, Configuring the Applications
        • Getting Started, Configuring the Virtual Machine
        • Getting Started with Open-AudIT
        • Getting Started with Opmantek Applications
        • Google Maps API Key
        • High Volume SNMP Trap Processing
        • How to make configuration changes to opCommon.nmis and other files
        • NMIS 2026 Security Release
        • How To Select a Network Monitoring Solution
        • Installing and Refreshing Your License
        • Installing NMIS9 Compatible OMK Applications in a Disconnected (Air-Gapped) Environment
        • Introduction to the Linux Operating System
        • JSON Configuration Files
        • Access Rights in the 2026 OMK Security releases
        • Keeping Track of your Licenses
        • Migrating NMIS and Modules from CentOS 6 to CentOS 7
        • MongoDB Data Migration, Backup and Restore
        • MongoDB Installation
        • Moving to systemd
        • Multiple Open Ports for Opmantek applications
        • NMIS/OMK Timezone Configuration
        • Node Administration with opnode_admin
        • OMK Authentication Methods
        • OMK::Common public methods
        • OMK Common Settings to Consider Changing
        • OpenAudIT-NMIS Integration
        • opIntegration Home
        • Opmantek Products and Apache Log4J Vulnerability - Log4Shell CVE-2021-44228
        • Opmantek Products and Apache Log4J Vulnerability - Log4Shell CVE-2021-45105
        • Opmantek Support Case Opening Checklist
        • Opmantek System Configuration
        • Firstwave VM Installation and Getting Started
        • Packages and Modules Summary
        • FirstWave VM Release Notes
        • Parallel opReports Solution: New platform opReports 3.4.1 running in parallel with old platform OMK Apps including opReports 3.2.0
        • Parallel opReports Solution: New platform opReports 3.5.2 running in parallel with old platform OMK Apps including opReports 3.2.0
        • Product Compatibility
        • Product Compatibility NMIS 8
        • Redis and Opmantek Applications
        • Reducing a Server's Memory Footprint when OMK applications are installed
        • Relocating NMIS9 and OMK logs
        • Required packages for installing our products
        • Restore Backup after Install
        • Securing Opmantek Applications
        • Security Configurations
        • Smarter non-interactive installation with Preseeding
        • SSO for Firstwave Applications
        • Supported Time Formats
        • The FirstWave Installer
        • The Opmantek Installer
        • The Opmantek Support Tool
        • Training
          Questions
          Calendars

        You‘re viewing this with anonymous access, so some content might be blocked.
        {"serverDuration": 13, "requestCorrelationId": "3e82021efe304f8f96b0f923adc087b4"}