Select a Category

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

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.

Solution

[…]

How to Delete all mails in Ubuntu mail?

Problem

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

Solution

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

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

Reference:

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 […]