linux command

Copy or move file

sudo cp -r <source> <destinate>

Ex: cp -r home/ayu/xyz/. /tmp

sudo mv -r <source> <destinate>

Ex: mv drupal_commons/ xyz/

Rename file

mv <old file name> <new file name>

File Permission

chmod

The chmod command is used to change the permissions of a file or directory. To use it, you specify the desired permission settings and the file or files that you wish to modify. There are two ways to specify the permissions, but I am only going to teach one way.

It is easy to think of the permission settings as a series of bits (which is how the computer thinks about them). Here’s how it works: