Manipulating Files
Command |
Summary
Use |
|||||||||||||||||||||||||||
chmod |
The chmod command allows you to alter access rights
to files and directories. All files and directories have security permissions
that grant the user particular groups’ or all other users’ access.
Use chmod
followed by the permission you are changing. In very simple form this would
be:
Still confused? Use the table
above to define the settings for the three "users." In the command,
the first number refers to your permissions, the second refers to group,
and the third refers to general users.
Typing the
command: chmod 751 filename
gives you full access, the group
read and execute, and all others execute only permission.
|
|||||||||||||||||||||||||||
cp |
Type
cp followed by the name of an existing file and the name of the new
file. |
|||||||||||||||||||||||||||
file |
Type
file followed by the name of an existing file in the directory. |
|||||||||||||||||||||||||||
mv |
Type mv followed by the current name of a file and
the new name of the file.
Type mv followed by the name of a
file and the new directory where you'd like to place the file. Ex: |
|||||||||||||||||||||||||||
rm |
Type rm followed by the name of a file to remove
the file. |