diff --git a/markdown/bitburner.ns.flags.md b/markdown/bitburner.ns.flags.md index 4f16dee76..ec8e83bc5 100644 --- a/markdown/bitburner.ns.flags.md +++ b/markdown/bitburner.ns.flags.md @@ -49,19 +49,19 @@ export async function main(ns) { ns.tprint(data); } -// [home ~/]> run example.js +// [home /]> run example.js // {"_":[],"delay":0,"server":"foodnstuff","exclude":[],"help":false,"v":false} -// [home ~/]> run example.js --delay 3000 +// [home /]> run example.js --delay 3000 // {"_":[],"delay":3000,"server":"foodnstuff","exclude":[],"help":false,"v":false} -// [home ~/]> run example.js --delay 3000 --server harakiri-sushi +// [home /]> run example.js --delay 3000 --server harakiri-sushi // {"_":[],"delay":3000,"server":"harakiri-sushi","exclude":[],"help":false,"v":false} -// [home ~/]> run example.js --delay 3000 --server harakiri-sushi hello world +// [home /]> run example.js --delay 3000 --server harakiri-sushi hello world // {"_":["hello","world"],"delay":3000,"server":"harakiri-sushi","exclude":[],"help":false,"v":false} -// [home ~/]> run example.js --delay 3000 --server harakiri-sushi hello world --exclude a --exclude b +// [home /]> run example.js --delay 3000 --server harakiri-sushi hello world --exclude a --exclude b // {"_":["hello","world"],"delay":3000,"server":"harakiri-sushi","exclude":["a","b"],"help":false,"v":false} -// [home ~/]> run example.js --help +// [home /]> run example.js --help // {"_":[],"delay":0,"server":"foodnstuff","exclude":[],"help":true,"v":false} -// [home ~/]> run example.js -v +// [home /]> run example.js -v // {"_":[],"delay":0,"server":"foodnstuff","exclude":[],"help":false,"v":true} ``` diff --git a/src/ScriptEditor/NetscriptDefinitions.d.ts b/src/ScriptEditor/NetscriptDefinitions.d.ts index 478a45a38..1cfde0d1c 100644 --- a/src/ScriptEditor/NetscriptDefinitions.d.ts +++ b/src/ScriptEditor/NetscriptDefinitions.d.ts @@ -7439,19 +7439,19 @@ export interface NS { * ns.tprint(data); * } * - * // [home ~/]> run example.js + * // [home /]> run example.js * // {"_":[],"delay":0,"server":"foodnstuff","exclude":[],"help":false,"v":false} - * // [home ~/]> run example.js --delay 3000 + * // [home /]> run example.js --delay 3000 * // {"_":[],"delay":3000,"server":"foodnstuff","exclude":[],"help":false,"v":false} - * // [home ~/]> run example.js --delay 3000 --server harakiri-sushi + * // [home /]> run example.js --delay 3000 --server harakiri-sushi * // {"_":[],"delay":3000,"server":"harakiri-sushi","exclude":[],"help":false,"v":false} - * // [home ~/]> run example.js --delay 3000 --server harakiri-sushi hello world + * // [home /]> run example.js --delay 3000 --server harakiri-sushi hello world * // {"_":["hello","world"],"delay":3000,"server":"harakiri-sushi","exclude":[],"help":false,"v":false} - * // [home ~/]> run example.js --delay 3000 --server harakiri-sushi hello world --exclude a --exclude b + * // [home /]> run example.js --delay 3000 --server harakiri-sushi hello world --exclude a --exclude b * // {"_":["hello","world"],"delay":3000,"server":"harakiri-sushi","exclude":["a","b"],"help":false,"v":false} - * // [home ~/]> run example.js --help + * // [home /]> run example.js --help * // {"_":[],"delay":0,"server":"foodnstuff","exclude":[],"help":true,"v":false} - * // [home ~/]> run example.js -v + * // [home /]> run example.js -v * // {"_":[],"delay":0,"server":"foodnstuff","exclude":[],"help":false,"v":true} * ``` */ diff --git a/src/ui/InteractiveTutorial/InteractiveTutorialRoot.tsx b/src/ui/InteractiveTutorial/InteractiveTutorialRoot.tsx index 8c8cbc515..86966943e 100644 --- a/src/ui/InteractiveTutorial/InteractiveTutorialRoot.tsx +++ b/src/ui/InteractiveTutorial/InteractiveTutorialRoot.tsx @@ -126,7 +126,7 @@ export function InteractiveTutorialRoot(): React.ReactElement { content: ( <> Let's try it out. Start by entering - {"[home ~/]> help"} + {"[home /]> help"} (Don't forget to press Enter after typing the command) ), @@ -135,7 +135,7 @@ export function InteractiveTutorialRoot(): React.ReactElement { [iTutorialSteps.TerminalLs as number]: { content: ( <> - {"[home ~/]> help"} + {"[home /]> help"} displays a list of all available Terminal commands, how to use them, and a description of what they do.{" "}
@@ -143,7 +143,7 @@ export function InteractiveTutorialRoot(): React.ReactElement { Let's try another command. Enter
- {"[home ~/]> ls"} + {"[home /]> ls"} ), canNext: false, @@ -151,7 +151,7 @@ export function InteractiveTutorialRoot(): React.ReactElement { [iTutorialSteps.TerminalScan as number]: { content: ( <> - {"[home ~/]> ls"} + {"[home /]> ls"} {" "} is a basic command that shows files on the computer. Right now, it shows that you have a program called{" "} @@ -160,7 +160,7 @@ export function InteractiveTutorialRoot(): React.ReactElement { Using your home computer's terminal, you can connect to other machines throughout the world. Let's do that now by first entering - {"[home ~/]> scan"} + {"[home /]> scan"} ), canNext: false, @@ -168,7 +168,7 @@ export function InteractiveTutorialRoot(): React.ReactElement { [iTutorialSteps.TerminalScanAnalyze1 as number]: { content: ( <> - {"[home ~/]> scan"} + {"[home /]> scan"} shows all available network connections. In other words, it displays a list of all servers that can be connected to from your current machine. A server is identified by its hostname.
@@ -176,7 +176,7 @@ export function InteractiveTutorialRoot(): React.ReactElement { That's great and all, but there's so many servers. Which one should you go to?{" "}
- {"[home ~/]> scan-analyze"} + {"[home /]> scan-analyze"} gives some more detailed information about servers on the network. Try it now! ), @@ -185,7 +185,7 @@ export function InteractiveTutorialRoot(): React.ReactElement { [iTutorialSteps.TerminalScanAnalyze2 as number]: { content: ( <> - {"[home ~/]> scan-analyze"} + {"[home /]> scan-analyze"} shows more detailed information about each server that you can connect to (servers that are a distance of one node away).
@@ -193,7 +193,7 @@ export function InteractiveTutorialRoot(): React.ReactElement { following command:{" "}
- {"[home ~/]> scan-analyze 2"} + {"[home /]> scan-analyze 2"} ), canNext: false, @@ -206,17 +206,17 @@ export function InteractiveTutorialRoot(): React.ReactElement { navigate to those servers through the network. You can only connect to a server that is one node away. To connect to a machine, use - {"[home ~/]> connect hostname"} + {"[home /]> connect hostname"} From the results of - {"[home ~/]> scan-analyze 2"} + {"[home /]> scan-analyze 2"} {" "} we can see that the n00dles server is only one node away. Let's connect to it now using: - {"[home ~/]> connect n00dles"} + {"[home /]> connect n00dles"} ), canNext: false, @@ -233,7 +233,7 @@ export function InteractiveTutorialRoot(): React.ReactElement {
Before you try to hack a server, you should run diagnostics using{" "} - {"[n00dles ~/]> analyze"} + {"[n00dles /]> analyze"} ), canNext: false, @@ -242,7 +242,7 @@ export function InteractiveTutorialRoot(): React.ReactElement { content: ( <> When - {"[n00dles ~/]> analyze"} + {"[n00dles /]> analyze"} finishes running it will show useful information about hacking the server.
@@ -251,14 +251,14 @@ export function InteractiveTutorialRoot(): React.ReactElement { on your home computer is a virus that will grant you root access to a machine if there are enough open ports.
- {"[n00dles ~/]> analyze"} + {"[n00dles /]> analyze"} {" "} shows that there do not need to be any open ports on this machine for the NUKE virus to work, so go ahead and run the virus using{" "} - {"[n00dles ~/]> run NUKE.exe"} + {"[n00dles /]> run NUKE.exe"} @@ -269,7 +269,7 @@ export function InteractiveTutorialRoot(): React.ReactElement { content: ( <> You now have root access! You can hack the server using - {"[n00dles ~/]> hack"} + {"[n00dles /]> hack"} Try doing that now. @@ -290,9 +290,9 @@ export function InteractiveTutorialRoot(): React.ReactElement {
The amount of money on a server is not limitless. So, if you constantly hack a server and deplete its money, then you will encounter diminishing returns in your hacking. You will need to use{" "} - {"[n00dles ~/]> grow"} + {"[n00dles /]> grow"} which tricks the company into adding money to their server and{" "} - {"[n00dles ~/]> weaken"} + {"[n00dles /]> weaken"} which increases the speed of hack and grow. ), @@ -302,7 +302,7 @@ export function InteractiveTutorialRoot(): React.ReactElement { content: ( <> From any server you can get back home using - {"[n00dles ~/]> home"} + {"[n00dles /]> home"} Let's head home before creating our first script! @@ -319,10 +319,10 @@ export function InteractiveTutorialRoot(): React.ReactElement {
To create a new script or edit an existing one, you can use{" "} - {"[home ~/]> nano"} + {"[home /]> nano"} Scripts must end with the .js extension. Let's make a script now by entering - {`[home ~/]> nano ${tutorialScriptName}`} + {`[home /]> nano ${tutorialScriptName}`} ), canNext: false, @@ -368,7 +368,7 @@ export function InteractiveTutorialRoot(): React.ReactElement {
To check how much RAM is available on this machine, enter - {"[home ~/]> free"} + {"[home /]> free"} ), canNext: false, @@ -379,7 +379,7 @@ export function InteractiveTutorialRoot(): React.ReactElement { We have 8GB of free RAM on this machine, which is enough to run our script. Let's run our script using - {`[home ~/]> run ${tutorialScriptName}`} + {`[home /]> run ${tutorialScriptName}`} ), canNext: false, @@ -435,7 +435,7 @@ export function InteractiveTutorialRoot(): React.ReactElement { One last thing about scripts, each active script contains logs that detail what it's doing. We can check these logs using the tail command. Do that now for the script we just ran by typing{" "} - {`[home ~/]> tail ${tutorialScriptName}`} + {`[home /]> tail ${tutorialScriptName}`} ), canNext: false,