Tag: bsd

How to schedule tasks in GNU/Linux

cron is a time-based job scheduler in Unix-like computer operating systems, cron is used to schedule jobs at fixed times, dates, or intervals; cron runs every minute and detects if there is a new command or task (reading the files /etc/crontab, /etc/cron.d/* and /var/spool/cron/crontabs/*) to run.

Wake up your computer using rtcwake


If we want to "wake up" the computer at a certain moment, we can use the rtcwake command. rtcwake hibernates or suspends the system and to automatically wake from it at a specified time

How to redirect URL with Apache

mod_rewrite is a powerful and sophisticated Apache web server module that allows urls to be rewritten using regular expressions. To redirect the urls to the corresponding url with www in front.

Geany a lightweight text editor

Geany is a powerful, stable and lightweight text editor that has a modular architecture which allows to extend the basic functionality by selecting a set of plugins. It's developed under GPL v2 license. Geany requires few space on hard disk, has few dependencies (not depends on KDE or GNOME libs)

How to read/write NTFS partitions on GNU/Linux


NTFS-3G is a stable, full-featured, read-write NTFS driver for Linux, Android, Mac OS X, FreeBSD, NetBSD, OpenSolaris, QNX, Haiku, and other operating systems.

  • It provides safe handling of the Windows XP, Windows Server 2003, Windows 2000, Windows Vista, Windows Server 2008, Windows 7, Windows 8 and Windows 10 NTFS file systems.
  • It allows to create, delete, move and rename files, directories, hard links and streams
  • It allows to read and modify files and streams
  • It allows to handle special files such us: symlinks, devices and FIFOs

16 Practical rsync examples


Rsync is a fast and versatile file synchronization tool that allows to copy and sync files locally and from rsync service or any device that supports remote shell (Rsync does not support synchronization between remote devices). Rsync offers a large number of options that control every aspect of its behaviour and permit very flexible specification of the set of files to be copied.

25 Practical examples of the find command


find is a utility that allows to search files (regular file, directory, symbolic link...) through a hierarchy of directories, it is powerful and feature-rich.

Refresh alias defined in .bashrc

To refresh the aliases defined in .bashrc run:

$ source .bashrc


$ exec bash

14 Practical examples of the grep command

grep is a command-line utility that allows searching of words and/or patterns in a file or group of files. Its name comes from the ed command g/re/p (globally search a regular expression and print). Grep does a global search by keyword or regular expression and print all matching lines on the standard output.

Exclude the process grep on ps ax output

Regularly I use ps ax | grep pattern to get information about a particular process, but in the oupout the grep process is shown, how to avoid this?

Simply encloses within square brackets the first letter or number of the pattern, for example: