Api/minux: Difference between revisions
(Created page with "Minux Api, included in minux-main minux.restart() - restarts the system without triggering the crash handler") |
No edit summary |
||
(18 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
Minux Api, included in minux-main | Minux [[Api]], included in minux-main used to control the base os functions. | ||
[[ | |||
'''system operation functions''' | |||
[[Api/minux.restart()|minux.restart()]] - restarts the system without triggering the crash handler | |||
[[Api/minux.halt()|minux.halt()]] - shuts down the system without triggering the crash handler | |||
[[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.lsr()|minux.lsr()]] - creates a recusive file list | |||
[[Api/minux.monitorprint()|minux.monitorprint()]] - a lazy way to print on a monitor | |||
'''system configuration functions:''' | |||
[[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.bashcolor()|minux.bashcolor()]] - change color settings of bash prompt | |||
[[Api/minux.logintype()|minux.logintype()]] - returns the login setting used by this system. | |||
'''File manipulation functions:''' | |||
[[Api/minux.countline()|minux.countline()]] - used to count how many lines a files has | |||
[[Api/minux.findline()|minux.findline()]] - used to check if a string is present in a file | |||
[[Api/minux.findfile()|minux.findfile()]] - searches for a file or folder name on the disk | |||
[[Api/minux.printline()|minux.printline()]] - retrieves a specific line from a file | |||
[[Api/minux.removeline()|minux.removeline()]] - removes a particular line number from a file | |||
[[Api/minux.removestring()|minux.removestring()]] - removes the lines 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