SW Lab Manual
SW Lab Manual
SW Lab Manual
Laboratory Manual
For
SOFTWARE WORKSHOP
B.Tech. (IT)
SEM I
July 2021
Faculty of Technology
Dharmsinh Desai University
Nadiad.
www.ddu.ac.in
SOFTWARE WORKSHOP
Table of Contents
EXPERIMENT-1
EXPERIMENT-2
EXPERIMENT-3
EXPERIMENT-4
EXPERIMENT-5
EXPERIMENT-6
The vi Editor.…….…………...…….......................................................................................12
EXPERIMENT-7
EXPERIMENT-8
EXPERIMENT-9
EXPERIMENT-10
EXPERIMENT-11
Sample Experiment
1 AIM: (A) Explain the following commands:
- clear
- cal
- who
- date
- mkdir
- rm
3 STANDARD PROCEDURES:
• Start the Linux and enter the user name and password. After that open the terminal.
At the terminal try the different commands and see the output.
• At the terminal first perform the command cal without and with the different options
available for it.
• Like $ cal and then enter. The calendar will be displayed at the terminal.
• $ cal –m and then enter. In the calendar Monday will be displayed as the first day of
the week.
• Same way perform the other commands like clear, who, date, mkdir, rm.
3.3.1 Writing
Source Code:
1) CAL:
At the terminal write the following:
[user1@com]$ cal
[user1@com]$ cal 2015
[user1@com]$ cal 03 2015
2) CLEAR:
At the terminal write the following:
[user1@com]$ clear
3) WHO:
At the terminal write the following:
[user1@com]$ who
4) DATE:
[user1@com]$ ls
[user1@com]$ cd progs
[user1@com]$ ls
• The code written above will display the following output. For the first command CAL
the output is like this:
cal command
clear command
After Clear
WHO Command
DATE Command
• All the commands will display the output based on it and the options given to that
command.
• If we are giving a command and the option to that command then that option must
be of that command only otherwise will display the error.
4. Conclusions:
• Using this we can run different command and see the output.
EXPERIMENT-1
Procedure:
• Explain the history of the UNIX operating system. As well as what is Linux.
• Explain Linux Architecture.
EXPERIMENT-2
Procedure:
EXPERIMENT-3
• Explain the following commands: cal, date, cat, ls, man, clear, tput, exit, pwd, echo,
printf, script, wc, bc, who,tty,stty.
Procedure:
• Explain all the commands. Also run all these commands with options available for it.
And see the output.
• Write the description about all these commands.
EXPERIMENT-4
• Explain the following commands: mkdir, rmdir,cd, rm, cp,mv, cmp, comm,more,less
Procedure:
• Explain all the commands. Also run all these commands with options available for it.
And see the output.
• Write the description about all these commands.
EXPERIMENT-5
Procedure:
• Explain the permission for the file and also the commands available for it.
Run all these commands with options available for it. And see the output.
• Write the description about all these commands.
EXPERIMENT-6
Procedure:
• Explain all the commands. Also run all these commands with options available for it.
And see the output.
• Write the description about all these commands.
EXPERIMENT-7
Procedure:
• Make a shell script which finds average of all three numbers enter by user.
• Make a shell script which finds the greatest number among the three numbered
entered by the user.
• Make a file in which some contents are there. Now make a script which finds that the
word “DDU” and display lines containing word DDU.
EXPERIMENT-8
• Design a shell script which would display the summation of the digits of the given
number.
• Design a shell script to reverse a given number.
• Design a shell script to print the sum, sum of squares and sum of cubes of first n
numbers where n is taken from the user.
Procedure:
• Make script in which user has to enter one number. Now design a script in which you
have to add the digits of the number.
• Make script in which number entered by the user will reverse.
• Design a calculator in which the basic operation like addition, multiplication, division
and subtraction is done. Here the value for each and every operation should be
entered by the user.
EXPERIMENT-9
* 1
** 22
*** 333
**** 4444
***** 55555
Procedure:
EXPERIMENT-10
• Explain the following commands: head, tail, cut, paste, sort, uniq, grep, sed, awk.
Procedure:
• Explain all the commands. Also run all these commands with options available for it.
And see the output.
• Write the description about all these commands.
EXPERIMENT-11
Tools: Latex
Procedure: