Please remember we do not offer support for "how to use shell" via live chat or phone.
Please consult with public documentation for how to use SSH (secure shell) or Unix/Linux command line.
Here are some basics you are sure to need!
You are going to need a terminal where you can type command line. Alternatively, you can use a program such as PuTTY or WinSCP.
With a program like PuTTY, this is super easy. Just type your domain name or server IP address for the Host field, and 22 for the Port, then click the Open button.
Note: Shared and reseller plans must use port 2222. Also, if you change the port number for SSH, then use that port number instead of 22.
In terminal, type this: (Be sure to replace USER with your primary username, and replace SERVER with the server IP or your domain name.)
Now you will be prompted for your primary user's password. You may not see the characters as you type them, or when you paste from your clipboard; that is normal.
In terminal or PuTTY, type this:
Now you see a list of all the files and subdirectories, along with details.
Typically, this is a known shortcut for the same detailed list:
This command takes you inside the named directory, where you can list the files to see what's inside: (Be sure to replace FOLDER with the actual directory name.)
You can move deep into the file structure if you know the path: (Be sure to replace FOLDER/PATH/ETC with the actual directory path.)
You can easily move up one directory with this:
You can easily move back to the previous directory you were in with this:
This command allows you to view a file without any possibility of modifying it: (Be sure to replace FILE.NAME with the actual file name.)
This command allows you to view a file without any possibility of modifying it: (Be sure to replace FILE.NAME with the desired file name.)
This command permanently removes files, so use with caution: (Be sure to replace FILE.NAME with the desired file name.)
These commands allow you to edit a file, so be careful: (Be sure to replace FILE.NAME with the desired file name.)
or
There are other popular editors, and you must chose which editor you are comfortable with.
These command takes you to MySQL, where you can type SQL syntax: (Be sure to replace USER with your primary username or database user, and replace DB_NAME with the actual database name.)
Now you will be prompted for your primary password or database user's password.
Once logged into MySQL, you will see a mysql> prompt.
At the mysql> prompt, type this:
At the mysql> prompt, type this: (Be sure to replace DB_NAME with the actual database name, hit Enter, then type the rest.)
At the mysql> prompt, type this: (Be sure to replace DB_NAME with the actual database name, hit Enter, then type the rest while replacing TABLE with the actual table name.)
At the mysql> prompt, type the SQL query as you normally would.
This must be done in the normal prompt, not the mysql> prompt. Just be sure to exit MySQL if you are in it. You will be prompted for your password. (Be sure to replace USER with your primary username or database user, replace DB_NAME with the actual database name, and replace FILE with the desired backup file name.)
This must be done in the normal prompt, not the mysql> prompt. Just be sure to exit MySQL if you are in it. You will be prompted for your password. (Be sure to replace USER with your primary username or database user, replace DB_NAME with the actual database name, and replace FILE with the known backup file name.)
For more commands you will need, please refer to our related article, "Shell Commands".