ShellSage
ShellSage mobile SSH preset commands launching one-tap server tasks
TERMINAL TIPS

Mastering Quick Presets and Custom Commands on ShellSage

Learn how to efficiently run common server tasks with one tap using ShellSage's Quick Presets and Custom Commands.


Quick Presets and Custom Commands in ShellSage allow you to run common server tasks in one tap by inserting ready-made commands at the prompt for review before execution.

Understanding Quick Presets in ShellSage

In ShellSage, Quick Presets are a collection of ready-made commands organized into categories like System, Services, Docker, and Networking. These presets provide a convenient way to execute frequently used commands without having to type them each time. When you select a preset, it is inserted at the prompt, allowing you to review and modify it if necessary before execution.

For example, if you frequently need to check the status of your server's services, you can use a preset like systemctl status. This command will be inserted into the terminal, and you can modify it to include a specific service by appending the service name, such as systemctl status nginx.

One of the standout features of ShellSage is the blast-radius preview, which applies to any potentially destructive command. This feature ensures that you are aware of the implications of the command before you run it, reducing the risk of accidental damage to your system.

ShellSage's blast-radius preview gives you confidence to run commands without fear of unintended consequences.

How to Set Up and Use Custom Commands

Custom Commands in ShellSage allow you to save your own frequently used commands for quick access. To create a custom command, you simply type the command you wish to save, then save it as a custom command in the app. This feature is particularly useful for commands that are specific to your workflow or server environment.

For instance, let's say you often need to check the disk usage on your server. You can create a custom command df -h to quickly display the disk usage in a human-readable format. Once saved, this command can be run with a single tap from the Custom Commands menu.

Another powerful aspect of Custom Commands is the ability to pin your favorites as always-visible keys on the terminal key bar. This means that your most important commands are always just a tap away, enhancing your efficiency when working on your server from your phone.

What Makes ShellSage Different from Other Mobile SSH Clients?

Unlike most mobile SSH clients such as Termius and JuiceSSH, ShellSage offers a unique blend of features that simplify command execution. While other clients might require you to manually type out each command or lack safeguards for risky operations, ShellSage's Quick Presets and Custom Commands provide a more streamlined experience.

ShellSage's integration of AI through the Sage assistant further distinguishes it from competitors. Sage can explain command outputs and suggest fixes for any command errors, which is not commonly found in other SSH clients. This feature is particularly valuable for developers who may not be experts in every command they run.

Most SSH clients don't offer AI assistance or a blast-radius preview to prevent errors.

When Should You Use Quick Presets and Custom Commands?

Quick Presets and Custom Commands are best used when you have a set of tasks that you perform regularly on your server. By saving these tasks as presets or custom commands, you can greatly reduce the time it takes to perform them and minimize the risk of errors from manual entry.

For example, if you manage multiple servers and need to frequently update packages, a preset like sudo apt update && sudo apt upgrade can save time and ensure consistency across your systems. Similarly, if you need to restart a service often, such as a web server, a custom command sudo systemctl restart apache2 can be invaluable.

These features are particularly useful for sysadmins and SREs who are on the go, as they allow for efficient server management directly from a mobile device, with all the safeguards and conveniences that ShellSage offers.

Creating a Workflow with ShellSage

To create an efficient workflow using ShellSage, start by identifying the commands you use most frequently. Group these commands into categories like system monitoring, service management, and networking tasks. Once you have your list, check the Quick Presets to see which commands are already available and which you might need to create as custom commands.

Next, save any custom commands you need and pin your most used commands to the terminal key bar for easy access. This setup allows you to handle most server tasks with just a few taps, making your mobile device a powerful tool for server management.

Finally, take advantage of ShellSage's AI capabilities. If you're unsure about a command or its output, use the Sage assistant to get explanations or corrections. This can be a lifesaver when working under pressure or dealing with unfamiliar systems.

⚡ Key takeaways

Marcin Migdal
Your Questions, Answered

Frequently Asked Questions

To transfer files over SSH, you typically use the SCP (Secure Copy Protocol) or SFTP (SSH File Transfer Protocol) commands. These commands allow you to securely move files between a local machine and a remote server. ShellSage simplifies this process on your phone by providing real SFTP capabilities, allowing you to transfer files seamlessly with just a few taps.
Yes, you can use an SSH terminal on a phone by using apps specifically designed for mobile devices. These apps enable you to connect to remote servers and execute commands just like on a desktop. ShellSage is an AI-first SSH/SFTP app for phones that offers a full-featured terminal experience, including voice input and AI assistance.
A destructive-command shield is a feature that warns users before executing commands that could potentially harm the system, such as deleting files or stopping services. ShellSage includes a blast-radius preview feature that alerts users to the potential consequences of destructive commands, ensuring you are fully informed before proceeding.
Quick Presets in ShellSage are collections of ready-made commands organized into categories like System, Services, Docker, and Networking. They allow users to execute frequently used commands with one tap, inserting them into the terminal for review and modification before execution.
ShellSage protects your SSH keys by using secure storage and encryption methods to ensure they remain confidential and inaccessible to unauthorized users. This helps maintain the security of your connections to remote servers.
Yes, ShellSage features an AI assistant named 'Sage' that can help you run commands more efficiently. Sage can interpret voice inputs and provide command suggestions, making it easier to manage server tasks directly from your phone.
ShellSage requires an internet connection to establish SSH/SFTP connections with remote servers, as these tasks inherently depend on network access. However, you can still review and prepare commands offline before executing them once a connection is available.
Download ShellSage free
ShellSage is an AI-first SSH terminal with Sage built in: it explains output, fixes broken commands, and previews the blast radius before anything runs. Start on the free Hobby plan with no credit card, and get a 7-day full-Pro trial when you want everything.
← More tutorials