Api/minux: Difference between revisions
No edit summary |
No edit summary |
||
Line 30: | Line 30: | ||
'''File | '''File manipulation functions:''' | ||
[[Api/minux.countline()|minux.countline()]] - used to count how many lines a files has | [[Api/minux.countline()|minux.countline()]] - used to count how many lines a files has |
Revision as of 04:19, 4 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.config() - changes or returns 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.