Open main menu

CDOT Wiki β

Changes

Tutorial7: Links / Process Management

348 bytes added, 14:07, 31 January 2020
no edit summary
'''inode (index) Number of a File:'''
<table align="right"><tr valign="top"><td>[[Image:inode-number-1.png|thumb|right|300px|Each inode stores the attributes and disk block locations of the object's data.<br>(Image licensed under [https://creativecommons.org/licenses/by-sa/3.0/ cc])]<br>Image modified by author.]]</td><td>[[Image:inode-number-2.png|thumb|right|400px|The '''inode number''' is like a '''finger-print''', and usually is '''unique''' for each file on the Unix / Linux file system.(Image licensed under [https://creativecommons.org/licenses/by-sa/3.0/ cc])<br>Image modified by author.]]</td></tr></table>
''The inode (index node) is a data structure in a Unix-style file system that describes a file-system object such as a file or a directory. Each inode stores the attributes and disk block locations of the object's data. File-system object attributes may include metadata (times of last change, access, modification), as well as owner and permission data.''
The '''inode number''' is like a '''finger-print''', and usually is '''unique''' for each file on the Unix / Linux file system. <br>Referring to the diagram on the far right, issuing the '''ls''' command with the '''-i''' option <br>displays the inode number for each file. You can view see that <u>each inode in that </u> file<br>(whether it is a directory listing is or regular file) has its own uniqueinode number.
'''Hard Links:'''
<table align="right"><tr valign="top"><td>[[Image:hard-link-1.png|thumb|right|300px|(Image licensed under [https://creativecommons.org/licenses/by-sa/3.0/ cc])]<br>Image modified manipulated by author]]]</td><td>[[Image:inode-number-3.png|thumb|right|400px|(Image licensed under [https://creativecommons.org/licenses/by-sa/3.0/ cc])]]</td></tr></table>
Hard link is a reference to the physical data on a file system
More than one hard link can be associated with the same physical data
'''Symbolic Links:'''
<table align="right"><tr valign="top"><td>[[Image:symbolic-link-1.png|thumb|right|300px|(Image licensed under [https://creativecommons.org/licenses/by-sa/3.0/ cc])]]</td><td>[[Image:inode-number-4.png|thumb|right|400px|(Image licensed under [https://creativecommons.org/licenses/by-sa/3.0/ cc])]]</td></tr></table>
A Symbolic Link is an indirect pointer to a file – a pointer to the hard link to the file
You can create a symbolic link to a directory
Also known as soft links or symlinks
 
 
 
===Managing Processes===
[[Image:process-diagram-1.png|thumb|right|300px|(Image licensed under [https://creativecommons.org/licenses/by-sa/3.0/ cc])]]]
All programs that are executing on a UNIX system are referred to as processes
Each process has an owner
Background
[[Image:process-diagram-1.png|thumb|right|300px|(Image licensed under [https://creativecommons.org/licenses/by-sa/3.0/ cc])]]]
UNIX processes are hierarchical
This structure has a root, parents, and children
# Create a '''table''' listing each Linux command, useful options and command purpose for the following Linux commands: '''ln''' , '''ps''' , '''top''' , '''fg''' , '''bg''' , '''jobs''' , '''kill'''
[[Tutorial8: Links / Process Management]]
[[Category:ULI101]]
13,420
edits