Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Give three different commands to get back to your home directory. 2. Show the names of all hidden files in your home directory. Show

1. Give three different commands to get back to your home directory.

2. Show the names of all hidden files in your home directory. Show your session.

3. Write down the following and show the session that you used to obtain the required information:

  1. Your user name (also known as login name)
  2. Your user ID
  3. Your group ID and group name
  4. User names of users in your group
  5. Number of groups that you are a member of

4. What are the permissions for your home directory (~) (not the directory /home or the individual files in your home directory), set by your system administrator? What command did you use to answer the question? Show your session.

5. Suppose that you want to block everyone (except you) at the main door (your ~ directory) of your directory hierarchy (i.e., your home directory-not the files inside the directory), as shown in Figure Lab7.1 (below). Take the necessary steps to do this. Show the session that you used to accomplish the task and confirm that the task has actually been done.

6. What do . (dot), .. (dotdot), and ~ represent in UNIX? Show use of all three.

7. What is an inode number in UNIX? Show the command for displaying the inode numbers for the root directory (/) and your home directory (~) (not the directory called /home or the individual files inside your home directory).

8. Give the command for removing an empty directory called personal under your home directory. How would you remove it if the personal directory is not empty?

9. Create a file, called sample, in your home directory and set its permissions to read and write for yourself, read for users in your group, and none to everyone else. What command did you use to create the file? What command did you use to set privileges?

10. Suppose that umask is set to 022 on a system. What will be the default permissions for the new directories and text files that you create? Explain your answer.

11. Assume that you have two files, f1 and f2, that you want to concatenate and store in a file called f1nf2. Show the cat command needed to perform this task. Now show the cat command (concatenate) needed to put your name, taken from the keyboard, as the last line of f1nf2.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Concepts Of Database Management

Authors: Joy L. Starks, Philip J. Pratt, Mary Z. Last

9th Edition

1337093424, 978-1337093422

More Books

Students also viewed these Databases questions

Question

How many Tables Will Base HCMSs typically have? Why?

Answered: 1 week ago

Question

What is the process of normalization?

Answered: 1 week ago