Question

In: Computer Science

What are the permissions for your home directory set by your system administrator? What command did...

What are the permissions for your home directory set by your system administrator? What command did you use to answer the question? Show your session.

Solutions

Expert Solution

What is a home directory?

A home directory is a directory given to a user on a Linux operating system.

Commands:

To know which is the home directory:

$ pwd

To know what are the permissions:

$ ls -l

Session output:

Explanation:

The very first character on the line indicates the file type. A dash (-) is an ordinary file. A (d) indicates a directory, and other characters can indicate other special file types.

The next nine characters indicate the permissions for the file or directory. The nine characters consist of three groups of three, showing the permissions for the

1) owner,

2) the owner's group, and

3) the world, respectively.

'r' denotes read.

'w' denotes write.

'x' denotes execute.


Related Solutions

1. What command is used to change the current working directory at the command line?
1. What command is used to change the current working directory at the command line?
Unix command lines. A) Assume that your current working directory is NOT the same as your...
Unix command lines. A) Assume that your current working directory is NOT the same as your home directory. Print all file and subdirectory names of your home directory into a file named file2. B) Copy the text from line 11 to line 20 of a given file input.txt and append the copied text at the end of the file output.txt. (Assume that the file input.txt contains more than 20 lines of text contents) C) Count and display the total number...
Given the directory /home/Kitty which contains the files timer.exe and bags.txt. Set the protection but such...
Given the directory /home/Kitty which contains the files timer.exe and bags.txt. Set the protection but such that; Give the commands that would change the permissions. It will be a Linux system Only the owner Kitty can execute timer.exe. Kitty’s default group can write to the directory, but no one can delete or move any file except Kitty.
What are System calls. Provide 6 file and directory system calls
What are System calls. Provide 6 file and directory system calls
1. When a file is created on Linux Operating System, What are the default permissions of...
1. When a file is created on Linux Operating System, What are the default permissions of the file? 2. Write a command to find the total disk space used by a specific user on linux system? 3. What is "s" permission bit in a file? 4. Explain the difference between grep and egrep? 5. Write a command to list files where third letter is x or y? 6. Write command to remove array element with id 5? 7. Write a...
A network administrator views the output from the “show ip route” command. What kinds of things...
A network administrator views the output from the “show ip route” command. What kinds of things do you think the administrator will see on the output? Based on your work this week, what do you think you can learn from such commands? Give an example of how you would improve your network using output from “show ip route”
At the command prompt: Change to your Downloads folder inside your home folder. Inside your Downloads...
At the command prompt: Change to your Downloads folder inside your home folder. Inside your Downloads folder, create a new folder named "IT1130". Inside the IT1130 folder, enter the following command: date /T > now.txt This last command creates a text file named now.txt containing the current date. Use the more command to display the contents of the now.txt file. Copy and paste the entire output of your more command into the space provided below. There should be one line...
Demonstrate your grasp of the Unix file system by constructing a directory structure as follows: In...
Demonstrate your grasp of the Unix file system by constructing a directory structure as follows: In your home ( ~ ) directory, create a directory named “UnixCourse”. This directory will be used in the remaining assignments of this course, as well as this one. Several of the commands that you will issue in this course will examine files in this directory and, in some cases, send me a listing of those files or even copies of those files for grading...
Question 10 0/1 point (graded) The bash profile in your home directory contains information that the...
Question 10 0/1 point (graded) The bash profile in your home directory contains information that the bash shell runs each time you use it. You can customize the information in your bash profile to tell your system to do different things. For example, you can make an “alias”, which acts like a keyboard shortcut. Which line of code, when added to your bash profile, will let you print “seetop” to view the name, size, and file type of the 10...
linux: Become the root user for this exercise. What command did you use to do this...
linux: Become the root user for this exercise. What command did you use to do this again? $ Now that you are root, create a new user on your system called labsevenuser. What is the command you used to create this user? # Set a new password for the new user you just created in step 2 above. What is the command you used to do this? # Create a new group called awesomepeople. Add the user you created in...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT