Api/minux: Difference between revisions

From Minux Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 27: Line 27:
'''File and string options:'''
'''File and string options:'''


[[Api/dev.countline()|dev.countline()]] - used to count how many lines a files has
[[Api/minux.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/minux.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/minux.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/minux.printline()|dev.printline()]] - retrieves a specific line from a file


[[Api/dev.removeline()|dev.removeline()]] - removes a particular line number from a file
[[Api/minux.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/minux.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.
[[Api/minux.replaceline()|dev.replaceline()]] - replaces a line containing a string from a file.

Revision as of 00:00, 4 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.