0% found this document useful (0 votes)
4 views

Assignment 5

Uploaded by

darshitbhuva1
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

Assignment 5

Uploaded by

darshitbhuva1
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Assignment-5(Software-Workshop)

1). What is inode? Why is it so important?


Ans. inode is a data structure that contains various information about file in Linux. It is so
important because it is containes access mode(read, write, execute permission), file type,
file name, ownership, group ownership, file size, number of links etc. of a file.

2). Discuss the output of ls –l describing each column of the output.


Ans.

In above picture 8 indicates that total no. of bytes are occupied by these files.
1. First column shows type and permissions associated with each files. Here,
2. Second column shows no. of links associated with each file.
3. Third column shows ownership of a file. d – directory file
4. Fourth Column shows group-ownership of a file. - ordinary file
5. Fifth Column shows files size in bytes.
6. Six, seven and eight Columns show last modification time of a file. r – read
7. Last column shows file name. w – write
x - execute
3). How can I display inode number along with the long listing of files?
Ans. syntax: ls –li
4). Does inode number change when a file is renamed? Observe this by renaming a file and
checking inode number.
Ans. No, inode number doesn’t change when a file is renamed. It remains same.

5). Does inode number change when a file is moved? Observe this by moving a file and checking
inode number.
Ans. No, inode number doesn’t change when a file is moved. It remains same.

6). Does inode number change when a file is copied? Observe this by copying a file and checking
inode number of source and destination file.
Ans. Yes, inode number changes when a file is copied.

7). Do directory files have inode number? Does it change when a directory is copied?
Ans. yes, directory files have inode number.
Yes, it changes when a directory is copied.

You might also like