Linux-Basics-Complete-Course-With-Notes-Slides

Working with the shell - I

In this section, we will take a look at linux shell in detail.

Linux shell

Shell

The Home Directory

The-Home-Directory

Note : The representation of the home directory is represented as by the ~ (tilde symbol).

Command Prompt

Command and Arguments

Command-and-Arguments

Command Types

Command types in linux can be generally categorized in two types

  1. Internal or Built-in Commands
    • Internal commands are part of the shell itself. It come bundled with it, there are in total about 30 such commands
    • For example: echo, cd, pwd, set e.t.c.
  2. External Commands
    • External commands on the other hand are binary programs or scripts which are usually located in distinct files in the system. They either come with pre-install with the distribution package manager or can be created or installed by the user
    • For Example: mv, date, uptime, cp e.t.c.

To determine a command is internal or external, use type command

Command-Types