ALL LINUX
  • Linux 4 Network Engineers
  • Introduction
    • Untitled
  • LINUX - "HOW-TO-DO"
    • SYSADMIN
      • MONITORING
        • Stress Testing Linux
      • DEBIAN APT
      • DISK
        • Directory Share - NFS,CIFS
        • LOGICAL VOLUME MANAGEMENT (LVM)
        • FILE SYSTEMS
          • ZFS
      • FIND & DU
      • SECURITY
        • SSH Open Format
      • USERS
        • Accounts, Groups etc
        • Assess User Activity
    • SCRIPTING & TEXT EDIT
      • BASH SCRIPTING & PROJECTS
        • 1) How to Build a Bash Script
        • 2) Variables & Shell Expansions
        • 3) Processing Command Lines
        • 4) Requesting User Input
      • VIM Editor
        • Vim Tips
      • GREP, EGREP & REGEX
        • REGEX
        • REGEX2
        • NINJA-REGEX
      • SED and AWK
  • Containers
    • MULTIPASS
    • LXD LXC
    • KUBERNETES (K8's)
  • FOSS
    • CUMULUS LINUX
      • Fundamentals
        • Cumulus Linux Introduction
        • Cumulus Linux Architecture
        • Cumulus VX
        • Initial Setup
      • NCLU
  • Linux Prof Inst Cert [LPIC-1]
    • LPIC 1
      • CH1-Linux Command-Line Tools
        • Work on the Command Line
        • Streams, Pipes and Redirects
          • Text Streams Using Filters
        • Search Text Files - Regular Expressions
        • Basic File Editing
      • CH2-Managing software and Processes
      • Ch3-Configuring Hardware
      • Ch4-Managing Files
      • Ch5-Booting, Initialising and Virtualising Linux
Powered by GitBook
On this page
  • Distributions
  • Linux Shell Options

Was this helpful?

  1. Linux Prof Inst Cert [LPIC-1]
  2. LPIC 1
  3. CH1-Linux Command-Line Tools

Work on the Command Line

Distributions

Lots of different 'distros' out there. Think of the kernel as a car's engine and a distro as the car's features. Whilst all distro's have the Linux kernel (car engine) at their core, their various features are different. Think of a car rental, you have to take a few minutes to adjust the seat, view the various car controls and figure how to use them prior to driving off. This is the same with different distro's.

As of July 2020, the recommended distro's to use are Ununtu 18.04 and Centos 7 Enterprise. I use Multipass and have installed these 2 on my Windows 10 laptop. Another option is to install openSUSE 15 Leap distro??

Linux Shell Options

  • BASH (The GNU Bourne Again shell - Bash) - 1989. Unix used the Bourne shell (named after its creator), Available for Windows 10, macOS and Solaris

  • DASH (Debian Almquist Shell - Dash) - 2002. A smaller shell, with no command line editing or command history, but has a faster shell program execution (script)

  • KornShell -1983 and was proprietary until 2000. David Korn,Bell Labs

  • tcsh - 1981. The TENEX C Shell is a upgraded version of the C Shell.

  • Z shell - 1990 - incorporates features from Bash, Korn Shell and tcsh

On Unix systems the system shell (bash) was installed here /bin/sh On Linux systems the /bin/sh file is a symbolic link. On Centos the symbolic link points to the Bash shell whilst on Ubuntu it points to the Dash shell (Debian Almquist shell)

[centos@vm1 ~]$ readlink /bin/sh
bash

centos@vm1 ~]$ echo $SHELL
/bin/bash
ubuntu@vm2:~$ readlink /bin/sh
dash

ubuntu@vm2:~$ echo $SHELL
/bin/bash

PreviousCH1-Linux Command-Line ToolsNextStreams, Pipes and Redirects

Last updated 4 years ago

Was this helpful?