Difference between revisions of "Linux-Ubuntu/C2/Basic-Commands/English"
Ketkinaina (Talk | contribs) (Created page with "'''Title of the script: Basic Commands''' '''Author: EduPyramids Team''' '''Keywords: linux commands, shell, command interpreter, internal commands, external commands , bash...") |
|||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
| − | '''Title of the script: Basic Commands''' | + | '''Title of the script: Basic Commands in Linux''' |
'''Author: EduPyramids Team''' | '''Author: EduPyramids Team''' | ||
'''Keywords: linux commands, shell, command interpreter, internal commands, external commands , bash, type, path, video tutorial.''' | '''Keywords: linux commands, shell, command interpreter, internal commands, external commands , bash, type, path, video tutorial.''' | ||
| + | |||
| + | '''Prerequisite Tutorial: Synaptic Package Manager''' | ||
| + | |||
{|border=1 | {|border=1 | ||
| Line 13: | Line 16: | ||
'''Title Slide''' | '''Title Slide''' | ||
| − | || Welcome to the Spoken tutorial on''' Basic Commands''' | + | || Welcome to the Spoken tutorial on''' Basic Commands in Linux'''. |
|- | |- | ||
|| '''Slide 2''' | || '''Slide 2''' | ||
| Line 41: | Line 44: | ||
'''Code files''' | '''Code files''' | ||
| − | The following code file is required to practice this tutorial | + | The following code file is required to practice this tutorial. |
1. bc-commands.txt | 1. bc-commands.txt | ||
| − | This file is provided in the Code Files link of this tutorial page | + | This file is provided in the Code Files link of this tutorial page. |
|| The following code file is required to practice this tutorial. | || The following code file is required to practice this tutorial. | ||
| Line 54: | Line 57: | ||
'''Linux Commands''' | '''Linux Commands''' | ||
|| Now let us see what '''Linux''' '''commands''' are? | || Now let us see what '''Linux''' '''commands''' are? | ||
| + | |||
* Linux commands are words used to execute tasks. | * Linux commands are words used to execute tasks. | ||
| − | * Most commands are short, usually no more than four characters '''( | + | * Most commands are short, usually no more than four characters '''(examples ls, who, ps).''' |
* Commands are written in lowercase and are case-sensitive. | * Commands are written in lowercase and are case-sensitive. | ||
|- | |- | ||
| Line 64: | Line 68: | ||
|- | |- | ||
|| Point to the''' $ prompt '''on the '''terminal '''window. | || Point to the''' $ prompt '''on the '''terminal '''window. | ||
| − | || we can see a prompt | + | || we can see a prompt $ sign and a cursor blinking next to it. |
This is where we need to type in a command. | This is where we need to type in a command. | ||
| Line 88: | Line 92: | ||
* Linux supports multiple shells, and users can choose their preferred one. | * Linux supports multiple shells, and users can choose their preferred one. | ||
* The default shell on most Linux systems, including Ubuntu, is bash. | * The default shell on most Linux systems, including Ubuntu, is bash. | ||
| − | * Its executable file is located at / bin/bash. | + | * Its executable file is located at /bin/bash. |
| − | * Bash stands for GNU Bourne-Again Shell and it is part of the GNU suite of tools. | + | * Bash stands for '''GNU Bourne-Again Shell''' and it is part of the '''GNU''' suite of tools. |
|- | |- | ||
|| '''Slide 8''' | || '''Slide 8''' | ||
| Line 95: | Line 99: | ||
'''Shell Program''' | '''Shell Program''' | ||
* Bash is the most popular shell, available on almost all Linux systems. | * Bash is the most popular shell, available on almost all Linux systems. | ||
| − | * Other shells include Bourne shell (sh), C Shell (csh) and Korn shell(ksh) | + | * Other shells include '''Bourne shell''' (sh), C Shell (csh) and Korn shell(ksh) |
|| | || | ||
* Bash is the most popular shell, available on almost all Linux systems. | * Bash is the most popular shell, available on almost all Linux systems. | ||
| − | * Other shells include Bourne shell , C Shell and Korn shell. | + | * Other shells include '''Bourne shell''' , '''C Shell''' and '''Korn shell'''. |
|- | |- | ||
|| Type at the command prompt | || Type at the command prompt | ||
| Line 122: | Line 126: | ||
|- | |- | ||
|| Point to the''' type ps '''command. | || 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. | + | || 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''' | || Type '''echo $PATH''' | ||
|| To see the lists of the directories stored in the PATH environment variable, | || To see the lists of the directories stored in the PATH environment variable, | ||
| − | type '''echo space dollar | + | type '''echo space dollar PATH '''in capital. |
Press Enter. | Press Enter. | ||
| Line 141: | Line 145: | ||
|| | || | ||
* External commands are separate executable files located in the system directories. | * External commands are separate executable files located in the system directories. | ||
| − | * For example '''slash bin (/bin)''',''' slash u s r slash bin (/usr, or slash s bin | + | * For example '''slash bin (/bin)''',''' slash u s r slash bin (/usr/bin), or slash s bin(/sbin)'''. |
* When we run a command, the shell searches through the dollar PATH ($PATH) variable to find the file. | * When we run a command, the shell searches through the dollar PATH ($PATH) variable to find the file. | ||
* Then starts a new "child process" to run it. | * Then starts a new "child process" to run it. | ||
| Line 205: | Line 209: | ||
'''Thank you''' | '''Thank you''' | ||
| − | || This Spoken Tutorial is brought to you by EduPyramids | + | || This Spoken Tutorial is brought to you by EduPyramids Educational Services Private Limited, SINE, IIT Bombay. |
| + | |||
| + | Thank you. | ||
|- | |- | ||
|} | |} | ||
Latest revision as of 15:16, 7 January 2026
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.
Prerequisite Tutorial: Synaptic Package Manager
| 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 $ sign 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. |