LAB-1
1. Command practice.
i. ls
Syntax: ls [option]……….. [FILE]……..
ii. pwd
Syntax: pwd[OPTION]
iii. cd
Syntax : cd [-l/-p] [dr]
iv. mkdir
Syntax : mkdir [OPTION] DIR…….
v. rm
Syntax: rm[OPTION] ……FILE ……..
vi. rmdir
Syntax: rmdir[OPTION] ….. DIR……...
vii. mv
Syntax : mv[OPTION] ……SOURCE…..
viii. cp
Syntax : cp[OPTION] …… SOURCE……
ix. cat
Syntax : cat [OPTION]…….[File]…..
x. chmod
Syntax : chmod[OPTION] ….mode[mode]…File…..
xi. tee
Syntex : tee [OPTION] ……[FILE]
xii. wc
Syntex: wc[OPTION] …..[FILE]
LAB-2
2. Command practice.
i. Changing File Access Permission (FAP)
Syntax: chmod mode files. r-read, w- write, x- execute
ii. command for vi Editor
h- Move to previous character.
l- Move to next character
k- Move up one line
j- Move down one line
x- Delete character at current curser position.
dd- deletes line
:wq+enter- save changes and quit.
: w+enter- save file
: q! +enter- quit without saving
iii. Cursor movement commands
iv. Insert and append command.
v. Word movement command.
vi. Deletion and modification command.
LAB-3
1. Write a shell scripts to perform arithmetic operations.
2. Write a shell scripts to find out the average of 3 subjects and calculate its grade.
3. Write a shell scripts to find out the greater among 2 numbers.
4. Write a shell scripts to swap 2 nos. without using a third variable.
LAB-4
1. Batch file for showing the system current date and time in dos.
2. Batch file for showing the files according to the user requirement in dos.
3. Batch file for showing the assembling the .asm file in dos.
4. Batch file for deleting the user requirement file in dos.
5. Batch file for generating the requirement message in dos.
LAB-5
6. Batch file for printing the following design up to n number of rows in dos.
1
1 2 1
1 2 3 2 1
1 2 3 4 3 2 1
7. Batch file for printing the following design up to n number of rows in dos.
*
* * *
* * * * *
* * * * * * *
8. Batch file for making a disc dos bootable in dos.
9. Batch file for generating installation diskette in dos.
10. Batch file for joining two inputted strings and display output string.
LAB-6
11. Shell programming for checking the inputted string to be palindrome in LINUX.
12. Shell programming for checking inputted number to be prime number or not in LINUX.
13. Shell programming for finding length of a string in LINUX.
14. Shell programming for drawing Pascal triangle in LINUX
15. Shell programming for Fibonacci series up to n no. in LINUX.
LAB-7
16. Shell programming for displaying the inputted string character wise in LINUX
E.g.: inputted string:-Delhi
D e l h i.
17. Shell programming for checking a number to be Armstrong or not in LINUX.
18. Shell programming for printing the inputted string in reverse order in LINUX.
19. Shell programming for checking the inputted number to be even or odd in LINUX.
20. Shell programming for coping type content of one file into a new file character per character in LINUX.
LAB-8
21. Write Program to create 2 processes p1,p2 using fork system call & transfer a string written in p1
to p2.
22. Write a program to write a content of file into pipe and then reading the pipe to write it into
another file.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment