Api/minux

From Minux Wiki
Revision as of 23:44, 3 October 2024 by Shorun (talk | contribs)
Jump to navigation Jump to search

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.