Linux tips and tricks for those LINUX things we do but not often so easily forgotten.

Changing user permissions:

]# chmod -R 777 /the/directory (before updates)
]# chmod -R 775 /the/directory (after updates)

ziping a directory:

  1. Make sure zip is installed ( #] yum install zip )
  2. ]# zip -r directory

Porting cron Shell Script output to text file:
0 * * * root /home/ >> /home/script.log 2>&1

Extracting tar.gz file:
]# tar xvzf file.tar.gz

Moving a file from one directory to another:
]# mv /the/directory/file /to/the/directory/file