Linux-Ubuntu/C2/Basic-Commands/English
Title of the script: Basic Commands in Linux
Author: EduPyramids Team
Keywords: linux commands, shell, command interpreter, internal commands, external commands , bash, type, path, video tutorial.
| Visual Cue | Narration |
| Slide 1
Title Slide |
Welcome to the Spoken tutorial on Basic Commands in Linux. |
| Slide 2
Learning Objectives |
In this tutorial, we will learn about:
|
| Slide 3
System Requirements |
To record this tutorial, I am using
|
| Slide 4
Pre-requisites |
To follow this tutorial,
|
| Slide 5
Code files The following code file is required to practice this tutorial 1. bc-commands.txt This file is provided in the Code Files link of this tutorial page |
The following code file is required to practice this tutorial.
This file is provided in the Code Files link of this tutorial page. |
| Slide 6
Linux Commands |
Now let us see what Linux commands are?
|
| Screencast:
Press Ctrl, Alt and T keys on your keyboard |
Let us open the terminal by pressing Ctrl, Alt, and T keys on the keyboard. |
| Point to the $ prompt on the terminal window. | we can see a prompt ($) and a cursor blinking next to it.
This is where we need to type in a command. |
| Type at the command prompt:
who >> press Enter |
Type at the prompt who and press Enter.
We can see the name of the users logged in on the terminal. |
| Only Narration | Do you know which entity converts these commands into actual actions?
This job is done by the Command Interpreter called the shell. |
| Slide 7
Shell Program |
|
| Slide 8
Shell Program
|
|
| Type at the command prompt
echo $SHELL |
Let us see which shell we are using?
Type echo space dollar SHELL in capitals and press Enter. |
| Point to /bin/bash | The output shows slash bin slash bash( /bin/bash)
The output shows the present shell that is being used. |
| Type at $: type ps
Highlight the output: ps is /usr/bin/ps |
Now type: type space ps and press Enter.
The output is shown as ps is /usr/bin/ps This shows that ps is a file stored in the usr/bin directory. |
| Point to the type ps command. | When a command is entered, the shell searches listed directories for it. If found, the program runs; otherwise, a “command not found” error appears. |
| Type echo $PATH | To see the lists of the directories stored in the PATH environment variable,
type echo space dollar PATH in capital. Press Enter. |
| Based on how commands are executed, Linux commands are classified into two types:
internal commands and external commands. | |
| Slide 9
External Commands |
|
| Slide 10
Internal Commands |
|
| Type at the prompt: type echo
Press Enter. |
Type at the prompt, type space echo and press Enter. |
| Point to the output. | The output shows echo is a shell builtin.
It means echo command is an internal command. |
| Point to the output.
Type: type cd |
Type, type space cd and press Enter.
The output shows cd is a shell builtin. So cd is also an internal command. |
| We will learn more about commands in the upcoming tutorials. | |
| Slide 11
Summary In this tutorial, we have learnt about:
|
With this we come to the end of this tutorial.
Let us summarise. |
| Slide 12
Assignment As an assignment, Run the following commands and check the output
|
As an Assignment, please do the following. |
| Slide 13
Thank you |
This Spoken Tutorial is brought to you by EduPyramids educational services private limited SINE IIT Bombay. Thank you. |