How to Use Shell Commands

Last modified: August 22, 2024

To use shell commands, you need to use SSH. You can learn how to connect to your site(s) via SSH here.

Extensive resources are available on using the Linux command line. Some popular examples include the following third-party sources:

Common Shell Commands

CommandDescription
lsShow a list of the current directory’s contents.
cdChange directory.
mkdirCreate a new folder/directory.
touchCreate a file.
rmRemove a file.
catShow the contents of a file.
cpCopy.
mvMove.
pwdShow current directory.
grepSearch for a specific phrase in the file/lines.
findSearch files and directories.
nanoText editor.
historyShow the last 50 used commands.
clearClear the terminal screen.
duGet file size.
rsyncCopy files to and from the server.

Frequently Asked Questions

Can I get support for using command line tools?

Due to the complex nature of SSH, we are not able to provide extensive support for using these tools. Our Support Team is available to help with issues connecting via SSH but cannot guide you through using commands.

Are all commands available?

In order to provide a secure and performant environment, Pressable may restrict or disable certain shell and WP-CLI commands.

What if something goes wrong?

If something happens to your site after you’ve made changes via SSH, or if you run a command and something happens you didn’t expect, you can restore your site from a backup.

We will NOT be able to help you debug your command to make it work as expected.