LAB #4: * Q1: Issue the touch command and create an empty file called example with the default permissions. Use "ls -l"
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
LAB #4: * Q1: Issue the touch command and create an empty file called example with the default permissions. Use "ls -l"
questions. You know that the list of people are as follows: Fred, Susy, Mark, Robert, Terry, Lisa, Anne, Greg, Oliver, Betty .How many fruits in total does each of the people have? How many fruits end with “ies” or “ons”? How many different fruits does Susy have? At which lines Greg appears? List the names with more than 4 letters . .
LAB #4: * Q1: Issue the touch command and create an empty file called example with the default permissions. Use "ls -l" to check the permissions. Use chown command to change the ownership of the file given to root for both the user and the group. Use "ls -l” to check the permissions. On this same file called example, use chmod command to give the user execute permission, and write permission to group. You are allowed to use either the octal numbers or the letters. Use "ls -l” to check the permissions. . . O * Q2: You're given the file fruits.txt. Write a script to answer the following