mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-21 16:52:55 +02:00
TERMINAL: Add RAM usage and detailed file size to ls -l output (#2135)
This commit is contained in:
@@ -27,7 +27,7 @@ export const TerminalHelpText: string[] = [
|
||||
" ipaddr Displays the IP address of the machine",
|
||||
" kill [script/pid] [args...] Stops the specified script on the current server ",
|
||||
" killall Stops all running scripts on the current machine",
|
||||
" ls [dir] [--grep pattern] Displays all files on the machine",
|
||||
" ls [dir] [-l] [-h] [-g pattern] Displays all files on the machine",
|
||||
" lscpu Displays the number of CPU cores on the machine",
|
||||
" mem [script] [-t n] Displays the amount of RAM required to run the script",
|
||||
" mv [src] [dest] Move/rename a text or script file",
|
||||
@@ -336,14 +336,16 @@ export const HelpTexts: Record<string, string[]> = {
|
||||
],
|
||||
killall: ["Usage: killall", " ", "Kills all scripts on the current server."],
|
||||
ls: [
|
||||
"Usage: ls [dir] [-l] [--grep pattern]",
|
||||
"Usage: ls [dir] [-l] [-h] [-g, --grep pattern]",
|
||||
" ",
|
||||
"The ls command, with no arguments, prints all files and directories on the current server's directory to the Terminal screen. ",
|
||||
"The files will be displayed in alphabetical order. ",
|
||||
" ",
|
||||
"The 'dir' optional parameter can be used to display files/directories in another directory.",
|
||||
" ",
|
||||
"The '-l' optional parameter allows you to force each item onto a single line.",
|
||||
"The '-l' optional parameter allows you to force each item onto a single line, displaying two columns for the script's RAM usage and filesize.",
|
||||
" ",
|
||||
"The '-h' optional parameter allows you to display the filesize from '-l' in human readable format (e.g. KB, MB, GB) instead of bytes.",
|
||||
" ",
|
||||
"The '--grep pattern' optional parameter can be used to only display files whose filenames match the specified pattern.",
|
||||
" ",
|
||||
|
||||
Reference in New Issue
Block a user