
Once you connect to a remote SFTP location on your Linux, macOS, or Bash terminal and you want to come out of it back to the shell prompt? Let's find out different ways you can do it,
Exit SFTP Using Keyboard Shortcut:
This is the most preferred way by developers and system admins, just press Control + Z to exit or quit,
% sftp demo@code2care.org
(demo@code2care.org) Password:
Connected to code2care.org.
sftp>^Zzsh: suspended (signal) sftp demo@code2care.org
%
Exit SFTP Using Command: bye
This one is much easier, just type bye on the sftp> prompt and you will be reverted back to your current terminal prompt (bash, sh, zsh)
sftp> bye
%
More Posts related to Linux,
- [Fix] Linux - bash: useradd: command not found
- Calculate days between dates using dateutils ddiff command
- pwd Command - Print Working Directory
- Rename a directory using Linux/Unix command
- How to go to the End of File in Nano Editor
- How to tar.gz a directory or folder Command
- How to remove/delete a directory in Linux/macOs
- How to Display content of a file in Terminal Screen?
- ls command sort by file size [Linix/UNIX/macOS/bash]
- How to Copy Entire Directory to another Directory in Linux
- 3 ways to clear screen on Linux Terminal
- Command to check Last Login or Reboot History of Users and TTYs
- How to check uptime of Linux/Unix/macOS system/server using console command?
- How to backup a file in Linux/Unix
- Command to know the installed Debian version?
- Check SSH/OpenSSH version Command
- 3 Commands to stop Nginx Server
- Linux: Create a New User and Password and Login Example
- How to install npm on Ubuntu
- How to List All Users in Linux
- How to Get the List of Shells on Linux
- Fix - ssh-copy-id no identities found error
- Installing and using unzip Command to unzip a zip file using Terminal
- scp: ssh: connect to host xxxx port 22: Connection refused Error
- zsh hello world example
More Posts:
- Install Docker for Mac using Home-brew Cask - Docker
- How to Right Click on Mac Desktop? - MacOS
- Command to Sort File In Reverse Order [Unix/Linux/macOS] - Bash
- [FIX] AndroidRuntime: FATAL EXCEPTION: main - java.lang.RuntimeException NullPointerException - Android
- INVALID FILE NAME: MUST CONTAIN ONLY [a-z0-9_.] Android Eclipse Error - Eclipse
- [macOS] Change homepage Macbook Safari Browser - MacOS
- ls command: sort files by name alphabetically A-Z or Z-A [Linux/Unix/macOS/Bash] - Linux
- Google Search Hot Trends Screensaver for Mac OS X - MacOS