0% found this document useful (0 votes)
15 views26 pages

Linux File

Uploaded by

shubham sharma
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views26 pages

Linux File

Uploaded by

shubham sharma
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 26

Practical file on

Linux OS Environment
Submitted in partial fulfilment of the requirements for the award of
the degree of

BACHELOR OF COMPUTER APPLICATIONS


to
Guru Gobind Singh Indraprastha University, Delhi

Under the Guidance: - Submitted by: -


Ms. Shweta Sharma Aniket Rana
(Associate Professor) BCA-VI Sem
CS/IT Department 00624002020

Session 2020-2023

TRINITY INSTITUTE OF PROFESSIONAL STUDIES


(Affiliated to Guru Gobind Singh Indraprastha University, Delhi)
Ranked "A+" Institution by SFRC, Govt. of NCT of India
Recognized under section 2(f) of the UGC Act, 1956
NAAC Accredited "B++" Grade Institution

1
INDEX
S No. Question Page No. Signature
1. Write a command to display a calendar for 4
May 2023.

2. Write step by step sequence of command 5


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.

3. Create a file named LinuxOS, write few 7


lines about Linux Operating System in it.
Then copy the content of this file in
another file named Linuxmore.

4. Perform the same task as in Question 3, 8


perform the mv command in place of cp,
and write the difference between copy and
move commands according to your
observation.

5. Create a Python file, then see the long list 9


of permissions on the newly created file by
passing suitable command. Then change
the permissions using the chmod command
and assign all permissions to the file
owner, read and execute to the group and
execute only to others using numerical
method.

6. Create a text file in LinuxOS which hold 10


10 lines. Now then create the symbolic link
or soft link for the newly created file .then
type the command ls- h.

7. Create a file Student using Standard Output 11


redirection. Enter the name of at least 10

2
students in it and display it. Then add five
more names in Student file using Standard
Output Append.

8. Create a symbolic link and hard link of 12


student file by suitable command. Then
using ls –li command show the difference
between symbolic link and hard link.

9. Using tee command paste the output of line 14


count of Student file Attendance File.

10. Create a file using vi editor and change the 15


file permission as read only by-passing
suitable command.
11. Write Shell Scripts to add two numbers. 16
12. Write a shell script to find the multiple of 17
two numbers.

13. Write a Shell script to convert Fahrenheit 18


to Celsius.

14. Write s shell script to calculate the area of 19


a rectangle.
15. Write a shell script to calculate Simple 20
Interest.
16. Write a shell script to find whether the 21
number is odd or even.
17. Write a shell script demonstrating the local 22
variable and global variable.
18. Write a shell script to find the modulus of 23
two numbers.
19. Write a shell script to find if the inputted 24
year is a leap year or not.
20. Write a shell script to display an even 25
number between 1 to 50.

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

You might also like