Create the directory “Project” & perform the following actions: a) Create the files ‘f1.txt’, ‘f2.txt’, ‘f3.txt’ and ‘f4.txt’ in it. b) Set the permission of ‘f1.txt’ to -rwx r-- r--, permission of...


Create the directory “Project” & perform the following actions:


a) Create the files ‘f1.txt’, ‘f2.txt’, ‘f3.txt’ and ‘f4.txt’ in it.

b) Set the permission of ‘f1.txt’ to -rwx r-- r--, permission of ‘f2.txt’ to -w- r-x r—
c) Combine the files f3 and f4 using the paste command
d) Show the use of cut command on any of the above files


2. Write a Shell Script to perform the following:
a) Display the files with its access permissions
b) Display the information in megabytes about how the space is allotted in the file system such as used and free space.
c) Display the currently running processes
d) Display how long the system has been up since the last boot
3. Create a shell script to display your name, enrollment ID, the program and the courses you study in this semester. Use the correct variables and display the above to the standard output (screen).


4. Write a bash script that takes the side of a cube as a command line argument and displays the volume of the cube.


5. Write a bash script to receive as input the username (your first name) and password from the keyboard. Set the password as ‘secret’. If the username and password matches then the output to be displayed is “valid user”, otherwise display the output as “invalid user”.


Linux



Jun 05, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here