Run a linux command after every reboot
This tip allows you to run any Linux command or script just after system reboot. You can use the @reboot cron keyword.
If you have a script in your /home directory and it needs to be run on every boot, open the cron file i…Read More
View the contents of tar and rpm files #tar #rpm
Here are two simple commands to show you the contents of the tar and rpm files.
1. To view the content of a tar file, issue the following command:
#tar -tvf /path/to/file.tar
2. To view the content of an rpm file, use …Read More
Find your MySQL configuration file #mysql #grep #file
We often have to administer a system that has been set up by someone else. In such a situation, it's difficult to find the correct configuration files for different applications. Here is a tip to find the correct configurat…Read More
Comment out hashes in large configuration files
Here is a small tip for system administrators, who need to tackle large configuration files, which include lots of commented lines (marked by #). With this tip you can remove all those hashes and provide only an uncommented…Read More
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.