Magento Magento2

50 Useful SSH Commands for Magento 2 Developers

50 Useful SSH Commands for Magento 2 Developers July 27, 2017Leave a comment

Hello World, I am Chandra Kumar from New Delhi, India. I am professionally developer, programmer and blogger. I am the founder of WebShouters.com.

In this tutorial, you will going to show you best useful SSH command line(CLI) for Magento 2.

SSH, also known as Secure Socket Shell, is a network protocol that provides administrators with a secure way to access a remote computer.. To connect to your server from your pc you can use Putty and type simple SSH commands to perform different actions like create folders, copying and so on.

Here you can find the complete list of ssh commands for you.

1) Show present working directory

pwd

The pwd command is used to see where on the server you are.

2) Change directory

cd

The cd command is used to navigate into a specified directory on your server.

Example:

  • cd /home (moves you into the home folder)

3) Same directory

cd .

The cd . command is used to you will remain in the same directory you were.

4) Move me up one directory

cd ..

The cd .. command is used to navigate two steps back from current directory.

5) Go to the previous directory

cd –

The cd – command is used to navigate to the previous directory.

6) Go to Home folder

cd ~

The cd ~ command is used to navigate to the home directory on your server.

7) Go to root

cd /

The cd / command is used to navigate to root.

8) List of all files

ls

The ls command is used to display all content in a folder.

Example:

  • ls /home. (will return all content of the folder /home)
  • ls /home/public_html. (will return all content of the folder /home/public_html)

9) Show all files in a directory

ls -a

The ls -a command is used to display all files in a directory.

10) Show contents with file size

ls -h

The ls -h command is used to show contents with file size.

11) How to list sub-directories recursively

ls -h

The ls -h command is used to list sub-directories recursively.

12) How to see files by file size

ls -is

The ls -is command is used to list files by size.

Hope this is useful for you 🙂

50 Useful SSH Commands for Magento 2 Developers
5 (100%) 2 votes

(Visited 4 times, 1 visits today)

Hello World, I am Chandra Kumar from New Delhi, India. I am professionally developer, programmer and blogger. I am the founder of WebShouters.com.

Leave a Reply

Your email address will not be published. Required fields are marked *