Select a Category

How to solve “/bin/sh: … Permission denied” Problem?


I use a cron job to run a script to backup my files every day at 4:00 AM. It worked well for years. However, when I moved to Ubuntu 10, the cron job stopped working. Error message stated “/bin/sh: 1:/home/sa/backup/backup.script: Permission denied”. The script file ran well if called from command prompt.


It […]

How to Delete all mails in Ubuntu mail?


Cron job creates lots of mail in Ubuntu. It is too time consuming to delete manually.


Send nothing to the user account in mail. Example below clear all mails for root.

cat /dev/null > /var/spool/mail/root


How to delete all local mail from a system account?

How to check Linux Hardware in Terminal Mode?

It is easy to check hardware configuration on desktop version of Linux. There is software package for it. It is harder to do in terminal mode, such as Linux server. But there is a built in command: dmidecode. This command dumps DMI (Desktop Management Interface), which is also known as BIOS. You can find hardware […]