DocumentationWhat payment methods does Hostednode accept?What are Hostednode's billing cycles?When is the monthly renewal charge generated?When are services suspended for non-payment?When is a service deleted for non-payment?What should you do if a payment method is unavailable?Are all services subject to VAT?Do you issue receipts or invoices?How to create a customer account on HostednodeDo you accept cryptocurrency payments?How to Access DirectAdmin and Explore the Panel’s Main FeaturesHow to Configure PHP for Subdomains and Additional Domains in DirectAdminHow to change the PHP version and settings in DirectAdminHow to Create an Email Account in DirectAdminHow to use the DirectAdmin API with Codex or ClaudeHow to Enable and Use Redis in DirectAdminHow to add a domain alias and use it for email in DirectAdminHow to Add an Additional Domain in DirectAdminHow to Add an Additional User to an Existing Database in DirectAdminHow to configure an autoresponder in DirectAdminHow to Set Up a Vacation Message in DirectAdminHow to Create a Subdomain in DirectAdminHow to Create a Cron Job in DirectAdminHow to create a database and associate its user in DirectAdminHow to Create an FTP Account in DirectAdminHow to Create a Mailing List in DirectAdminHow to create an email forwarder in DirectAdminHow to Create a Site Redirect in DirectAdminHow to Install WordPress with Softaculous WordPress Management in DirectAdminHow to Install WordPress with the DirectAdmin WordPress ManagerHow to Modify MX Records to Use Google Workspace in DirectAdminHow to Review the Web Application Firewall and Create a Rule Exception in DirectAdminHow to Check Account Resource Usage in DirectAdminHow to Use the ClamAV Antivirus from DirectAdminHow to Create Custom DNS Records in DirectAdmin: DKIM, SPF, and DMARCHow to use the built-in terminal in DirectAdmin
TUTORIAL

How to use the built-in terminal in DirectAdmin

Open the DirectAdmin terminal, run basic commands to navigate between folders, and close the session. Its availability depends on your hosting plan.

The terminal included in DirectAdmin lets you enter commands for your hosting account from your browser. You can check the current directory, list its contents, and move between directories without leaving the panel.

The server address and name, domain, username, limits, and available tools may vary depending on your service. Use your own hosting login details; the screenshots show a reference interface.

1. Open Terminal from the dashboard

Log in to DirectAdmin using your service credentials. On the dashboard, locate the System Info & Files group and click Terminal.

The DirectAdmin dashboard zooms in on the Terminal icon in the System Info & Files group; an amber outline highlights the control.
Locate System Info & Files → Terminal.

Wait for Terminal (Active) and a prompt ready for input to appear. If you see Terminal (Closed), click Connect. If an error appears or the connection does not complete, save the message and contact support; do not change your account permissions to try to enable it.

2. Run your first commands

Click inside the terminal area, type a command, and press Enter. Wait for its output and for the prompt to reappear before continuing. Do not type the part of the prompt containing the username, server, or $ symbol.

To find out which directory you are in, run:

text
pwd

The output is the full path of the current directory. In a hosting account, you will normally start in your user's directory; do not copy the path shown in the screenshot as your own.

To view the visible files and directories in that location, run:

text
ls

These two commands retrieve information and do not modify your files. The list may differ depending on your account's contents.

3. Enter a directory and return to the previous level

The cd command changes the working directory. If ls shows a directory named domains, you can enter it with:

text
cd domains

Run pwd again to confirm the new location. To return to the parent directory, type:

text
cd ..
Active terminal showing the output of pwd and ls, followed by entering domains and returning to the user's directory.
Check the path with pwd after each directory change.

Replace domains with the actual name of a directory in your account when appropriate. Linux is case-sensitive. If the name contains spaces, enclose it in quotation marks, for example cd "my folder". If you receive No such file or directory, check the current location with pwd and the names with ls.

4. End the terminal session

When you are finished and no task is running, click Disconnect in the upper-right corner of the terminal area. The status will change to Terminal (Closed), and the Connect button will appear.

Terminal area showing the Terminal (Closed) status and the Connect button.
The Closed status confirms that the terminal session has been disconnected.

Disconnecting the terminal does not log you out of DirectAdmin. If you have finished using the panel, open your user menu and select Log Out.

Recommendations for use

  • Only run commands whose purpose you understand. A delete or overwrite command can immediately affect your site's files.

  • The terminal operates within your hosting account's permissions and limits. A Permission denied message indicates that the operation is not allowed for that user.

  • If a task keeps running and you need to interrupt it, Ctrl+C usually stops the foreground command. This does not undo changes it has already made.

  • Do not paste passwords, private keys, or commands received from a source you have not reviewed.