How to edit scheduled jobs (crontab) on AIX

A very useful link: http://publib.boulder.ibm.com/infocenter/discover/v8r4/index.jsp?topic=/com.ibm.discovery.ds.publish.doc/c_UG_Configuring_Cron_Job.htm

Tagged , | Leave a comment

How to change your current username on Ubuntu Linux

Beware, this action is VERY dangerous and might ruin some of your running applications, I tried it first on a virtual machine and then my actual machine and it messed up 2 or 3 apps only, I was lucky as these were easy to fix, here we go (Read the instructions below carefully):

usermod -l newname -m -d /home/newname oldname

Please note that you MUST:

  1. be logged out from the user that you will change the “username” for 
  2. and make sure all that user’s applications are closed.

Thanks go to prshah for his post here

Tagged , , , | Leave a comment

Bash script to monitor background processes

while [ 1 ]; do ps -ef | grep bzip2; echo “=============================================”; sleep 5; done;

where:

bzip2: is the process name or part of the process name

Press Ctrl+c at any time to cancel the process

Tagged , | Leave a comment

How to compress a file into multiple splitted files (Like what you used to do in MS Windows using Winrar)

I made it through the GUI this time, not using the command line:

  • Opened Gnome File Roller (Applications ->Accessories->Archive Manager)
  • Dragged the folder I wanted to compress inside it
  • Click “Create Archive”
  • Click “Other Options”
  • Tick “Split in volumes of” and choose the split size (how many MB you want each file split to be)
  • Choose “Archive Type” to be “7z”. Note: I selected “Automatic” at first, but it didn’t work! Do you know why??
  • Click “Create”
  • Enjoy 🙂
Tagged , , | Leave a comment

SQL statement to unlock user account in oracle

ALTER USER username ACCOUNT UNLOCK;
Tagged , , | Leave a comment