Linux File
Linux File
Linux OS Environment
Submitted in partial fulfilment of the requirements for the award of
the degree of
Session 2020-2023
1
INDEX
S No. Question Page No. Signature
1. Write a command to display a calendar for 4
May 2023.
2
students in it and display it. Then add five
more names in Student file using Standard
Output Append.
3
Q1. Write a command to display a calendar for May 2023.15
4
Q2. Write step by step sequence of command execution for the following
task:
Create a file named Frontend, in this file write the names of at least 12
frontend technologies and another file named Backend then append the
content of both files in a new file named Technology.
5
6
Q3. Create a file named LinuxOS, write few lines about Linux Operating
System in it. Then copy the content of this file in another file named
Linuxmore.
7
Q4. Perform the same task as in Question 3, perform the mv command in
place ofcp, and write the difference between copy and move commands
according toyour observation.
8
Q5. Create a Python file, then see the long list of permissions on the newly
createdfile by passing suitable command.Then change the permissions
using the chmod command and assign allpermissions to the file owner, read
and execute to the group and execute only toothers using numerical
method.
9
Q6. Create a text file in LinuxOS which hold 10 lines. Now then create the
symbolic link or soft link for the newly created file .then type the command
ls- h.
10
Q7. Create a file Student using Standard Output redirection. Enter the
name of atleast 10 students in it and display it. Then add five more names
in Student fileusing Standard Output Append.
11
Q8. Create a symbolic link and hard link of student file by suitable
command. Thenusing ls –li command show the difference between symbolic
link and hard link.
12
13
Q9. Using tee command paste the output of line count of Student file
AttendanceFile.
14
Q10. Create a file using vi editor and change the file permission as read
only by-passing suitable command.
15
Q11. Write Shell Scripts to add two numbers.
16
Q12. Write a shell script to find the multiple of two numbers.
17
Q13. Write a Shell script to convert Fahrenheit to Celsius.
18
Q14. Write s shell script to calculate the area of a rectangle.
19
Q15. Write a shell script to calculate Simple Interest.
Q16. Write a shell script to find whether the number is odd or even.
20
Q17. Write a shell script demonstrating the local variable and global
variable.
21
Q18. Write a shell script to find the modulus of two numbers.
22
Q19. Write a shell script to find if the inputted year is a leap year or not.
23
Q20. Write a shell script to display an even number between 1 to 50.
24
25
26