create new directory at linux or ssh

sometime we must move one directory to other. For move directory/folder at SSH, we can login first at our SSH client server.

go to the folder where we want to move folder or file to new folder.

First, we must create new folder/directory. For create this, we must inside folder where new folder want to be created.

Inside folder, write command :

mkdir new_folder_name

For check new folder has been created or not, write command :

ls

We will find our new folder.

For move file or folder to our new folder, write command :

mv folder/file [space] new_folder

Ex : for move file

command :

mv contact.php contact

That command will move file “contact.php” to folder “contact”

For move folder, same command :

mv folder1 folder2

This command will move “folder1″ to “folder2″

Respond to this post