Category Archives: Unix

The basics on vi editor

Invest half an hour of your life watching these videos. It’s worthy. The vi editor is built-in on any single Unix / Linux operating system distribution I’ve seen in my life.

Through these four basic videos you will learn how to enter vi, switch from the command to the insert mode and viceversa, how to navigate through a file and how to insert and delete text on it.

<a href="http://youtube.com/watch?v=SI8TeVMX8pk&#8221;">http://youtube.com/watch?v=SI8TeVMX8pk&#8221;</a>

<a href="http://youtube.com/watch?v=F3OO7ZIOaJE&#8221;">http://youtube.com/watch?v=F3OO7ZIOaJE&#8221;</a>

<a href="http://youtube.com/watch?v=ZYEccA_nMaI&#8221;">http://youtube.com/watch?v=ZYEccA_nMaI&#8221;</a>

<a href="http://youtube.com/watch?v=1lYD5gwgZIA&#8221;">http://youtube.com/watch?v=1lYD5gwgZIA&#8221;</a>

Thanks to devdaily for this.

 

How to enable Cron for non-root users

If you try to edit a user’s crontab and get this error:

”crontab: you are not authorized to use cron.  Sorry.”

You need to log in as root and edit a config file to add the user that you want to access Cron too:

# vi /usr/lib/cron/cron.allow

We add the user:

root
user1
user2

We save & close.

Now we log in with the user and we are able to access its crontab:

$ crontab -e

[Seen: Nekan]