Api/minux: Difference between revisions
No edit summary |
No edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 20: | Line 20: | ||
'''system configuration functions:''' | '''system configuration functions:''' | ||
[[Api/minux. | [[Api/minux.setconfig()|minux.setconfig()]] - changes system configuration | ||
[[Api/minux.getconfig()|minux.getconfig()]] - retrieves system configuration | |||
[[Api/minux.debug()|minux.debug()]]- debugging/log system message handler | [[Api/minux.debug()|minux.debug()]]- debugging/log system message handler | ||
Line 45: | Line 47: | ||
[[Api/minux.replaceline()|minux.replaceline()]] - replaces a line containing a string from a file. | [[Api/minux.replaceline()|minux.replaceline()]] - replaces a line containing a string from a file. | ||
[[Api/minux.insertline()|minux.insertline()]] - inserts a line into a file |
Latest revision as of 18:07, 12 October 2024
Minux Api, included in minux-main used to control the base os functions.
system operation functions
minux.restart() - restarts the system without triggering the crash handler
minux.halt() - shuts down the system without triggering the crash handler
minux.login() - logs in on either local or network authentication.
minux.lock() - locks the current session behind user password
minux.lsr() - creates a recusive file list
minux.monitorprint() - a lazy way to print on a monitor
system configuration functions:
minux.setconfig() - changes system configuration
minux.getconfig() - retrieves system configuration
minux.debug()- debugging/log system message handler
minux.bashcolor() - change color settings of bash prompt
minux.logintype() - returns the login setting used by this system.
File manipulation functions:
minux.countline() - used to count how many lines a files has
minux.findline() - used to check if a string is present in a file
minux.findfile() - searches for a file or folder name on the disk
minux.printline() - retrieves a specific line from a file
minux.removeline() - removes a particular line number from a file
minux.removestring() - removes the lines containing a string from a file
minux.replaceline() - replaces a line containing a string from a file.
minux.insertline() - inserts a line into a file