Api/minux: Difference between revisions
No edit summary |
No edit summary |
||
Line 3: | Line 3: | ||
'''system functions''' | '''system operation functions''' | ||
[[Api/minux.restart()|minux.restart()]] - restarts the system without triggering the crash handler | [[Api/minux.restart()|minux.restart()]] - restarts the system without triggering the crash handler | ||
Line 9: | Line 10: | ||
[[Api/minux.login()|minux.login()]] - logs in on either local or network authentication. | [[Api/minux.login()|minux.login()]] - logs in on either local or network authentication. | ||
[[Api/minux.lock()|minux.lock()]] - locks the current session behind user password | [[Api/minux.lock()|minux.lock()]] - locks the current session behind user password | ||
[[Api/minux.lsr()|minux.lsr()]] - creates a recusive file list | [[Api/minux.lsr()|minux.lsr()]] - creates a recusive file list | ||
[[Api/minux.monitorprint()|minux.monitorprint()]] - a lazy way to print on a monitor | [[Api/minux.monitorprint()|minux.monitorprint()]] - a lazy way to print on a monitor | ||
'''system configuration functions:''' | |||
[[Api/minux.config()|minux.config()]] - changes or returns system configuration | |||
[[Api/minux.debug()|minux.debug()]]- debugging/log system message handler | [[Api/minux.debug()|minux.debug()]]- debugging/log system message handler | ||
[[Api/minux.bashcolor()|minux.bashcolor()]] - change color settings of bash prompt | [[Api/minux.bashcolor()|minux.bashcolor()]] - change color settings of bash prompt | ||
[[Api/minux.logintype()|minux.logintype()]] - returns the login setting used by this system. | |||
Revision as of 04:19, 4 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.config() - changes or returns 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 and string options:
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.