How to Access Remote File Systems From the Linux Terminal With Termscp

Managing files on remote servers can be tricky, especially if you shun apps that take you away from the terminal. Sure, you can use SSH and SCP to browse directories and shoot files between machines, but, while simple and elegant, these commands lack the utility of a full-fledged file manager.

Termscp is a feature-rich terminal file explorer, with support for SCP, SFTP, FTP, and S3, which allows you to interact with your remote machines through a friendly Terminal User Interface and copy files effortlessly.

4

Why Use Termscp to Manage Files on Remote Machines?

File managers are the default way most computer users interact with files and folders on their PCs. Windows owners have Explorer,macOS comes with Finder, while Linux desktops come with an astonishingvariety of GUI file managers, plus various terminal alternatives including ranger, nnn, fff, and more.

The advantages of using a file manager with a Terminal User Interface (TUI) over one with a Graphical User Interface (GUI) are obvious: they use fewer system resources, and once you have the hang of the keyboard shortcuts, are infinitely faster than dragging an icon from one window to another using a mouse.

Woman working on a Laptop standing in front of Computer Systems

If you’re just exploring the filesystem, creating directories, and moving files around, they can also be quicker than using the built-in shell commands.

When you deal with remote machines, whether you’re working on a VPS or a Raspberry Pi, your options for transferring files between your local machine and the server are limited. You can use an FTP client, or you can use a combination of Secure Shell (SSH) and Secure Copy (SCP).

install termscp on ubuntu using script

Neither of these solutions is perfect, and while the SSH and SCP combo is great if you’re doing other system administration tasks, it’s a bit unwieldy for fast copying and similar file manipulation tasks.

Termscp aims to make your life easier by giving you a beautiful TUI file manager which can simplify and speed up connecting to a remote server to retrieve and upload files and interact with the local file system.

fill in connection details for termscp

How to Install Termscp on Linux

Installing Termscp couldn’t be simpler, as the developer hascreated a scriptthat will run on any distro. The script will check your architecture, distro, and dependencies, then download and install the appropriate packages on your behalf.

Use wget to download the script to your present working directory:

file explorer view in termscp

When downloaded, run the script using:

Alternatively, you can curl the script and pipe straight to Bash with:

However, this is generally considered bad practice from a security point of view.

The wizard will show your platform and architecture, then ask, “Install termscp 0.10.0?” Type “y”, then hitEnter. Enter your password when requested, and wait to see the green check mark and the message, “Congratulations! Termscp has successfully been installed on your system!”

Use Termscp to Manage Your Files on Your Local Machine and Server

Start the Termscp TUI by opening your favorite terminal and entering:

Use theLeftandRightarrow keys on your keyboard to choose between connections via SCP, SFTP, FTP, and S3, then theUpandDownkeys to switch fields. There are four more fields you need to fill in. These are:

If you have previously used Termscp or created any bookmarks, you can pressTabto switch to the lower field, then use theLeftandRightarrow keys to switch between “Bookmarks” and “Recent connections”.

When you’re ready, hitEnterto connect to a particular server.

The TUI view will change, and you’ll be presented with another split-screen view. The top section is divided between your local filesystem on the left side and the remote filesystem on the right. You will start in the home directory of each user, and you can switch between them with theLeftandRightarrow keys.

Navigate the filesystem with theUpandDownkeys, and pressEnterto open a directory. PressingBackspacewill return you to the previous directory. If you pressEnteron a file, it will open on your local machine using the default app.

To copy a file or directory from one machine to another, pressSpacewhen the item is highlighted, and Termscp will copy the item to the currently open directory in the other panel.

If you want to edit a file on the remote system, pressF4. Alternatively, it’s possible to move a file to a new location within the remote filesystem if you pressF5, and enter the new full path.

By default, files are sorted by name. You can change this using thebkey, and choose to sort by modify time, creation time, or size. You can also toggle hidden file visibility witha.

For a full list of useful keybindings, pressh. you could alsoget command-line helpfor Termscp using the manual pages:

Termscp Is the Easy Way to Navigate Remote Filesystems

Now you can use Termscp to access and manipulate remote files through your terminal as though they were on your own PC. You can save time and get on with other projects.

Why not start by converting a spare Raspberry Pi into a web server?

Starting from everything you need to use your Raspberry Pi as a web server to the whole setup process, we’ve got you covered.

Goodbye sending links via other apps.

ensure you don’t miss these movies and shows before Netflix removes them.

Some subscriptions are worth the recurring cost, but not these ones.

It saves me hours and keeps my sanity intact.

Don’t let aging hardware force you into buying expensive upgrades.

Technology Explained

PC & Mobile