2. Disclaimer: This presentation is prepared by trainees of
baabtra as a part of mentoring program. This is not official
document of baabtra –Mentoring Partner
Baabtra-Mentoring Partner is the mentoring division of baabte System Technologies Pvt .
Ltd
3. Shell Programming in
Ubuntu
●
Mohammed Jawad N V
●
jawadmayan@gmail.com
●
www.facebook.com/username
●
twitter.com/username
●
in.linkedin.com/in/profilename
●
8590332199
4. SHELL PROGRAMMING IN UBUNTU
● Shell is a program that takes commands from the keyboard
and gives them to the operating system to perform
● Bash (Bourne Again Shell)
● TERMINAL: Program that opens a window and lets you
interact with the shell
● There are two primary ways to use the shell: interactivelyinteractively
and by writing shell scripts.
● In the interactive mode, the user types a single command
and the result is printed out
5. COMMANDS
● Pwd - (print working directory)
● cd - (change directory)
● ls - (list files and directories).
● less (view text files)
● cp - copy files and directories
● mv - move or rename files and directories
● rm - remove files and directories
● mkdir - create directories
6. ● type - Display information about command type
● help - Display reference page for shell builtin
● man - Display an on-line command reference
● chmod - modify file access rights
● su - temporarily become the superuser
● sudo - temporarily become the superuser
● Echo- command to display text or value of variable.
7. SHELL SCRIPTING
● a shell script is a file containing a series of commands.
● To be executable, a shell script file must meet some conditions:
● The file must have a special first line that names an appropriate
command processor
#!/bin/bash
● The file must be made executable by changing its permission bits. An
example:
$ chmod +x (shell script filename)
● In shell scripting, the user types anything from a few lines to an entire
program into a text editor, then executes the resulting text file as a shell
script.
8.
9.
10.
11.
12. If this presentation helped you, please visit our
page facebook.com/baabtra and like it.
Thanks in advance.
www.baabtra.com | www.massbaab.com |
www.baabte.com