Api/minux: Difference between revisions

From Minux Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 21: Line 21:


[[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 functions:'''
[[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