User:Xenon dichloride/Terminal: Difference between revisions
mNo edit summary |
|||
| (9 intermediate revisions by the same user not shown) | |||
| Line 2: | Line 2: | ||
The following represents the initial state: | The following represents the initial state: | ||
~/ | ~/ # owner: e | ||
boot/ | boot/ # owner: su | ||
instances | instances | ||
files | files | ||
| Line 10: | Line 10: | ||
commands | commands | ||
winning | winning | ||
commands/ # owner: su | |||
commands/ | |||
mk | mk | ||
cp | cp | ||
| Line 21: | Line 20: | ||
kill | kill | ||
sudo | sudo | ||
players/ | players/ # owner: su | ||
== ~/boot/instances == | == ~/boot/instances == | ||
The system must reboot to enact any changes to | The system must reboot to enact any changes to contents of ~/boot/. Each week 3 new instances are created, with the contents of the files in ~/boot/ directory at the end of the previous instance comprising the rules for the instance: | ||
Instance I: Sunday, Monday | Instance I: Sunday, Monday | ||
| Line 32: | Line 31: | ||
Instance III: Friday, Saturday | Instance III: Friday, Saturday | ||
The rules must be continuously obeyed by all players. | |||
The rules | |||
== ~/boot/files == | == ~/boot/files == | ||
A file is a document containing data such as text, formatting, tables or images. | A file is a document containing data such as text, formatting, tables or images. Anything that can be added to an [[Main Page|Infinite Nomic Wiki]] page is valid content for a file. Every file has an owner, which is 'su' unless otherwise specified. | ||
== ~/boot/users == | == ~/boot/users == | ||
A user can own files and execute commands. Every player is a user. Additionally, 'su' | A user can own files and execute commands. Every player is a user. Additionally, 'su' references the superuser, with absolute control of the system. 'e' references every user. | ||
== ~/boot/players == | == ~/boot/players == | ||
| Line 51: | Line 49: | ||
is_su = false | is_su = false | ||
privileges = 2 | privileges = 2 | ||
If that file already exists (the player has the same id), is_player = true. If multiple players would have files of the same name, subsequent player files have an integer appended to their name to represent their place when joining. | If that file already exists (the player has the same id), is_player = true. If a player's name contains "/" characters, they are replaced by "|". If multiple players would have files of the same name, subsequent player files have an integer appended to their name to represent their place when joining. | ||
When a player ceases being a player, is_player = false. If a player or ex-player leaves the server, they are no longer a player and their file is removed. | When a player ceases being a player, is_player = false. If a player or ex-player leaves the server, they are no longer a player and their file is removed. | ||
| Line 66: | Line 64: | ||
|mk | |mk | ||
|make | |make | ||
|mk {location | |mk {location} {name (no "/")} {contents as attached .txt file or code block} {owner or if blank: you} | ||
|Creates a file at the specified location. | |Creates a file at the specified location. | ||
|- | |- | ||
|mkdir | |mkdir | ||
|make_directory | |make_directory | ||
|mkdir {location | |mkdir {location} {name (no "/")} {owner or if blank: you} | ||
|Creates a directory at the specified location. | |Creates a directory at the specified location. | ||
|- | |- | ||
| Line 91: | Line 89: | ||
|rn | |rn | ||
|rename | |rename | ||
|rn {location} {new name} | |rn {location} {new name (no "/")} | ||
|Changes the name of a file or directory. | |Changes the name of a file or directory. | ||
|- | |- | ||
| Line 106: | Line 104: | ||
|kill | |kill | ||
| | | | ||
|kill { | |kill {reply or links to messages or message ids or if blank: all active} | ||
|Terminates | |Terminates active processes ran by you. | ||
|- | |- | ||
|sudo | |sudo | ||
| Line 120: | Line 118: | ||
== ~/boot/winning == | == ~/boot/winning == | ||
The first player to become a 'superuser' (is_su = true) wins the cycle. | The first player to become a 'superuser' (is_su = true) wins the cycle. | ||