Linux command glossary

SSH Command in Linux with examples

A plain-English glossary of the Linux commands you use over SSH: files, permissions, processes, networking, SSH and more. Every command has a short explanation and copy-ready examples.

  • 139 commands
  • 13 categories
  • 327 copy-ready examples

Type these in the terminal of any Linux server you log in to, or in SSH Command's Shell mode.

Browse Linux commands by category

Files and folders

Move around, create, copy, rename and delete files and folders. These are the commands you will type every single day.

pwdlscdmkdirrmdirtouchcp+9
16 commands →

Reading and editing text

Look inside files, follow growing log files and edit text from the terminal.

catlessheadtailnanovimtee+2
9 commands →

Search and filter

Find text inside files, find files by name or size, and shape the output of other commands.

grepfindlocatewhichwhereisawksed+6
13 commands →

Permissions and ownership

Control who can read, change and run a file, and become the administrator when you need to.

chmodchownchgrpumasksudosuwhoami+3
10 commands →

Users and groups

Create and manage accounts, and see who is logged in.

adduseruseraddusermoduserdelpasswdgroupaddchage+2
9 commands →

Processes and services

See what is running, stop what is stuck, and manage background services.

pstophtopkillpkillpgrepjobs+6
13 commands →

Disk and storage

Check free space, find what is using it, and work with disks and mounts.

dfdulsblkblkidmountumountfdisk+3
10 commands →

System information

Find out what machine you are on, how busy it is and what has happened.

unameuptimehostnamedatelscpulsb_releasedmesg+4
11 commands →

Networking

Check connections, addresses, DNS and ports; download things; manage the firewall.

ippingssnetstatcurlwgetdig+6
13 commands →

SSH and file transfer

Log in to servers, copy files between machines and set up passwordless keys.

sshssh-keygenssh-copy-idssh-agentscpsftprsync+3
10 commands →

Archives and compression

Pack many files into one, and make big files small.

targzipzipbzip2zcat
5 commands →

Installing software

Install, update and remove programs. The command depends on your Linux family.

aptdpkgdnfrpmpacmanzyppersnap
7 commands →

Shell basics and scripting

Small commands that make the terminal faster, and the first steps of scripts.

echomanclearaliasexportsourceredirects and pipes+6
13 commands →

Run these commands with SSH Command

SSH Command is a desktop app for Mac, Windows and Linux that puts a real terminal, SFTP file panes, a sudo switch and a searchable Linux command finder in one window. Type what you want to do, and send the command to your server with one click.

Download free Windows commands with examples SFTP & FTP client

Frequently asked questions

What is an SSH command in Linux?

An SSH command is any command you type on a Linux server after logging in over SSH (Secure Shell). The word also names the ssh program itself, which opens the encrypted login. Once logged in, every command in this glossary works the same as on a local terminal.

How do I run Linux commands on a remote server?

Log in with ssh user@host and type the commands, or run one command without opening a shell: ssh user@host "df -h". A desktop client such as SSH Command gives you a terminal, a file browser and a sudo switch in one window.

Which Linux commands should a beginner learn first?

Start with pwd, ls, cd, cat, cp, mv, rm, mkdir, grep, chmod, sudo, ps, df and ssh. They are all in the “Most used commands” section on this page.

Is rm -rf dangerous?

Yes. rm -rf deletes a folder and everything inside it immediately, without a recycle bin and without asking. Check the path carefully, and try ls on the same path first.

Why does “sudo cd” say command not found?

cd is built into the shell, so sudo cannot start it as a separate program. Use sudo -i for a root shell, or sudo ls /folder to look inside a folder.