Docs

1. Server requirements

1.1. Minimum

  • PHP 7+
  • WordPress 5+
  • GD library - used for image manipulation

2. Supported browsers

Please assume as recent version as possible if not specified explicitly.

  • Chrome
  • Firefox
  • IE 10+

3. Installing plugin

Note: Wordpress installer won't be able to install this plugin automatically due to it's size. Please install the plugin manually instead.

Extract your WPTerminal plugin into wordpress/wp-content/plugins folder on your server. Make sure the final dir structure is 'wordpress/wp-content/plugins/wpterminal' with files in it that will look similar to this:

|-wp-content
 |-plugins
  |-wpterminal
   |-bin
   |-documentation
   |-jobs
   |-language
   |-licensing
   |-man
   |-media
   |-templates
   |-ajax.php
   |-api.php
   |-functions.php
   |-i18n.php
   |-job.php
   |-wpterminal.php

In admin panel go to Plugins, locate WPTerminal and activate.

4. Using WPTerminal

4.1. wpterm

   NAME
          wpterm - print WPTerminal information

   SYNOPSIS
          wpterm [OPTION]...

   DESCRIPTION
          Print WPTerminal information.

          -v
                 output version information only

4.2. man

   NAME
          man - an interface to the reference manuals

   SYNOPSIS
          man COMMAND

   DESCRIPTION
          man is the system for refrence manuals and help information regarding
          available commands.

4.3. clear

   NAME
          clear - clear the screen

   SYNOPSIS
          clear

   DESCRIPTION
          clear clears your screen if this is possible.

4.4. pwd

   NAME
          pwd - print name of current/working directory

   SYNOPSIS
          pwd

   DESCRIPTION
          Print the full filename of the current working directory.

4.5. cd

   NAME
          cd — change the working directory

   SYNOPSIS
          cd DIRECTORY

   DESCRIPTION
          Change the current directory to DIRECTORY

4.6. ls

   NAME
          ls - list directory contents

   SYNOPSIS
          ls [OPTION]... FILE...

   DESCRIPTION
          List information about the FILEs (the current directory by default).
          Sort entries alphabetically.

          -a
                 do not ignore entries starting with .

          -r
                 reverse order while sorting

          -R
                 list subdirectories recursively

4.7. cat

   NAME
          cat - concatenate files and print on the standard output

   SYNOPSIS
          cat [OPTION]... FILE...

   DESCRIPTION
          Concatenate FILE(s) to standard output.

          -E
                 display $ at end of each line

          -n
                 number all output lines

4.8. touch

   NAME
          touch - change file timestamps

   SYNOPSIS
          touch [OPTION]... FILE...

   DESCRIPTION
          Update the access and modification times of each FILE to the current time.

          A FILE argument that does not exist is created empty, unless -c is supplied.

          -c
                 do not create any files

4.9. edit

   NAME
          edit - internal file editor

   SYNOPSIS
          edit FILE

   DESCRIPTION
          Edit FILE in internal file editor. CTRL+2 saves and quits the editor. CTRL+0 will quit
          without saving changes.

4.10. rename

   NAME
          rename - rename file

   SYNOPSIS
          rename [OPTION]... FILE FILENAME

   DESCRIPTION
          rename will rename the specified FILE with FILENAME. Note that FILENAME is NOT a destination
          path, just a file name relative to FILE.

   OPTIONS
          -v
                 Show which files were renamed, if any.

          -o
                 Do not overwrite existing files.

4.11. cp

   NAME
          cp - copy files and directories

   SYNOPSIS
          cp [OPTION]... SOURCE DEST
          cp [OPTION]... SOURCE... DIRECTORY
          cp [OPTION]... DIRECTORY SOURCE...

   DESCRIPTION
          Copy SOURCE to DEST, or multiple SOURCE(s) to DIRECTORY.

          -r, -R
                 copy directories recursively

          -v
                 explain what is being done

4.12. mv

   NAME
          mv - move files and directories

   SYNOPSIS
          mv [OPTION]... SOURCE DEST
          mv [OPTION]... SOURCE... DIRECTORY
          mv [OPTION]... DIRECTORY SOURCE...

   DESCRIPTION
          Move SOURCE to DEST, or multiple SOURCE(s) to DIRECTORY.

          -r, -R
                 copy directories recursively

          -v
                 explain what is being done

4.13. rm

   NAME
          rm - remove files or directories

   SYNOPSIS
          rm [OPTION]... FILE...

   DESCRIPTION
          rm removes each specified file.  By default, it does not remove directories.

   OPTIONS
          Remove (unlink) the FILE(s).

          -r, -R
                 remove directories and their contents recursively

          -d
                 remove empty directories

          -v
                 explain what is being done

4.14. mkdir

   NAME
          mkdir - make directories

   SYNOPSIS
          mkdir [OPTION]... DIRECTORY...

   DESCRIPTION
          Create the DIRECTORY(ies), if they do not already exist.

          -p
                 no error if existing, make parent directories as needed

          -v
                 print a message for each created directory

4.15. rmdir

   NAME
          rmdir - remove empty directories

   SYNOPSIS
          rmdir [OPTION]... DIRECTORY...

   DESCRIPTION
          Remove the DIRECTORY(ies), if they are empty.

          -r, -R
                 remove directories and their contents recursively

          -v
                 output a diagnostic for every directory processed

4.16. chmod

   NAME
          chmod - change file mode bits

   SYNOPSIS
          chmod [OPTION]... OCTAL-MODE FILE...

   OPTIONS
          Change the mode of each FILE to OCTAL-MODE.

          -v
                 output a diagnostic for every file processed

          -R
                 change files and directories recursively

4.17. upload

   NAME
          upload - uploads file in current directory

   SYNOPSIS
          upload

   DESCRIPTION
          Upload any file that meets upload limits criteria to current working directory.

4.18. download

   NAME
          download - downloads file

   SYNOPSIS
          download FILE

   DESCRIPTION
          Download FILE using web browser. If directory is specified, process is aborted.

4.19. sql

   NAME
          sql - executes sql query

   SYNOPSIS
          sql [OPTION]... "QUERY"

   OPTIONS
          Execute sql QUERY string. QUERY must be wrapped in double-quotes. If executed query is select then
          results are returned, else the number of rows affected.

          You can use special table variables (e.g. $post) inside your QUERY string to automatically prefix
          them with $wpdb->table_prefix. Use -t to list all available tables.

          -t
                 print tables variables

4.20. zip

   NAME
          zip - package and compress (archive) files

   SYNOPSIS
          zip [OPTION]... ZIPFILE FILE...

   OPTIONS
          -r
                 Travel the directory structure recursively; for example:

                        zip -r foo.zip foo

                 In this case, all the files and directories in foo are saved in a zip archive named foo.zip,
                 including files with names starting with ".", since the recursion does not use the shell's
                 file-name substitution mechanism.  If you wish to include only a specific subset of the files
                 in directory foo and its subdirectories,  use  the  -i  option  to specify the pattern of
                 files to be included. You should not use -r with the name ".*", since that matches ".." which
                 will attempt to zip up the parent directory (probably not what was intended).

                 Multiple source directories are allowed as in

                        zip -r foo.zip foo1 foo2

                 which first zips up foo1 and then foo2, going down each directory.

4.21. unzip

   NAME
          unzip - extract compressed files in a ZIP archive

   SYNOPSIS
          unzip ZIPFILE

   DESCRIPTION
          unzip will extract files from a ZIP archive.  The default behavior (with no options) is to extract into
          the current directory (and subdirectories below it) all files from the specified ZIP archive.

4.22. ini_get

   NAME
          ini_get - get php ini option

   SYNOPSIS
          ini_get OPTION

   DESCRIPTION
          Gets the value of a PHP configuration OPTION.

4.23. get_loaded_extensions

   NAME
          get_loaded_extensions - returns loaded php modules

   SYNOPSIS
          get_loaded_extensions

   DESCRIPTION
          Returns the names of all the modules compiled and loaded in the PHP interpreter.

4.24. phpversion

   NAME
          phpversion - returns the current php version

   SYNOPSIS
          phpversion

   DESCRIPTION
           Returns a string containing the version of the currently running PHP parser.

en utf-8 19/04/2025 17:49 2.34ms