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 commandd) 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 permissionsb) 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 processesd) Display how long the system has been up since the last boot3. 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
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here