{"id":651,"date":"2019-11-22T03:06:13","date_gmt":"2019-11-22T03:06:13","guid":{"rendered":"http:\/\/blog.hostinger.io\/hostinger-tutorials\/uncategorized\/sshbasic-ssh-commands\/"},"modified":"2025-01-24T14:34:55","modified_gmt":"2025-01-24T14:34:55","slug":"sshbasic-ssh-commands","status":"publish","type":"post","link":"\/my\/tutorials\/ssh\/basic-ssh-commands","title":{"rendered":"17 Essential SSH Commands to Know + Free Cheat Sheet"},"content":{"rendered":"<p>Secure Shell (SSH) is a powerful tool used to access and manage remote servers securely. Whether you&rsquo;re a beginner or an experienced user, mastering these 17 basic SSH commands will enhance your efficiency and proficiency in managing your servers effectively. Let&rsquo;s dive in and explore the essential commands that every SSH user should be familiar with.<\/p><p class=\"has-text-align-center\"><a href=\"https:\/\/assets.hostinger.com\/content\/tutorials\/pdf\/SSH-Cheat-Sheet-EN.pdf\" target=\"_blank\" rel=\"noopener\">Download ultimate SSH commands cheat sheet<\/a><\/p><h2 class=\"wp-block-heading\" id=\"h-how-to-access-remote-server\">How to Access Remote Server<\/h2><p>Before we begin, make sure that you have access to a remote server. If you own a <a href=\"\/my\/vps-hosting\">Hostinger VPS plan<\/a>, the login details are located in the <strong>Servers<\/strong> tab of hPanel. However, if you use our shared web hosting, you need to go to <strong>Hosting -&gt; Advanced -&gt; SSH Access<\/strong>.<\/p><p>\n\n\n<div class=\"protip\">\n                    <h4 class=\"title\">Pro Tip<\/h4>\n                    <p>SSH stands for Secure Shell, a protocol used to securely connect to a remote server or system. If you want to learn more about it, we have a detailed tutorial on <a href=\"\/my\/tutorials\/ssh-tutorial-how-does-ssh-work\">how SSH works<\/a> and <a href=\"\/my\/tutorials\/ssh\/how-to-set-up-ssh-keys\">how to set up SSH keys<\/a>.<\/p>\n                <\/div>\n\n\n\n<\/p><p>Now let&rsquo;s start accessing your remote server:<\/p><ol class=\"wp-block-list\">\n<li>There are two recommended methods to establish an SSH connection:\n<ul class=\"wp-block-list\">\n<li>Using an SSH client (<a href=\"\/my\/tutorials\/how-to-use-putty-ssh\">PuTTY<\/a>). It will require you to enter the server&rsquo;s IP and the port number into the corresponding fields.<br><img decoding=\"async\" class=\"aligncenter wp-image-22815 size-full\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2017\/03\/putty-1.png\" alt=\"The fields in PuTTY where you need to enter your server's IP address and port\" width=\"597\" height=\"538\" srcset=\"https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2017\/03\/putty-1.png 597w, https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2017\/03\/putty-1-150x135.png 150w, https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2017\/03\/putty-1-300x270.png 300w\" sizes=\"(max-width: 597px) 100vw, 597px\" \/><\/li>\n\n\n\n<li>Using the built-in command prompt (Windows) or terminal shell (Linux, macOS). You will need to write:\n<pre>ssh user@serverip<\/pre>\n<p>Remember to replace &ldquo;<strong>user<\/strong>&rdquo; with your real username and &ldquo;<strong>serverip<\/strong>&rdquo; with your server&rsquo;s dedicated or shared IP address.<\/p>\n<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Once you click the <strong>Open<\/strong> button on PuTTY or enter the command on the terminal, you will be prompted for a password. If you are connecting to the server for the first time, you might get a warning message, telling you that the server is not recognized. Just hit <strong>Yes<\/strong> to continue.<\/li>\n<\/ol><p>That&rsquo;s it. Now you&rsquo;re connected to the server and can start executing SSH commands.<\/p><h2 class=\"wp-block-heading\" id=\"h-list-of-basic-ssh-commands\">List of Basic SSH Commands<\/h2><p>In this part, we will go through popular SSH commands, complete with their syntaxes and useful options.<\/p><p>Here&rsquo;s a quick look of the basic SSH commands that we&rsquo;ll cover in this article:<\/p><figure tabindex=\"0\" class=\"wp-block-table\"><table><thead><tr><th>SSH Command<\/th><th>Explanation<\/th><\/tr><\/thead><tbody><tr><td><code>ls<\/code><\/td><td>Show directory contents (list the names of files).<\/td><\/tr><tr><td><code>cd<\/code><\/td><td>Change Directory.<\/td><\/tr><tr><td><code>mkdir<\/code><\/td><td>Create a new folder (directory).<\/td><\/tr><tr><td><code>touch<\/code><\/td><td>Create a new file.<\/td><\/tr><tr><td><code>rm<\/code><\/td><td>Remove a file.<\/td><\/tr><tr><td><code>cat<\/code><\/td><td>Show contents of a file.<\/td><\/tr><tr><td><code>pwd<\/code><\/td><td>Show current directory (full path to where you are right now).<\/td><\/tr><tr><td><code>cp<\/code><\/td><td>Copy file\/folder.<\/td><\/tr><tr><td><code>mv<\/code><\/td><td>Move file\/folder.<\/td><\/tr><tr><td><code>grep<\/code><\/td><td>Search for a specific phrase in file\/lines.<\/td><\/tr><tr><td><code>find<\/code><\/td><td>Search files and directories.<\/td><\/tr><tr><td><code>vi\/nano<\/code><\/td><td>Text editors.<\/td><\/tr><tr><td><code>history<\/code><\/td><td>Show last 50 used commands.<\/td><\/tr><tr><td><code>clear<\/code><\/td><td>Clear the terminal screen.<\/td><\/tr><tr><td><code>tar<\/code><\/td><td>Create &amp; Unpack compressed archives.<\/td><\/tr><tr><td><code>wget<\/code><\/td><td>Download files from the internet.<\/td><\/tr><tr><td><code>du<\/code><\/td><td>Get file size.<\/td><\/tr><\/tbody><\/table><\/figure><h3 class=\"wp-block-heading\" id=\"h-1-ls-command\">1. ls Command<\/h3><p>The <a href=\"\/my\/tutorials\/ls-command\">ls command<\/a> is used to list all files and directories. After entering <strong>ls<\/strong>, you will see an output that looks like this:<\/p><div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"449\" height=\"44\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2017\/03\/ls-command-ssh.png\" alt=\"The output of ls command\" class=\"wp-image-22848\" srcset=\"https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2017\/03\/ls-command-ssh.png 449w, https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2017\/03\/ls-command-ssh-150x15.png 150w, https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2017\/03\/ls-command-ssh-300x29.png 300w\" sizes=\"(max-width: 449px) 100vw, 449px\" \/><\/figure><\/div><p>There are also a few useful options that you can combine with it:<\/p><ul class=\"wp-block-list\">\n<li><strong>-l<\/strong> &mdash; &nbsp;displays the details of the files, such as size, modified date and time, the owner, and the permissions.<\/li>\n\n\n\n<li><strong>-a<\/strong> &mdash;&nbsp; shows hidden files and directories.<\/li>\n<\/ul><h3 class=\"wp-block-heading\" id=\"h-2-cd-command\">2. cd Command<\/h3><p><strong>cd<\/strong> (Change Directory) is the command that we use to jump between directories. It&rsquo;s a pretty simple command &mdash; just type <strong>cd<\/strong> followed by the name of the directory:<\/p><pre class=\"wp-block-preformatted\">cd [directory]<\/pre><p>As such, if you want to enter the home directory of your server, you can type:<\/p><pre class=\"wp-block-preformatted\">cd \/home<\/pre><p>You may also write the full path of a certain directory if it is a few levels deep. For instance:<\/p><pre class=\"wp-block-preformatted\">cd \/home\/TestDirectory\/AnotherDirectory<\/pre><p>You are now in the <strong>AnotherDirectory.<\/strong><\/p><p>To go back one level, you can simply enter &ldquo;<strong>..<\/strong>&rdquo; (two dots) after <strong>cd<\/strong> command. What&rsquo;s cool, you can go back further by adding another two-dots and separating them with a forward slash (<strong>\/<\/strong>):<\/p><pre class=\"wp-block-preformatted\">cd ..\/..<\/pre><p>By entering this line, you are in the <strong>home<\/strong> directory again.<\/p><h3 class=\"wp-block-heading\" id=\"h-3-mkdir-command\">3. mkdir Command<\/h3><p>You can use <strong>mkdir<\/strong> (Make Directory) command to create a directory. This is the syntax:<\/p><pre class=\"wp-block-preformatted\">mkdir [folder name]<\/pre><p>Let&rsquo;s assume you want to create a new folder named &ldquo;<strong>myfolder<\/strong>&rdquo;. You will need to type:<\/p><pre class=\"wp-block-preformatted\">mkdir myfolder<\/pre><h3 class=\"wp-block-heading\" id=\"h-4-touch-command\">4. touch Command<\/h3><p>The <a href=\"\/my\/tutorials\/linux-touch-command-with-useful-examples\/\"><strong>touch<\/strong> command<\/a> in SSH is used to create a new file. Here is the syntax:<\/p><pre class=\"wp-block-preformatted\">touch [file name]<\/pre><p>If you want to create a <strong>.txt<\/strong> file named &ldquo;<strong>myfile<\/strong>&rdquo;, this is what you need to write:<\/p><pre class=\"wp-block-preformatted\">touch myfile.txt.<\/pre><p>The file extension could be anything you want. You can even create a file with no extension at all.<\/p><h3 class=\"wp-block-heading\" id=\"h-5-rm-command\">5. rm Command<\/h3><p><a href=\"\/my\/tutorials\/how-to-remove-files-and-folders-using-linux-command-line\/\"><strong>rm<\/strong> command<\/a> removes a chosen file or directory. To delete a file, enter:<\/p><pre class=\"wp-block-preformatted\">rm [file name]<\/pre><p>For instance, if you want to remove <strong>myfile.txt<\/strong>, simply execute:<\/p><pre class=\"wp-block-preformatted\">rm myfile.txt<\/pre><p>To delete a folder, you need to use the <strong>-r<\/strong> option to remove all the files and subfolders inside it:<\/p><pre class=\"wp-block-preformatted\">rm -r home\/hostinger\/myfolder<\/pre><h3 class=\"wp-block-heading\" id=\"h-6-cat-command\">6. cat Command<\/h3><p>We use <a href=\"\/my\/tutorials\/linux-cat-command-tutorial-and-examples\/\"><strong>cat<\/strong> command<\/a> to display the content of a file. Below is the syntax:<\/p><pre class=\"wp-block-preformatted\">cat [file name]<\/pre><p>It also allows you to create a new file by merging multiple files. For example:<\/p><pre class=\"wp-block-preformatted\">cat info.txt info2.txt &gt; mergedinfo.text<\/pre><p>By executing this line, the content of <strong>info.txt<\/strong> and <strong>info2.txt<\/strong> will be saved into <strong>mergedinfo.txt<\/strong>.<\/p><h3 class=\"wp-block-heading\" id=\"h-7-pwd-command\">7. pwd Command<\/h3><p><strong>pwd<\/strong> is a simple command that outputs the full path of your working directory. Once entered, you should see a result like this:<\/p><pre class=\"wp-block-preformatted\">home\/user\/public_html<\/pre><p><strong>pwd<\/strong> command can come in really handy when you are accessing your site hosting account through SSH. Oftentimes, shared servers don&rsquo;t tell you the directory you are in.<\/p><h3 class=\"wp-block-heading\" id=\"h-8-cp-command\">8. cp Command<\/h3><p>This SSH command will copy files and folders. The syntax is:<\/p><pre class=\"wp-block-preformatted\">cp [options] [source] [destination]<\/pre><p><strong>[source]<\/strong> is the file or folder you want to copy and <strong>[destination]<\/strong> is the duplicate.<\/p><p>Let&rsquo;s say you have&nbsp;<strong>myfile.txt&nbsp;<\/strong>in your working directory, and you want to make a copy of it. The syntax would be:<\/p><pre class=\"wp-block-preformatted\">cp myfile.txt myfile2.txt<\/pre><p>If you want to make a copy in a different folder, run the following command:<\/p><pre class=\"wp-block-preformatted\">cp \/home\/hostinger\/myfile.txt \/home\/etc\/<\/pre><p>Be careful when writing the name of the destination. If you provide two file names, the cp command will copy the content of the source file into the destination file. Thus, the destination file will be overwritten without any warning. However, if the destination file doesn&rsquo;t exist, then the command will create a new file.<\/p><p><strong>[options]<\/strong> is not mandatory. However, there are several options that you can use:<\/p><ul class=\"wp-block-list\">\n<li><strong>-f<\/strong> &mdash; if you don&rsquo;t have writing permission to the destination file, it&rsquo;ll be deleted and the command will create a new file<\/li>\n\n\n\n<li><strong>-u<\/strong> &mdash; copy the source file if it is newer than the destination file.<\/li>\n\n\n\n<li><strong>-n<\/strong> &mdash; will not overwrite an existing file.<\/li>\n\n\n\n<li><strong>-a<\/strong> &mdash; archive the files.<\/li>\n<\/ul><p>Unlike duplicating files, copying folders requires you to use the<strong> -R&nbsp;<\/strong>(recursive) option. The option allows all folders and files inside it to be copied.<\/p><pre class=\"wp-block-preformatted\">cp -R \/home\/hostinger\/myfolder \/home\/etc\/<\/pre><h3 class=\"wp-block-heading\" id=\"h-9-mv-command\">9. mv Command<\/h3><p>This command works similarly to <strong>cp<\/strong>. However, <strong>mv<\/strong> command will move the file or folder instead of copying it. This is the syntax:<\/p><pre class=\"wp-block-preformatted\">mv [source] [destination]<\/pre><p>Let&rsquo;s say we want to move <strong>myfile.txt<\/strong> from <strong>\/home\/hostinger\/ftp<\/strong> to <strong>\/home\/hostinger\/myfolder\/<\/strong>. The command should be:<\/p><pre class=\"wp-block-preformatted\">mv \/home\/hostinger\/ftp\/myfile.txt \/home\/hostinger\/myfolder<\/pre><p>Unlike<strong> cp<\/strong> command, you don&rsquo;t need the <strong>-R<\/strong>&nbsp;option to move a folder. For instance:<\/p><pre class=\"wp-block-preformatted\">mv \/home\/hostinger\/ftp\/ \/home\/hostinger\/myfolder\/<\/pre><p>This will automatically move all files and subfolders inside <strong>ftp<\/strong> to <strong>myfolder<\/strong>.<\/p><h3 class=\"wp-block-heading\" id=\"h-10-grep-command\">10. grep Command<\/h3><p><a href=\"\/my\/tutorials\/grep-command-in-linux-useful-examples\/\"><strong>grep<\/strong> command<\/a> looks for a given string in files. For example:<\/p><pre class=\"wp-block-preformatted\">grep 'line' info.txt<\/pre><p>The above command would search for &lsquo;<strong>line<\/strong>&rsquo; in a file named &ldquo;<strong>info<\/strong><strong>.txt<\/strong>&rdquo;. What&rsquo;s great, the command will print the entire line that contains the matched text.<\/p><h2 class=\"wp-block-heading\" id=\"h-\"><img decoding=\"async\" class=\"aligncenter wp-image-22849 size-full\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2017\/03\/grep-command-ssh.png\" alt=\"The results of grep SSH command\" width=\"591\" height=\"81\" srcset=\"https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2017\/03\/grep-command-ssh.png 591w, https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2017\/03\/grep-command-ssh-150x21.png 150w, https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2017\/03\/grep-command-ssh-300x41.png 300w\" sizes=\"(max-width: 591px) 100vw, 591px\" \/><\/h2><p>Keep in mind that this command is case sensitive. If you want to ignore letter cases, use <strong>-i&nbsp;<\/strong>option.<\/p><h3 class=\"wp-block-heading\" id=\"h-11-find-command\">11. find Command<\/h3><p>We enter <a href=\"\/my\/tutorials\/how-to-use-find-and-locate-commands-in-linux\/\">find SSH command<\/a> to search for a file or files that meet the given criteria (name, size, file type, etc). The following is the basic syntax:<\/p><pre class=\"wp-block-preformatted\">find [starting directory] [options] [search term]<\/pre><p><strong>[starting directory]<\/strong> is where you would like to start your search process. There are three main choices:<\/p><ul class=\"wp-block-list\">\n<li><strong>\/<\/strong> (slash) &mdash; search the whole system<\/li>\n\n\n\n<li><strong>.<\/strong> (dot) &mdash; search the working directory<\/li>\n\n\n\n<li><strong>~<\/strong> (tilde) &mdash; search the home directory<\/li>\n<\/ul><p><strong>[options]<\/strong> is an additional argument that you can use to refine your search. Some of the most popular options are:<\/p><ul class=\"wp-block-list\">\n<li><strong>-name<\/strong> &mdash; look for files based on their names<\/li>\n\n\n\n<li><strong>-user<\/strong> &mdash; search for files that belong to a given user<\/li>\n\n\n\n<li><strong>-size<\/strong> &mdash; look for files based on their sizes<\/li>\n<\/ul><p><strong>[search term]<\/strong> is the keyword or number that you use to search for files.<\/p><p>Take a look at this example:<\/p><pre class=\"wp-block-preformatted\">find . -name &ldquo;index&rdquo;<\/pre><p>This command will return any files that have the word &ldquo;<strong>index<\/strong>&rdquo; on their names. And since we use &ldquo;<strong>.<\/strong>&rdquo; (dot), the command will only search the working directory.<\/p><p>We also have a great <a href=\"\/my\/tutorials\/how-to-use-find-and-locate-commands-in-linux\/\">tutorial<\/a> that provides an in-depth explanation about this SSH command.<\/p><h3 class=\"wp-block-heading\" id=\"h-12-vi-nano-command\">12. vi\/nano Command<\/h3><p><strong>Vi<\/strong> and <a href=\"https:\/\/www.nano-editor.org\/\" target=\"_blank\" rel=\"noopener\"><strong>Nano<\/strong><\/a> are two popular text editors that you can use in the command line. To open a file using <strong>V<\/strong><strong>i<\/strong> or <strong>Nano<\/strong>, you just need to enter:<\/p><pre class=\"wp-block-preformatted\">vi [file name]<\/pre><p>or<\/p><pre class=\"wp-block-preformatted\">nano [file name]<\/pre><p>If the specified file doesn&rsquo;t exist, both text editors will automatically create it for you.<\/p><p>Unfortunately, some Linux distributions don&rsquo;t offer Nano by default. Don&rsquo;t worry, you can read our guide on <a href=\"\/my\/tutorials\/how-to-install-and-use-nano-text-editor\">how to install and use Nano<\/a>.<\/p><h3 class=\"wp-block-heading\" id=\"h-13-history-command\">13. history Command<\/h3><p>This one is used to display the last used commands. You need to enter a number to limit the displayed results. For example:<\/p><pre class=\"wp-block-preformatted\">history 20<\/pre><p>As you probably guess, the example will show the 20 most recently entered commands.<\/p><h3 class=\"wp-block-heading\" id=\"h-14-clear-command\">14. clear Command<\/h3><p>The function of<strong> clear<\/strong> command is simple &mdash; it clears all text from the terminal screen.<\/p><h3 class=\"wp-block-heading\" id=\"h-15-tar-command\">15. tar Command<\/h3><p><strong>tar<\/strong> is an SSH command that creates or extracts .<strong>t<\/strong><strong>ar.gz<\/strong> files. It is very popular because most third-party software binaries are in the <strong>.<\/strong><strong>tar.gz <\/strong>format.<\/p><p>To archive a folder in <strong>.tar.gz<\/strong> format, use the following command:<\/p><pre class=\"wp-block-preformatted\">tar -cvzf ArchiveName.tar.gz \/path\/to\/directory<\/pre><p>To unpack a <strong>.tar.gz<\/strong> file, enter this command:<\/p><pre class=\"wp-block-preformatted\">tar -xvzf FileName.tar.gz<\/pre><p>Notice that both commands use different four-character options &mdash; <strong>cvzf<\/strong> and<strong> xvzf<\/strong>.&nbsp; Each letter represents a specific instruction:<\/p><ul class=\"wp-block-list\">\n<li><strong>x<\/strong> tells tar to extract files<\/li>\n\n\n\n<li><strong>c<\/strong> tells tar to create an archive<\/li>\n\n\n\n<li><strong>v<\/strong> stands for <strong>verbose<\/strong>. The option tells tar to display all file names that are processed by the command.<\/li>\n\n\n\n<li><strong>z<\/strong> instructs tar to uncompress the archive<\/li>\n\n\n\n<li><strong>f<\/strong> tells tar that you are supplying the name of the archive<\/li>\n<\/ul><p>\n\n\n<div class=\"protip\">\n                    <h4 class=\"title\">Suggested Reading<\/h4>\n                    <p><a href=\"\/my\/tutorials\/linux-tar-command-with-examples\/\">How to Use the tar Command: Useful Examples for Archiving and Compressing Files in Linux<\/a><\/p>\n                <\/div>\n\n\n\n<\/p><h3 class=\"wp-block-heading\" id=\"h-16-wget-command\">16. wget Command<\/h3><p><strong>wget<\/strong> is used to download files from the internet. For example, to fetch a file from a website and store it in our current directory, we&rsquo;ll use:<\/p><pre class=\"wp-block-preformatted\">wget http:\/\/fileurl\/filename.ext<\/pre><p>If you want to download multiple files, put all URLs into a file and use the <strong>-i<\/strong> option.<\/p><p>Let&rsquo;s say the file containing the links is called&nbsp;<strong>downloads.txt.&nbsp;<\/strong>The command will look like this:<\/p><pre class=\"wp-block-preformatted\">wget -i downloads.txt<\/pre><h3 class=\"wp-block-heading\" id=\"h-17-du-command\">17. du Command<\/h3><p>You can use <strong>du<\/strong> (Disk Usage) command to view the size of files and folders in a specified directory:<\/p><pre class=\"wp-block-preformatted\">du [directory path]<\/pre><p>Unfortunately, the summary will show disk block numbers instead of bytes, kilobytes, and megabytes. Therefore, to show it in a human-readable format, you need to insert the <strong>-h<\/strong> option after <strong>du<\/strong> command:<\/p><pre class=\"wp-block-preformatted\">du -h \/home<\/pre><p>The results will be more understandable:<\/p><div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"513\" height=\"162\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2017\/03\/du-command.png\" alt=\"The results of du command\" class=\"wp-image-22814\" srcset=\"https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2017\/03\/du-command.png 513w, https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2017\/03\/du-command-150x47.png 150w, https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2017\/03\/du-command-300x95.png 300w\" sizes=\"(max-width: 513px) 100vw, 513px\" \/><\/figure><\/div><p>Check out&nbsp;this <a href=\"\/my\/tutorials\/vps\/how-to-check-and-manage-disk-space-via-terminal\">article<\/a> to read more about <strong>du<\/strong> command.<\/p><h2 class=\"wp-block-heading\" id=\"h-conclusion\">Conclusion<\/h2><p>Learning SSH commands is crucial for managing Linux server or VPS. It is the most effective way to navigate through your system and modify files or folders.<\/p><p>Thankfully, you have learned 17 essential SSH commands that every webmaster should know. Now you can easily perform basic tasks on your remote machine, such as creating files, deleting them, jumping between directories, and so on.<\/p><p>Feel free to comment below if you have any questions!<\/p><?xml encoding=\"utf-8\" ?><figure class=\"wp-block-image size-full\"><a href=\"\/my\/web-hosting\"><img decoding=\"async\" width=\"1024\" height=\"300\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/11\/Web-hosting_in-text-banner.png\" alt=\"Hostinger web hosting banner\" class=\"wp-image-98604\" srcset=\"https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2023\/11\/Web-hosting_in-text-banner.png 1024w, https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2023\/11\/Web-hosting_in-text-banner-300x88.png 300w, https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2023\/11\/Web-hosting_in-text-banner-150x44.png 150w, https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2023\/11\/Web-hosting_in-text-banner-768x225.png 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><p>\n\n\n<div class=\"protip\">\n                    <h4 class=\"title\">Suggested Reading<\/h4>\n                    <p><a href=\"\/my\/tutorials\/how-to-install-and-use-linux-screen\/\">How to Use Linux Screen for Effective Terminal Management in 2025<\/a><br>\n<a href=\"\/my\/tutorials\/using-scp-command-to-transfer-files\/\">How to Use SCP Command to Copy and Transfer Files in Linux<\/a><\/p>\n                <\/div>\n<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Secure Shell (SSH) is a powerful tool used to access and manage remote servers securely. Whether you&rsquo;re a beginner or an experienced user, mastering these 17 basic SSH commands will enhance your efficiency and proficiency in managing your servers effectively. Let&rsquo;s dive in and explore the essential commands that every SSH user should be familiar [&#8230;]<\/p>\n<p><a class=\"btn btn-secondary understrap-read-more-link\" href=\"\/my\/tutorials\/ssh\/basic-ssh-commands\">Read More&#8230;<\/a><\/p>\n","protected":false},"author":2,"featured_media":121100,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_title":"17 Essential SSH Commands to Know + Free Cheat Sheet","rank_math_description":"Learn how to navigate and work with files in a Linux environment. We'll provide a list of basic SSH commands and examples on how to use them.","rank_math_focus_keyword":"ssh commands","footnotes":""},"categories":[],"tags":[],"class_list":["post-651","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry"],"hreflangs":[],"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/my\/tutorials\/wp-json\/wp\/v2\/posts\/651","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/my\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/my\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/my\/tutorials\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/my\/tutorials\/wp-json\/wp\/v2\/comments?post=651"}],"version-history":[{"count":42,"href":"https:\/\/www.hostinger.com\/my\/tutorials\/wp-json\/wp\/v2\/posts\/651\/revisions"}],"predecessor-version":[{"id":121770,"href":"https:\/\/www.hostinger.com\/my\/tutorials\/wp-json\/wp\/v2\/posts\/651\/revisions\/121770"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/my\/tutorials\/wp-json\/wp\/v2\/media\/121100"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/my\/tutorials\/wp-json\/wp\/v2\/media?parent=651"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/my\/tutorials\/wp-json\/wp\/v2\/categories?post=651"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/my\/tutorials\/wp-json\/wp\/v2\/tags?post=651"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}