Answer:
b. This would set the group ownership of file1 to root.
Explanation:
Linux allows user to have his own files and regulate the ability of other users to access them. The <em>chown</em> command allows you to use the appropriate utility to change the owner of a file or directory.
The basic command syntax is as follows:
# chown [options] <owner name: owner group name> <file or directory name>
For example, if you want to give a user <em>root</em> opportunity to use the <em>file1.txt</em> file as he wishes, you can use the following command:
# chown root file1.txt
In addition to changing the owner of a file, the group of its owners or both can be changed at the same time. Use a colon to separate the username and user group name (without the space character):
# chown user2:group2 file1.txt
As a result, the user with the name <em>user2</em> will become the owner of the <em>file1.txt</em> and its group will become <em>group2</em>.
In your case omitting username
# chown :root file1.txt
will change owner group only.
I believe that's b, i'm not 100% sure though
Answer:
Host discovery
Explanation:
Hot discovery is one of the preliminary stages of network reconnaissance, it begins with different IP addresses that belongs to a particular network and adopts various methods to scan and know if a host is at the IP address. Host discovery is also known as ping scan when a sonar analogy is used.
Host discovery helps to scan the particular type of host on one's network.
Consistent
feasible
scholarly
verifiable
Answer:
// here is code in C++.
#include <bits/stdc++.h>
using namespace std;
//main function
int main()
{
// variable
int n;
cout<<"enter a number:";
// read the input
cin>>n;
// find the square root of the absolute value
float square_root=sqrt(abs(n));
// print the square_root
cout<<"square root of "<<n<<" is: "<<square_root<<endl;
return 0;
}
Explanation:
Read a number from user and assign it to "n".Then find its absolute value with abs() function.Then calculate the square root of the absolute value with sqrt() function.Print the square root of the number.
Output:
enter a number:-17
square root of -17 is: 4.12311