Api/minux: Difference between revisions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
Minux [[Api]], included in minux-main used to control the base os functions. | Minux [[Api]], included in minux-main used to control the base os functions. | ||
'''system functions''' | '''system functions''' | ||
Line 21: | Line 23: | ||
[[Api/minux.bashcolor()|minux.bashcolor()]] - change color settings of bash prompt | [[Api/minux.bashcolor()|minux.bashcolor()]] - change color settings of bash prompt | ||
'''File and string options:''' | |||
[[Api/dev.countline()|dev.countline()]] - used to count how many lines a files has | |||
[[Api/dev.findline()|dev.findline()]] - used to check if a string is present in a file | |||
[[Api/dev.findfile()|dev.findfile()]] - searches for a file or folder name on the disk | |||
[[Api/dev.printline()|dev.printline()]] - retrieves a specific line from a file | |||
[[Api/dev.removeline()|dev.removeline()]] - removes a particular line number from a file | |||
[[Api/dev.removestring()|dev.removestring()]] - removes the lines containing a string from a file | |||
[[Api/dev.replaceline()|dev.replaceline()]] - replaces a line containing a string from a file. |
Revision as of 23:44, 3 October 2024
Minux Api, included in minux-main used to control the base os functions.
system 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.logintype() - returns the login setting used by this system.
minux.lock() - locks the current session behind user password
minux.config() - changes or returns system configuration
minux.lsr() - creates a recusive file list
minux.monitorprint() - a lazy way to print on a monitor
minux.debug()- debugging/log system message handler
minux.bashcolor() - change color settings of bash prompt
File and string options:
dev.countline() - used to count how many lines a files has
dev.findline() - used to check if a string is present in a file
dev.findfile() - searches for a file or folder name on the disk
dev.printline() - retrieves a specific line from a file
dev.removeline() - removes a particular line number from a file
dev.removestring() - removes the lines containing a string from a file
dev.replaceline() - replaces a line containing a string from a file.