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

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter7: File Handling And Applications
Section: Chapter Questions
Problem 10RQ
icon
Related questions
Question
100%
  1. Create the directory “Project”& perform the following actions:          

 

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

 

  1. Write a Shell Script to perform the following:                                                  
  2. a)Display the files with its access permissions
  3. b)Display the information in megabytes about how the space is allotted in the file system such as used and free space.
  4. c)Display the currently running processes
  5. d)Display how long the system has been up since the last boot
  6. 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).                                                                                                                         

 

  1. Write a bash script that takes the side of a cube as a command line argument and displays the volume of the cube.                                                                                                       
  1. 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”.  
Expert Solution
steps

Step by step

Solved in 2 steps with 5 images

Blurred answer
Knowledge Booster
Linux
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT