diff --git a/doc/source/basicgameplay/terminal.rst b/doc/source/basicgameplay/terminal.rst index 2c5a7596b..b1e2c6c57 100644 --- a/doc/source/basicgameplay/terminal.rst +++ b/doc/source/basicgameplay/terminal.rst @@ -361,16 +361,18 @@ files. The :code:`--grep pattern` optional parameter allows you to only display files and directories with a certain pattern in their names. +The :code:`-l` optional parameter allows you to force each item onto a single line. + Examples:: // List files/directories with the '.script' extension in the current directory - $ ls --grep .script + $ ls -l --grep .script // List files/directories with the '.js' extension in the root directory - $ ls / --grep .js + $ ls / -l --grep .js // List files/directories with the word 'purchase' in the name, in the :code:`scripts` directory - $ ls scripts --grep purchase + $ ls scripts -l --grep purchase lscpu diff --git a/src/Terminal/HelpText.ts b/src/Terminal/HelpText.ts index d5346fdaa..68a2cb90d 100644 --- a/src/Terminal/HelpText.ts +++ b/src/Terminal/HelpText.ts @@ -295,7 +295,7 @@ export const HelpTexts: IMap = { " ", ], ls: [ - "Usage: ls [dir] [--grep pattern]", + "Usage: ls [dir] [--grep pattern] | [-l]", " ", "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. ", @@ -304,19 +304,21 @@ export const HelpTexts: IMap = { " ", "The '--grep pattern' optional parameter can be used to only display files whose filenames match the specified pattern.", " ", + "The '-l' optional parameter allows you to force each item onto a single line.", + " ", "Examples:", " ", "List all files with the '.script' extension in the current directory:", " ", - " ls --grep .script", + " ls -l --grep .script", " ", "List all files with the '.js' extension in the root directory:", " ", - " ls / --grep .js", + " ls / -l --grep .js", " ", "List all files with the word 'purchase' in the filename, in the 'scripts' directory:", " ", - " ls scripts --grep purchase", + " ls scripts -l --grep purchase", " ", ], lscpu: ["Usage: lscpu", " ", "Prints the number of CPU Cores the current server has", " "],