Sunday, February 10, 2019

Filesystem Hierarchy Standard Sinhala

/bin

Purpose  අරමුණ

bin තුල අඩංගු වෙනවා, commands, system administrator සහ users, ට බාවිත කල හැකි, නමුත් මේවා වෙනත් file system mount නොකර ඇති අව්ස්තාවලත් බාවිත කල හැකිවිය යුතුයි, (උදා: Single User Mode එකේදී) මේතුල අඩන්ගුවෙන්න පුළුවන් *commands, scripts හරහා  indirectly බාවිත විය හැකි.
  
*උදා : bzip2 මගින් compress කර ඇති file එකකට grep, command කිරීමට bzgrep, bzegrep යනුවෙන් script එකක් තිබිය හැක
gzip බාවිත කරන uncompress යනුවෙන් script එකක් තිබිය හැක.

historical ඇරියස් නිසා grep -F බාවිත කිරීමට fgrep යනුවෙන් script එකක් තිබිය හැක.

*Shell Wrappers තියෙන්න පුළුවන්, Shell Wrapper එකක් කියන්නේ complex command line program එකකට pass කරන්න ඕන parameters accept කරන shell program එකක්, මේ shell program එක අර original program එකට යවන්න ඕන parameters accept කරලා pass කරනවා, complex program එකක් shell script එකකින් wrap කරාම ඒක invoke කරන්න ඉතාම පහසුයි.  

*උඩ කියපු bzgrep, bzegrep කියන්නේ grep එකේ wrapper programs.

*Single User mode එකට සරල උදාහරණයක් නම් maintenance mode එක සහ run level1  refer කල හැක (මේ පිලිබඳ දීර්ගව පසුවට). මෙහිදී system එක repair කරගැනීමට අවශ්‍ය services සමග අවම මට්ටමෙන් ක්‍රියාත්මක වීමට තිබියයුතුය.

අත්‍යවශ්‍ය නොවන command binaries, /bin  තුල place කිරීම වෙනුවට  /usr/bin තුල place කිරීමට වග බලාගත යුතුය.
උදා. : non root users ලට අවශ්‍ය වන X Window System, chsh ආදිය /bin තුල place නොකළ යුතුය. 

Requirements

There must be no subdirectories in /bin.

සෙමින් update වන ලිපියකි  

Copy කරගැනීමට අවසරය ඇති නමුත් Database එකට රක්තපාතය, RAM වැනි වචන යෙදීම සපුරා තහනම්.

No comments:

Post a Comment