Question

In: Computer Science

Try to make it as simple as you can. Please provide the answers with some examples...

Try to make it as simple as you can. Please provide the answers with some examples as fast as you can.

Linux

What is the i-node , and what is the major information stored in each node?

What is the difference between moving (mv) a file and copying (cp) a file?

Solutions

Expert Solution

Please find the requested information below.

Please provide your feedback
Thanks and Happy learning!

1) What is the i-node , and what is the major information stored in each node?

In Linux, everything is considered as a file including hardwares, printers, directories etc.. 
And to store the details of each of these entities/files there is a need of a data structure. 
So here comes the inode data stucture. An inode is a data structure that stores various 
information about a file in Linux, such as the access mode (read, write, execute permissions), 
ownership, file type, file size, group, number of links, etc.. An inode is assigned to a file when it is created.
Each inode is identified by an integer number. The inode number of a file(as everything in Linux is a file) can be seen using the command 'ls -i'. 
The number appearing to the left of the filename when executing the above command is the inode number. 

Example: ls -i
20829148276789777 name.txt

Below is the list of information that is stored in an inode.

a. Size
b. Owner
c. Date/time
d. Permissions and access control
e. Location on the disk
f. File types
g. Number of links
h. Additional metadata about the file

To see the information about the inodes in a file system, one can use the command 'df -hi'. This command will show the information such as total number of inodes, number of used inodes, number of inodes available to use etc..

So in short, inode is nothing but a datastructure that holds the information/metadat about a file

2)What is the difference between moving (mv) a file and copying (cp) a file?

The move(mv) command is used to move a file from source to destination. Once the mv command is executed successfully, the source file will not be existing anymore, reason being, the mv command 'moved' the source to the destination. Because if this(ie move) property of the the mv command, this command is used to rename a file in Linux.

Syntax for mv: mv source_file destination_file

But when a copy(cp) command is executed, the destination will have a copy of the source file. Here after the cp command both source and destination files will be existing.

Syntax for cp: cp source_file destination_file

Related Solutions

Try to make it as simple as you can. Please provide the answers with some examples...
Try to make it as simple as you can. Please provide the answers with some examples as fast as you can. 11-Which of the following do all domains in the same forest have in common? (Choose all that apply.) a) The same domain name    b) The same schema c) The same user accounts    d) The same global catalog   12-Which of the following is a valid reason for using multiple forests? a) Centralized management     b) Need for different schemas c) Easy...
Try to make it as simple as you can. Please provide the answers with some examples...
Try to make it as simple as you can. Please provide the answers with some examples as fast as you can. 1-Which of the following best defines a computer used as a server? a)Computer hardware that includes fast disk drives and a lot of memory b)Operating system software that includes clients, such as a Web browser and Client for Microsoft Networks c)Operating system software that includes directory services and domain name services d)A computer with Linux installed. 2-If you want...
Try to make it as simple as you can. Please provide the answers with some examples...
Try to make it as simple as you can. Please provide the answers with some examples as fast as you can. 1-The technology that make up the core functionality of Windows Server 2012 include Active Directory, the Microsoft Server Manager, DHCP and IIS. Explain, in your own words, the nature and function of these technologies. Answer: 2-Windows Server Core is a new installation option in Standard, Enterprise, and Datacenter editions. The traditional Windows GUI is not available in Server Core....
Try to make it as simple as you can. Please provide the answers with some examples...
Try to make it as simple as you can. Please provide the answers with some examples as fast as you can. 1-The technology that make up the core functionality of Windows Server 2012 include Active Directory, the Microsoft Server Manager, DHCP and IIS. Explain, in your own words, the nature and function of these technologies. Answer: 2-Windows Server Core is a new installation option in Standard, Enterprise, and Datacenter editions. The traditional Windows GUI is not available in Server Core....
Try to make it as simple as you can. Please provide the answers with some examples...
Try to make it as simple as you can. Please provide the answers with some examples as fast as you can. 6-What are the potential disadvantages of using a dynamic and static IP Address? 7-Explain the functionality of a global catalog in the Windows networking. 8-Explain the following terms: TCP/IP protocol, and what are two command-line utilities that can be used to check TCP/IP configuration and IP connectivity, respectively? 9-Explain: Which Windows Server utility provides a common interface for tools...
Try to make it as simple as you can. Please provide the answers with some examples...
Try to make it as simple as you can. Please provide the answers with some examples as fast as you can. 1-Which of the following best defines a computer used as a server? a)Computer hardware that includes fast disk drives and a lot of memory b)Operating system software that includes clients, such as a Web browser and Client for Microsoft Networks c)Operating system software that includes directory services and domain name services d)A computer with Linux installed. 2-If you want...
Try to make it as simple as you can. Please provide the answers with some examples...
Try to make it as simple as you can. Please provide the answers with some examples as fast as you can. 6-What are the potential disadvantages of using a dynamic and static IP Address? 7-Explain the functionality of a global catalog in the Windows networking. 8-Explain the following terms: TCP/IP protocol, and what are two command-line utilities that can be used to check TCP/IP configuration and IP connectivity, respectively? 9-Explain: Which Windows Server utility provides a common interface for tools...
Try to make it as simple as you can. Please provide the answers with some examples...
Try to make it as simple as you can. Please provide the answers with some examples as fast as you can. 11-Which of the following do all domains in the same forest have in common? (Choose all that apply.) a) The same domain name    b) The same schema c) The same user accounts    d) The same global catalog   12-Which of the following is a valid reason for using multiple forests? a) Centralized management     b) Need for different schemas c) Easy...
Try to make it as simple as you can. Please provide the answers with some examples...
Try to make it as simple as you can. Please provide the answers with some examples as fast as you can. 11-Which of the following do all domains in the same forest have in common? (Choose all that apply.) a) The same domain name    b) The same schema c) The same user accounts    d) The same global catalog   12-Which of the following is a valid reason for using multiple forests? a) Centralized management     b) Need for different schemas c) Easy...
Try to make it as simple as you can. Please provide the answers with some examples...
Try to make it as simple as you can. Please provide the answers with some examples as fast as you can. Linux Using the following directory structure (See Structure question # 3) -Determine the absolute path for the following files and directories: - Your_Name_goes_here.dat -Sales -Assuming your current directory is RegionA, determine the relative pathname for the following files and directories: -West1.dat -RegionB $HOME Project4 Payroll .checks.dat Pay2.dat Sales RegionA East.dat RegionB West1.dat Your_Name_goes_here.dat West3.dat
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT