Shell scripting for linux beginners. Get started with Linux

Learn the Linux 101 and get started with shell scripting. Zoom on timing will help you to learn on the go.
4.1 (50 ratings) Instead of using a simple lifetime average, Udemy calculates a
course's star rating by considering a number of different factors
such as the number of ratings, the age of ratings, and the
likelihood of fraudulent ratings.
1,551 students enrolled
$150
Take This Course
  • Lectures 33
  • Contents Video: 3 hours
    Other: 1.5 hours
  • Skill Level Beginner Level
  • Languages English
  • Includes Lifetime access
    30 day money back guarantee!
    Available on iOS and Android
    Certificate of Completion
Wishlisted Wishlist

How taking a course works

Discover

Find online courses made by experts from around the world.

Learn

Take your courses with you and learn anywhere, anytime.

Master

Learn and practice real-world skills and achieve your goals.

About This Course

Published 11/2014 English

Course Description

Linux is a very powerful operating system and has become a must mention on resume to get a successful job.

In this course we will take things from the scratch. We will first have a detailed look in various questions that a Linux beginner always face before getting started. After that we will learn to install Linux in virtual box or VMplayer so that your windows or MAC remains still available for you. Unfortunately, if anything goes wrong, you can just uninstall the software and reinstall it.

Further, we will then explore basics of Linux like file system, basic commands and permissions. Linux file system is bit different than windows, so a Linux user must understand about file structure and permissions to execute the scripts that we will learn to create in this course.

Further we will move to shell scripting part and explore the basics like variable declaration, basic operation and conditionals. In the latter part of the course, we will learn about various loops and loop control keywords.

Linux is very easy to use operating system but the reason it sounds bit intimidating is that you have to learn few basic commands. But things have changed now, Linux can also run completely on the Graphical User interface too. The cool visual effects in Ubuntu and fedora have become a reason for many kinds to get started with linux.

Here are some facts about linux:

    ·Linux nominated as world’s second most secure operating system after OpenBSD, which is UNIX based. For eg. The super computer takes about 5 years to break the password of the root user.

    ·Linux distributions have become increasingly popular on mainframes in the last decade due to pricing.

    ·Some 95% of the servers used by Hollywood's large animation studios are powered by Linux.

    ·Google runs its web servers on Linux.

    So, lets get started with your first linux class.

What are the requirements?

  • Virtual box/VMplayer (free)
  • Ubuntu (free), installation will be covered in lectures

What am I going to get from this course?

  • Basics of Linux will be clear up
  • Shell scripting basics
  • Understanding of linux file system
  • Introduction to various linux such as Ubuntu, Mint, fedora etc
  • You will be able to create small custom scripts

What is the target audience?

  • NOT for the masters of Linux
  • For the absolute beginners of linux
  • First time linux users
  • students who wants to learn Linux Basics
  • Students interested in shell scripting

What you get with this course?

Not for you? No problem.
30 day money back guarantee.

Forever yours.
Lifetime access.

Learn on the go.
Desktop, iOS and Android.

Get rewarded.
Certificate of completion.

Curriculum

Section 1: Overview and history
06:04

A lot of linux classes says that you should stop using windows because linux is more powerful. But I would say that if you like you windows then use it, but get some basic stuff of linux too. Basic knowledge of linux will add extra star in your resume and once when you are comfortable with linux then judge it yourself.

03:05

A lot of times many people ask me this question. Answer is very simple. Linux is an operating system. It is just bit different than windows or MAC. It come with drivers and lots of useful application. Also it come for free and with lots of community support.

02:20

In computing, the kernel is a computer program that manages input/output requests from software, and translates them into data processing instructions for the central processing unit and other electronic components of a computer. The kernel is a fundamental part of a modern computer's operating system

02:16

Linus Benedict Torvalds born December 28, 1969) is a Finnish American software engineer, who was the principal force behind the development of the Linux kernel that became the most popular kernel for operating systems. He later became the chief architect of the Linux kernel and now acts as the project's coordinator.

08:54

In this movie we will look at various option that we have to get started with linux. Linux come with a variety of flavours like mint, fedora and Kali. each linux is specially designed for some professional use. In this entire course we will use Ubuntu as a virtual machine for further study.

04:06

In this movie, we will explore the installation of Ubuntu over the Virtual player. You can use virtual box or any other software too. This entire course is on Ubuntu but any other operating system (Linux ony) like fedora of mint will also work. In fact, I would recommend to try out other flavors of linux.

15 pages

The history of computer operating systems starts in the 1950s, with simple schemes for running batch programs efficiently, minimizing idle time between programs. A batch program is one that does not interact with the user at all. It reads all its input from a file (possibly a stack of punch cards) and outputs all its output to another file (possibly to a printer). This is how all computers used to work.

Section 2: Linux 101
08:01

In this movie we will look at the very first look of linux. We will explore to open terminal and listening of directory contents. Further we will learn to create new directories and files. We will create file using vi editor and explore its content using cat command.

24 pages

This statement is true because there are special files that are more than just files (named pipes and sockets, for instance), but to keep things simple, saying that everything is a file is an acceptable generalization. A Linux system, just like UNIX, makes no difference between a file and a directory, since a directory is just a file containing names of other files. Programs, services, texts, images, and so forth, are all files.

12:21

In this movie we will about the file management in detail. We will explore that linux only have files and directories in file management. We will learn to copy the files and well as to move the files. Further we will explore to delete files and problems in deleting directories. A brief tour to ifconfig is also given.

07:21

In this movie we will explore the concept of directory traversing. Giving the relative and absolute path in linux is a simple and easy concept. Further we will explore the meaning of dot and dot dot while doing an long listening of directories. We will also take a look on errors while creating the directories.

08:46

For a shell scripter, Linux permission is very important topic. In linux, unlike windows exe extension doesn't really matters. So one should understand the topic of permissions. This movie will talk in detail about the root, group and others as well as about the permissions like read, write and execute.

13 pages

Every directory or file in the Linux file system contains settings for who can read, write or execute the file. These settings are called permissions. Each file or directory is assigned to a specific user and group.

08:43

We can connect 2 commands together using pipes. The output of one command can be fed as input to another command using pipes. We will also take a quick look at grep for searching a particular file. Further we will create our first script. Our script will be able to display time and date.

12:12

To create a process is very easy in linux. In this movie we will explore about the process in linux. There are some foreground process in linux and some background process in linux. We will learn to start foreground as well as background process in linux. Further we will explore the top command about the process in linux

04:51

Linux environment is a bit tricky. There are a few variables that you cannot use in linux because those variables are used as some default values for linux system. We will take a look at almost all of them and their meaning so that when we code, it keeps us away from unnecessary errors.

Section 3: Introduction to editor and operators in shell scripting
24 pages

Vim is a text editor released by Bram Moolenaar in 1991 for the Amiga computer. The name "Vim" is an acronym for "Vi IMproved" because Vim was created as an extended version of the vi editor, with many additional features designed to be helpful in editing program source code.

08:51

In this movie we will learn what exactly is a shell. There are a variety of shells available for a linux user. There is a bourne shell, Korn shell and many more. We will also create our first sample script that just display date and current files in the directory. In our second shell, we will create a user interactive shell that asks what is your favourite colour.

08:08

Variables in shell scripting are bit tricky. Consider them as only of 2 types, 1. That you can use and 2. that you cannot use. There are also a few rules about creating variables like you can use alphabets, numbers and underscore but you cannot start with a number.

08:29

There are few predefined system variables that you cannot use for general purpose. For example $0 is used to get the file name and $1 for getting the first argument passed via command line. Learn more about all those pre defined varialbes in this movie.

07:30

Linux basic shell is not capable of doing basic operations like addition, subtraction and multiplication. Linux uses awk or expr to perform these operations. Further spaces and back quotes matters a lot in these operations. Small mistake can lead to failure of the operation

05:33

In shell scripting, we need to perform various check between 2 values. We have to check things like value a is greater than value a or might be chances that both values are equal. Shell scripting uses -lt for less than and -gt for greater than.

06:06

In the shell scripting, we can check for logical OR and logical AND. Also we can reverse the value i.e from TRUE, we can make it FALSE. Shell uses -o for OR operation and -a for AND operation. In this movie, we will take a close look on logical OR and logical AND.

07:27

A Linux administrator has to deal with lots of operations on files. He has to check if the file is present or not, what are the associated permissions on the file. Sometimes he needs to check if there is a file or directory. In this movie we will learn for the automation of these things.

Section 4: Conditionals and loops in shell scripting
04:43

Conditionals are very important part of programming. In this movie, we will explore about if and else structure in shell scripting. Important part about shell scripting is spaces. One wrong space can learn to failure of entire script. Also, if block is ended with fi in shell scripts

09:57

We can use nested if and else to check various condition but a smart choice would be to use switch and case. In shell scripting, switch and case is bit different in syntax. Case should always be close by esac. In this movie, we will explore the syntax further by an example.

04:43

Shell scripting supports many looping statements. While is one the mostly used loop syntax in shell scripting. In this movie we will take an example to understand while loop syntax by printing number from 0 to 10. This loop should be closed by done as the statements are written after do.

03:30

Shell scripting supports many looping statements. For is one the mostly used loop syntax in shell scripting. In this movie we will take an example to understand for loop syntax by printing number from 0 to 10.

03:54

All of the loops in shell scripting works till the condition is true and ends up if the condition is false. This until loop works just the opposite of other loops. It works till the logic is false and as soon as it get the true logic, it stops the flow of execution.

04:28

Looping has got some loop control keywords. In shell scripting, we have break and continue as loop control keywords. When we want to exit the loop for a one particular condition then we can use break keyword and break keyword will exit the loop. And if we want to skip just one flow of the loop for one particular condition, then we can use continue keyword.

Section 5: Array and escape sequence in shell scripting
07:12

Array is a important concept of shell scripting. If we want to declare 100 variables, the it would be rather good to declare array. Array get the contiguous memory allocation while the variables are scattered in the memory.

06:17

Executing a command from shell is bit tricky but mostly used. We have to use back quotes to execute the system command. We can store the output of that command in any variable and can modify it further. Also, we will explore escape sequence in this movie.

Section 6: Conclusion
01:01

Few final words before ending the course. Linux is always a journey where you keep learning new things, even a 10 year experienced linux user will say the same words to you. Please visit linux forums to get more information and use the discussion. We will be adding more videos to this course in near future.

Sum up quiz
3 questions

Students Who Viewed This Course Also Viewed

  • Loading
  • Loading
  • Loading

Instructor Biography

Igneus Technologies, Best Comprehensive Courses

We at Igneus have trained students from IIT's, NIT's and reputed companies. Students from all over the globe have trusted our High quality and affordable trainings from 10+ countries and have opted for our Certification programs.

IGNEUS stands for the Revolutionary and a quality enhanced change that we’ve tried to come up with in the modern world of Internet education. We’ve come up bearing in mind the maximum emphasis on the quality dealing with every new technology which has made us distinguished from the throng at internet. And this revolution of choice will keep continuing. Today IGNEUS Technologies has proudly lifting up the tag of being the world's most trusted provider of myriad of services and training programs aiding constantly in every corner of the globe along with web security aspects, and open source technology.

IGNEUS Technologies Pvt. Ltd is a dream shared and brought up by two computer geniuses to make the society upgraded and aware of the cyber crimes that curb the innocence of environment, thus starting a revolution in favor of cyber security.

Igneus stands for the Revolutionary and a quality enhanced change in every aspect of its touch to internet. Quality dealing with every new technology makes us different from the crowd of internet. The revolution of choice continues. Today Igneus Technologies is the world's most trusted provider of mentioned services and training along with web security aspects, and open source technology.

Ready to start learning?
Take This Course