Api/minux: Difference between revisions
No edit summary |
No edit summary |
||
Line 47: | 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. | ||
minux.insertline() - inserts a line into a file |
Revision as of 01:25, 10 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.getconfig() - 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