Question

In: Computer Science

explain and show how tid these . and plz provied all screenshot Perform the following on...

explain and show how tid these . and plz provied all screenshot
Perform the following on your Linux instance.


Make a directory named ${HOME}/courses/it340/module04 where ${HOME} is your regular user's home directory (i.e. NOT the root user). Inside of this ${HOME}/courses/it340/module04 directory perform the following.
Create a file named perms01 with permissions rwxrw-r--.
Create a file named perms02 with permissions rwxr-xr-x.
Create a file named perms03 with permissions r-xrw-rw-.
Create a file named perms04 with permissions rwsrw-r--.
Create a file named perms05 with permissions rwSrwsr--.
Create a file named perms06 with permissions r-xr-xr-T.
Attach a 1GB disk to your virtual machine and perform the following.
Partition this disk into two partitions.
One partition of size 256MB.
One partition of size 512MB.
Create a filesystem on each partition.
The 256MB partition should have an ext4 filesystem.
The 512MB partition should have an xfs filesystem.
Update /etc/fstab to mount the partitions persistently.
Add an entry to mount the 256MB partition to /mnt/small.
Add an entry to mount the 512MB partition to /mnt/large.
Mount the partitions immediately.
upload one or more screenshots showing the following.

The output of ls -l ${HOME}/courses/it340/module04.
The output of df -h.
The output of lsblk -f.
The output of cat /etc/fstab.
Once finished uploading the screenshots, be sure to completely remove the disk from your virtual machine. The "Managing Filesystems" video shows how to do that.

Solutions

Expert Solution

SOLUTION:

1. CREATE A FILE NAMED PERMS01 WITH PERMISSIONS rwxrw-r--1

Ans: -rwxrw-r--1 jsmith student 365 feb 22 15:31 lab1.c

This is the normal file named "lab1.c" owned by user jsmith and associated with the student group. This file is readable, writable, and executable by the owner, readable and writable by members in the student group, and only readable by all other users. Of course, there would be no point in actually trying to execute a.c file.

2. Create a file named perms02 with permissions rwxr-xr-x.

Ans: $ls - l

drwxr-xr-x 3 dd users 4096 Jun 8:01 pictures

The first ten characters in the format drwxrwxrwx, represents the permissions for all the three classes of users. Let's try to understand what each of these letters means. The first character, d, signifies that the file is a directory. This position can be blank (-) or any of the following characters.

c: character device

b: Block device

s: socket

p: pipe

D:Door

l: Symbolic link etc.,

Then the next three characters(drwxr-xr-x) represent the permission that have been assigned to the owners of the file. The owner dd can read, write, and execute to the folder pictures.

Moving on to the next three characters (drwxr-xr-x) which is r-x, represents the group permission. The users from users group can access the file according to the group permissions, which specify they can read and execute in the directory but cannot write into it. The hyphen signifies that the permission is not granted.

The last three characters xr-x represents the permissions for other groups who are neither the owner nor a member of the group users and the permissions are set to read and execute only.

The 11th character is a number that represents the number of hard links for the files and is not related to permission for a file.The two columns next to this number(drwxr-xr-x) 3 add users represents the owner and group of the file.

To find the permission for a particular file or directory, specify the name of the file in the ls command like below.

$ ls -l filename


Related Solutions

PLEASE EXPLAIN AND SHOW HOW TO DO THESE! (especially all the passwd ones!!) Perform the following...
PLEASE EXPLAIN AND SHOW HOW TO DO THESE! (especially all the passwd ones!!) Perform the following on your Linux instance: -Execute the command ls -l /etc/hosts /fakepath. Send the standard output to a file named ${HOME}/ls-stdout and the standard error to a file named ${HOME}/ls-stderr. -Print the text Hello, World! to a file named ${HOME}/info. Overwrite the file if it already exists. Then, append the text The date is: to the ${HOME}/info file. Finally, append the standard output of the...
Perform all the steps for ALL PARTS (a - d) in R code and show and...
Perform all the steps for ALL PARTS (a - d) in R code and show and explain the results. Thank you. Problem 2.23 Consider the simple linear regression model y = 50 + 10x + E where E is NID(0,16). Suppose that the n = 20 pairs of observations are used to fit this model. Generate 500 samples of 20 observations, drawing one observation for each level of x = 0.5,1, 1.5, 2, ..., 10 [i.e. going up by an...
IN JAVA PLZ follow all directions SHOW OUPUT! Write class PostfixEvaluator that evaluates a postfix expression...
IN JAVA PLZ follow all directions SHOW OUPUT! Write class PostfixEvaluator that evaluates a postfix expression such as 6 2 + 5 * 8 4 / - The program should read a postfix expression consisting of single digits and operators into a StringBuilder, The program should read the expression and evaluate it (assume it's valid). The algorithm to evaluate a postfix expression is shown below. Use +, -, *, /, and ^. ^ is the exponent. Append a right parenthesis...
Please show screenshot outputs and fully functional code for the Java program. Write the following methods...
Please show screenshot outputs and fully functional code for the Java program. Write the following methods to   1) read the content of an array of 5 doubles public static double[] readingArray() 2) find and print:the smallest element in an array of 5 double public static void smallest(double [] array) 3) find and print:the largest element in an array of 5 doubles pubic static void largest (double [] array) In the main method - invoke readingArray and enter the following numbers...
Explain how the Integumentary, Skeletal, Muscular and Nervous Systems all work together to perform an everyday...
Explain how the Integumentary, Skeletal, Muscular and Nervous Systems all work together to perform an everyday action (like driving, reading, or talking on the phone…you pick an action), then give an example of what would happen if just one system failed, what would occur specifically to the other systems? List 2-3 things. Make sure you are specific with references to each system and how they connect to one another. (12 points) (example….muscles are triggered to move by nerves which move...
For each of the following situations, show how (if at all) the IS, MP, and AD...
For each of the following situations, show how (if at all) the IS, MP, and AD curves are affected. Show clearly any shifts or movements along the curves. If there is no change, just type “No change in …” a. A decrease in financial frictions b. An increase in the current inflation c. Firms become more optimistic about the future of the economy d. An autonomous monetary policy tightening occurs e. An increase in taxes and an autonomous easing of...
(Z)-hept-3-ene treated with iodomethylzinc iodide (must show wedges/dash and explain plz)
(Z)-hept-3-ene treated with iodomethylzinc iodide (must show wedges/dash and explain plz)
Use CYGWIN TERMINAL to create this script. COPY AND PASTE the screenshot. Script 1: 1.   Perform...
Use CYGWIN TERMINAL to create this script. COPY AND PASTE the screenshot. Script 1: 1.   Perform a ls -al on the files within the user's home directory and save it to a file called ls.dat within your ~ directory 2.   Save the tree information for the /home directory in a file called tree.dat within your ~directory 3.   Create a new directory in your home directory called "backups" 4.   Move the files you just created to the new directory 5.   Rename...
Explain how a battery produces a current in a wire. Please show all work!
Explain how a battery produces a current in a wire. Please show all work!
2. Run the following C program, and submit the screenshot of the result. Also briefly explain...
2. Run the following C program, and submit the screenshot of the result. Also briefly explain the result. #include <sys/types.h> #include <stdio.h> #include <unistd.h> #define SIZE 5 int nums[SIZE] = {0,1,2,3,4}; int main() { int i; pid_t pid; pid = fork(); if (pid == 0) { for (i = 0; i < SIZE; i++) { nums[i] *= -i; printf("CHILD: %d ",nums[i]); /* LINE X */ } } else if (pid > 0) { wait(NULL); for (i = 0; i <...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT