Skip to content

Commands

iam-py-test edited this page Oct 29, 2021 · 5 revisions

SnakeOS commands

getuser

The getuser command returns the username of the current user

reset

The reset command resets SnakeOS, clearing all files, configuration, and your user account. This command can not be undone.
If you can't login, try running this from the boot menu

shutdown

The shutdown command shuts down SnakeOS

updates version

The updates version command will display the currently installed version (i.e. 1.0)

updates check

The updates check command will check if a new version of SnakeOS is available.

updates install

The updates install command overwrites SnakeOS with the latest version from the server. Your data should not be harmed
Warning: If you have made changes to the files part of your local copy of SnakeOS, this command will undo those changes

changepassword

The changepassword command changes the password on the current user account. You may need to reboot for this to take effect

reboot

The reboot command reboots SnakeOS. This may be required after a password change or update.
To be more technical, this starts python again with the same file and arguments, and then terminates its self.
Note that until Issue 2 is fixed, this may cause performance and stability issues when done repeatedly.

checkdns domain

The checkdns command uses socket to preform a DNS lookup and return the ip of domain. This - however - does not check if that domain is online

requesturl url

The requesturl utility will send a network request to url and display the response.

time

The time command (when run with no arguments) returns the current time.
Arguments:
time -timezone _timezone_: Returns the current time for that time zone
time -day: Returns the current day
time -hour: Returns the current hour
time -utc: Returns the current time for UTC

boottime

Display the time it took to boot

software install name

Installs software from the SnakeOS software repository. Possible options are available here.

software uninstall name

Removes software

software update

Updates all installed software to the latest version

software run name

Executes software name. This command only works for installed software. Installed software may be found under software, name, however, modifying installed software will cause an integrity warning.

hashtools

Various tools designed to provide an interface to various cryptographic functions
Hashtools commands:
hashtools md5 [string]: Returns the MD5 digest of [string]
hashtools sha1 [string]: Returns the SHA1 digest of [string]
hashtools sha224 [string]: Returns the SHA224 digest of [string]
hashtools sha256 [string]: Returns the SHA256 digest of [string]
hashtools sha384 [string]: Returns the SHA384 digest of [string]
hashtools sha512 [string]: Returns the SHA512 digest of [string]
hashtools help: Lists all hashtools commands

sysconf write name value

Sets name to value in the system configuration. Does require being run via runelevated.

runelevated command

Runs command with elevated permissions. Needed for installing and uninstalling software and modifying system configuration