mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-21 16:52:55 +02:00
TERMINAL: Added deleting entire directories using rm (#1378)
This commit is contained in:
@@ -29,7 +29,7 @@ export const TerminalHelpText: string[] = [
|
||||
" mv [src] [dest] Move/rename a text or script file",
|
||||
" nano [files...] Text editor - Open up and edit one or more scripts or text files",
|
||||
" ps Display all scripts that are currently running",
|
||||
" rm [file] Delete a file from the server",
|
||||
" rm [OPTIONS]... [FILE]... Delete a file from the server",
|
||||
" run [script] [-t n] [--tail] Execute a program or script",
|
||||
" [--ram-override n] [args...]",
|
||||
" scan Prints all immediately-available network connections",
|
||||
@@ -358,12 +358,21 @@ export const HelpTexts: Record<string, string[]> = {
|
||||
nano: TemplatedHelpTexts.scriptEditor("nano"),
|
||||
ps: ["Usage: ps", " ", "Prints all scripts that are running on the current server", " "],
|
||||
rm: [
|
||||
"Usage: rm [file name]",
|
||||
"Usage: rm [OPTION]... [FILE]...",
|
||||
" ",
|
||||
"Removes the specified file from the current server. This command doesn't work for message (.msg) files.",
|
||||
"Remove the FILE(s).",
|
||||
" ",
|
||||
"WARNING: This is permanent and cannot be undone",
|
||||
"-f, --force Force removal of multiple files.",
|
||||
"-r, -R, --recursive Remove directories and their contents recursively.",
|
||||
"--no-preserve-root Do not treat '/' specially.",
|
||||
" ",
|
||||
"By default, rm does not operate on directories. To remove entire directories, use the --recursive (-r or -R) option.",
|
||||
" ",
|
||||
"To remove a file whose name starts with a '-', for example '-foo.js', use one of these commands:",
|
||||
"rm -- -foo.js",
|
||||
"rm ./-foo.js",
|
||||
" ",
|
||||
"Note that if you use rm to remove a file, the contents of the file will be lost. This is irreversible.",
|
||||
],
|
||||
run: [
|
||||
"Usage: run [file name] [-t num_threads] [--tail] [--ram-override ram_in_GBs] [args...]",
|
||||
|
||||
Reference in New Issue
Block a user