Skip to content

Latest commit

 

History

History
232 lines (146 loc) · 2.68 KB

File metadata and controls

232 lines (146 loc) · 2.68 KB

Shell Commands

The shell supports a wide range of commands. These commands are very similar to the original DOS. The list of commands are given below:

  1. ECHO
  2. EDIT
  3. IMGVIEW
  4. CD
  5. CWD
  6. DIR
  7. TREE
  8. DELTREE
  9. DEL
  10. TYPE
  11. MOVE
  12. PING
  13. PATH
  14. RD
  15. REN
  16. DATE
  17. TIME
  18. FIND
  19. CLS
  20. EXIT


ECHO

Reapeats the message passed to command.

ECHO Message

EDIT

Opens the file given to the command in the Notepad text editor.

EDIT filename.txt

IMGVIEW

Opens the image given in the Photos image viewer in ANSI mode.

IMGVIEW image.png

CD

Changes the current directory of the shell to the specified path.

CD Path

CWD

Returns the current working directory of the shell.

CWD

Dir

Returns the names of all files and folders in the given directory, if no path is given it defaults to the current directory.

DIR Path

TREE

Shows the files and subdirectories of the given directory as a tree structure, if no path is given it defaults to the current directory.

TREE Path

DELTREE

Deletes a directory and all the subdirectories and files in it, if no path is given it defaults to the current directory.

DELTREE Path

DEL

Deletes one or more files.

DEL Path1 Path2 Path3 ...

TYPE

Displays the contents of a file to the screen.

TYPE Path

MOVE

Moves a file from one directory to another directory.

MOVE Old_path New_path

PING

Tests if an IP address or a domain name is active or not, also provides some information about it.

PING IP_address/domain_name

PATH

Prints all the executable files (.exe) in the given path.

PATH Path

RD

Alias: RMDIR

Removes an empty directory, shows error message if not empty.

RD Path

REN

Renames a file or directory to the specified name.

REN Path_to_file New_name

DATE

Shows the system date according to given unix date time format, defaults to %d-%m-%Y format if none provided.

DATE Format_string

TIME

Shows the system time according to given unix date time format, defaults to %H:%M:%S format if none provided.

TIME Format_string

FIND

Searchs for text within a file.

FIND Path

CLS

Alias: CLEAR

Clears the whole screen.

CLS

EXIT

Alias: QUIT

Exits the shell.

EXIT